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.

Files changed (44) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/autoscaling/v20180419/models.py +2 -2
  3. tencentcloud/cdn/v20180606/cdn_client.py +0 -575
  4. tencentcloud/cdn/v20180606/errorcodes.py +0 -48
  5. tencentcloud/cdn/v20180606/models.py +12881 -21511
  6. tencentcloud/cfs/v20190719/models.py +16 -18
  7. tencentcloud/cls/v20201016/models.py +46 -20
  8. tencentcloud/dlc/v20210125/dlc_client.py +529 -0
  9. tencentcloud/dlc/v20210125/errorcodes.py +30 -0
  10. tencentcloud/dlc/v20210125/models.py +7909 -2612
  11. tencentcloud/emr/v20190103/models.py +2 -2
  12. tencentcloud/es/v20250101/models.py +70 -0
  13. tencentcloud/ess/v20201111/ess_client.py +55 -3
  14. tencentcloud/ess/v20201111/models.py +686 -2
  15. tencentcloud/hunyuan/v20230901/errorcodes.py +0 -27
  16. tencentcloud/hunyuan/v20230901/hunyuan_client.py +0 -46
  17. tencentcloud/hunyuan/v20230901/models.py +0 -357
  18. tencentcloud/lke/v20231130/models.py +86 -0
  19. tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
  20. tencentcloud/mongodb/v20190725/mongodb_client.py +1 -1
  21. tencentcloud/mps/v20190612/models.py +24 -8
  22. tencentcloud/mqtt/v20240516/models.py +150 -0
  23. tencentcloud/ocr/v20181119/models.py +90 -4
  24. tencentcloud/partners/v20180321/partners_client.py +2 -1
  25. tencentcloud/postgres/v20170312/models.py +28 -24
  26. tencentcloud/postgres/v20170312/postgres_client.py +2 -2
  27. tencentcloud/sqlserver/v20180328/models.py +2 -2
  28. tencentcloud/sqlserver/v20180328/sqlserver_client.py +1 -1
  29. tencentcloud/ssl/v20191205/models.py +6 -6
  30. tencentcloud/tcbr/v20220217/models.py +266 -4
  31. tencentcloud/tcr/v20190924/models.py +2 -2
  32. tencentcloud/teo/v20220901/errorcodes.py +24 -0
  33. tencentcloud/teo/v20220901/models.py +3469 -441
  34. tencentcloud/teo/v20220901/teo_client.py +469 -2
  35. tencentcloud/tione/v20211111/models.py +15 -0
  36. tencentcloud/trtc/v20190722/models.py +70 -6
  37. tencentcloud/waf/v20180125/models.py +1029 -151
  38. tencentcloud/waf/v20180125/waf_client.py +92 -0
  39. tencentcloud/wsa/v20250508/models.py +22 -4
  40. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/METADATA +1 -1
  41. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/RECORD +44 -44
  42. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/LICENSE +0 -0
  43. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/WHEEL +0 -0
  44. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/top_level.txt +0 -0
@@ -9064,6 +9064,212 @@ class CreateIpAccessControlResponse(AbstractModel):
9064
9064
  self._RequestId = params.get("RequestId")
9065
9065
 
9066
9066
 
9067
+ class CreateOwaspWhiteRuleRequest(AbstractModel):
9068
+ """CreateOwaspWhiteRule请求参数结构体
9069
+
9070
+ """
9071
+
9072
+ def __init__(self):
9073
+ r"""
9074
+ :param _Name: 规则名称
9075
+ :type Name: str
9076
+ :param _Domain: 域名
9077
+ :type Domain: str
9078
+ :param _Strategies: 规则匹配策略列表
9079
+ :type Strategies: list of Strategy
9080
+ :param _Ids: 加白的规则ID列表
9081
+ :type Ids: list of int non-negative
9082
+ :param _Type: 加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
9083
+ :type Type: int
9084
+ :param _JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
9085
+ :type JobType: str
9086
+ :param _JobDateTime: 定时任务配置
9087
+ :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
9088
+ :param _ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
9089
+ :type ExpireTime: int
9090
+ :param _Status: 规则状态,0:关闭、1:开启,默认为开启
9091
+ :type Status: int
9092
+ """
9093
+ self._Name = None
9094
+ self._Domain = None
9095
+ self._Strategies = None
9096
+ self._Ids = None
9097
+ self._Type = None
9098
+ self._JobType = None
9099
+ self._JobDateTime = None
9100
+ self._ExpireTime = None
9101
+ self._Status = None
9102
+
9103
+ @property
9104
+ def Name(self):
9105
+ """规则名称
9106
+ :rtype: str
9107
+ """
9108
+ return self._Name
9109
+
9110
+ @Name.setter
9111
+ def Name(self, Name):
9112
+ self._Name = Name
9113
+
9114
+ @property
9115
+ def Domain(self):
9116
+ """域名
9117
+ :rtype: str
9118
+ """
9119
+ return self._Domain
9120
+
9121
+ @Domain.setter
9122
+ def Domain(self, Domain):
9123
+ self._Domain = Domain
9124
+
9125
+ @property
9126
+ def Strategies(self):
9127
+ """规则匹配策略列表
9128
+ :rtype: list of Strategy
9129
+ """
9130
+ return self._Strategies
9131
+
9132
+ @Strategies.setter
9133
+ def Strategies(self, Strategies):
9134
+ self._Strategies = Strategies
9135
+
9136
+ @property
9137
+ def Ids(self):
9138
+ """加白的规则ID列表
9139
+ :rtype: list of int non-negative
9140
+ """
9141
+ return self._Ids
9142
+
9143
+ @Ids.setter
9144
+ def Ids(self, Ids):
9145
+ self._Ids = Ids
9146
+
9147
+ @property
9148
+ def Type(self):
9149
+ """加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
9150
+ :rtype: int
9151
+ """
9152
+ return self._Type
9153
+
9154
+ @Type.setter
9155
+ def Type(self, Type):
9156
+ self._Type = Type
9157
+
9158
+ @property
9159
+ def JobType(self):
9160
+ """规则执行的方式,TimedJob为定时执行,CronJob为周期执行
9161
+ :rtype: str
9162
+ """
9163
+ return self._JobType
9164
+
9165
+ @JobType.setter
9166
+ def JobType(self, JobType):
9167
+ self._JobType = JobType
9168
+
9169
+ @property
9170
+ def JobDateTime(self):
9171
+ """定时任务配置
9172
+ :rtype: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
9173
+ """
9174
+ return self._JobDateTime
9175
+
9176
+ @JobDateTime.setter
9177
+ def JobDateTime(self, JobDateTime):
9178
+ self._JobDateTime = JobDateTime
9179
+
9180
+ @property
9181
+ def ExpireTime(self):
9182
+ """如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
9183
+ :rtype: int
9184
+ """
9185
+ return self._ExpireTime
9186
+
9187
+ @ExpireTime.setter
9188
+ def ExpireTime(self, ExpireTime):
9189
+ self._ExpireTime = ExpireTime
9190
+
9191
+ @property
9192
+ def Status(self):
9193
+ """规则状态,0:关闭、1:开启,默认为开启
9194
+ :rtype: int
9195
+ """
9196
+ return self._Status
9197
+
9198
+ @Status.setter
9199
+ def Status(self, Status):
9200
+ self._Status = Status
9201
+
9202
+
9203
+ def _deserialize(self, params):
9204
+ self._Name = params.get("Name")
9205
+ self._Domain = params.get("Domain")
9206
+ if params.get("Strategies") is not None:
9207
+ self._Strategies = []
9208
+ for item in params.get("Strategies"):
9209
+ obj = Strategy()
9210
+ obj._deserialize(item)
9211
+ self._Strategies.append(obj)
9212
+ self._Ids = params.get("Ids")
9213
+ self._Type = params.get("Type")
9214
+ self._JobType = params.get("JobType")
9215
+ if params.get("JobDateTime") is not None:
9216
+ self._JobDateTime = JobDateTime()
9217
+ self._JobDateTime._deserialize(params.get("JobDateTime"))
9218
+ self._ExpireTime = params.get("ExpireTime")
9219
+ self._Status = params.get("Status")
9220
+ memeber_set = set(params.keys())
9221
+ for name, value in vars(self).items():
9222
+ property_name = name[1:]
9223
+ if property_name in memeber_set:
9224
+ memeber_set.remove(property_name)
9225
+ if len(memeber_set) > 0:
9226
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9227
+
9228
+
9229
+
9230
+ class CreateOwaspWhiteRuleResponse(AbstractModel):
9231
+ """CreateOwaspWhiteRule返回参数结构体
9232
+
9233
+ """
9234
+
9235
+ def __init__(self):
9236
+ r"""
9237
+ :param _RuleId: 规则ID
9238
+ :type RuleId: int
9239
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9240
+ :type RequestId: str
9241
+ """
9242
+ self._RuleId = None
9243
+ self._RequestId = None
9244
+
9245
+ @property
9246
+ def RuleId(self):
9247
+ """规则ID
9248
+ :rtype: int
9249
+ """
9250
+ return self._RuleId
9251
+
9252
+ @RuleId.setter
9253
+ def RuleId(self, RuleId):
9254
+ self._RuleId = RuleId
9255
+
9256
+ @property
9257
+ def RequestId(self):
9258
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9259
+ :rtype: str
9260
+ """
9261
+ return self._RequestId
9262
+
9263
+ @RequestId.setter
9264
+ def RequestId(self, RequestId):
9265
+ self._RequestId = RequestId
9266
+
9267
+
9268
+ def _deserialize(self, params):
9269
+ self._RuleId = params.get("RuleId")
9270
+ self._RequestId = params.get("RequestId")
9271
+
9272
+
9067
9273
  class CreatePostCKafkaFlowRequest(AbstractModel):
9068
9274
  """CreatePostCKafkaFlow请求参数结构体
9069
9275
 
@@ -10894,23 +11100,31 @@ class DeleteIpAccessControlV2Response(AbstractModel):
10894
11100
  self._RequestId = params.get("RequestId")
10895
11101
 
10896
11102
 
10897
- class DeleteSessionRequest(AbstractModel):
10898
- """DeleteSession请求参数结构体
11103
+ class DeleteOwaspWhiteRuleRequest(AbstractModel):
11104
+ """DeleteOwaspWhiteRule请求参数结构体
10899
11105
 
10900
11106
  """
10901
11107
 
10902
11108
  def __init__(self):
10903
11109
  r"""
11110
+ :param _Ids: 规则白名单ID列表
11111
+ :type Ids: list of int non-negative
10904
11112
  :param _Domain: 域名
10905
11113
  :type Domain: str
10906
- :param _Edition: clb-waf 或者 sprta-waf
10907
- :type Edition: str
10908
- :param _SessionID: 要删除的SessionID
10909
- :type SessionID: int
10910
11114
  """
11115
+ self._Ids = None
10911
11116
  self._Domain = None
10912
- self._Edition = None
10913
- self._SessionID = None
11117
+
11118
+ @property
11119
+ def Ids(self):
11120
+ """规则白名单ID列表
11121
+ :rtype: list of int non-negative
11122
+ """
11123
+ return self._Ids
11124
+
11125
+ @Ids.setter
11126
+ def Ids(self, Ids):
11127
+ self._Ids = Ids
10914
11128
 
10915
11129
  @property
10916
11130
  def Domain(self):
@@ -10923,33 +11137,10 @@ class DeleteSessionRequest(AbstractModel):
10923
11137
  def Domain(self, Domain):
10924
11138
  self._Domain = Domain
10925
11139
 
10926
- @property
10927
- def Edition(self):
10928
- """clb-waf 或者 sprta-waf
10929
- :rtype: str
10930
- """
10931
- return self._Edition
10932
-
10933
- @Edition.setter
10934
- def Edition(self, Edition):
10935
- self._Edition = Edition
10936
-
10937
- @property
10938
- def SessionID(self):
10939
- """要删除的SessionID
10940
- :rtype: int
10941
- """
10942
- return self._SessionID
10943
-
10944
- @SessionID.setter
10945
- def SessionID(self, SessionID):
10946
- self._SessionID = SessionID
10947
-
10948
11140
 
10949
11141
  def _deserialize(self, params):
11142
+ self._Ids = params.get("Ids")
10950
11143
  self._Domain = params.get("Domain")
10951
- self._Edition = params.get("Edition")
10952
- self._SessionID = params.get("SessionID")
10953
11144
  memeber_set = set(params.keys())
10954
11145
  for name, value in vars(self).items():
10955
11146
  property_name = name[1:]
@@ -10960,32 +11151,126 @@ class DeleteSessionRequest(AbstractModel):
10960
11151
 
10961
11152
 
10962
11153
 
10963
- class DeleteSessionResponse(AbstractModel):
10964
- """DeleteSession返回参数结构体
11154
+ class DeleteOwaspWhiteRuleResponse(AbstractModel):
11155
+ """DeleteOwaspWhiteRule返回参数结构体
10965
11156
 
10966
11157
  """
10967
11158
 
10968
11159
  def __init__(self):
10969
11160
  r"""
10970
- :param _Data: 结果
10971
- :type Data: str
10972
11161
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10973
11162
  :type RequestId: str
10974
11163
  """
10975
- self._Data = None
10976
11164
  self._RequestId = None
10977
11165
 
10978
- @property
10979
- def Data(self):
10980
- """结果
10981
- :rtype: str
10982
- """
10983
- return self._Data
10984
-
10985
- @Data.setter
10986
- def Data(self, Data):
10987
- self._Data = Data
10988
-
11166
+ @property
11167
+ def RequestId(self):
11168
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11169
+ :rtype: str
11170
+ """
11171
+ return self._RequestId
11172
+
11173
+ @RequestId.setter
11174
+ def RequestId(self, RequestId):
11175
+ self._RequestId = RequestId
11176
+
11177
+
11178
+ def _deserialize(self, params):
11179
+ self._RequestId = params.get("RequestId")
11180
+
11181
+
11182
+ class DeleteSessionRequest(AbstractModel):
11183
+ """DeleteSession请求参数结构体
11184
+
11185
+ """
11186
+
11187
+ def __init__(self):
11188
+ r"""
11189
+ :param _Domain: 域名
11190
+ :type Domain: str
11191
+ :param _Edition: clb-waf 或者 sprta-waf
11192
+ :type Edition: str
11193
+ :param _SessionID: 要删除的SessionID
11194
+ :type SessionID: int
11195
+ """
11196
+ self._Domain = None
11197
+ self._Edition = None
11198
+ self._SessionID = None
11199
+
11200
+ @property
11201
+ def Domain(self):
11202
+ """域名
11203
+ :rtype: str
11204
+ """
11205
+ return self._Domain
11206
+
11207
+ @Domain.setter
11208
+ def Domain(self, Domain):
11209
+ self._Domain = Domain
11210
+
11211
+ @property
11212
+ def Edition(self):
11213
+ """clb-waf 或者 sprta-waf
11214
+ :rtype: str
11215
+ """
11216
+ return self._Edition
11217
+
11218
+ @Edition.setter
11219
+ def Edition(self, Edition):
11220
+ self._Edition = Edition
11221
+
11222
+ @property
11223
+ def SessionID(self):
11224
+ """要删除的SessionID
11225
+ :rtype: int
11226
+ """
11227
+ return self._SessionID
11228
+
11229
+ @SessionID.setter
11230
+ def SessionID(self, SessionID):
11231
+ self._SessionID = SessionID
11232
+
11233
+
11234
+ def _deserialize(self, params):
11235
+ self._Domain = params.get("Domain")
11236
+ self._Edition = params.get("Edition")
11237
+ self._SessionID = params.get("SessionID")
11238
+ memeber_set = set(params.keys())
11239
+ for name, value in vars(self).items():
11240
+ property_name = name[1:]
11241
+ if property_name in memeber_set:
11242
+ memeber_set.remove(property_name)
11243
+ if len(memeber_set) > 0:
11244
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11245
+
11246
+
11247
+
11248
+ class DeleteSessionResponse(AbstractModel):
11249
+ """DeleteSession返回参数结构体
11250
+
11251
+ """
11252
+
11253
+ def __init__(self):
11254
+ r"""
11255
+ :param _Data: 结果
11256
+ :type Data: str
11257
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11258
+ :type RequestId: str
11259
+ """
11260
+ self._Data = None
11261
+ self._RequestId = None
11262
+
11263
+ @property
11264
+ def Data(self):
11265
+ """结果
11266
+ :rtype: str
11267
+ """
11268
+ return self._Data
11269
+
11270
+ @Data.setter
11271
+ def Data(self, Data):
11272
+ self._Data = Data
11273
+
10989
11274
  @property
10990
11275
  def RequestId(self):
10991
11276
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -18965,131 +19250,112 @@ class DescribeObjectsResponse(AbstractModel):
18965
19250
  self._RequestId = params.get("RequestId")
18966
19251
 
18967
19252
 
18968
- class DescribePeakPointsRequest(AbstractModel):
18969
- """DescribePeakPoints请求参数结构体
19253
+ class DescribeOwaspWhiteRulesRequest(AbstractModel):
19254
+ """DescribeOwaspWhiteRules请求参数结构体
18970
19255
 
18971
19256
  """
18972
19257
 
18973
19258
  def __init__(self):
18974
19259
  r"""
18975
- :param _FromTime: 查询起始时间
18976
- :type FromTime: str
18977
- :param _ToTime: 查询终止时间
18978
- :type ToTime: str
18979
- :param _Domain: 查询的域名,如果查询所有域名数据,该参数不填写
19260
+ :param _Domain: 需要查询的域名
18980
19261
  :type Domain: str
18981
- :param _Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
18982
- :type Edition: str
18983
- :param _InstanceID: WAF实例ID,不传则不过滤
18984
- :type InstanceID: str
18985
- :param _MetricName: 十二个值可选:
18986
- access-峰值qps趋势图
18987
- botAccess- bot峰值qps趋势图
18988
- down-下行峰值带宽趋势图
18989
- up-上行峰值带宽趋势图
18990
- attack-Web攻击总数趋势图
18991
- cc-CC攻击总数趋势图
18992
- bw-黑IP攻击总数趋势图
18993
- tamper-防篡改攻击总数趋势图
18994
- leak-防泄露攻击总数趋势图
18995
- acl-访问控制攻击总数趋势图
18996
- http_status-状态码各次数趋势图
18997
- wx_access-微信小程序峰值qps趋势图
18998
- :type MetricName: str
19262
+ :param _Offset: 分页分页,默认为0
19263
+ :type Offset: int
19264
+ :param _Limit: 每页容量,默认为10
19265
+ :type Limit: int
19266
+ :param _By: 排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
19267
+ :type By: str
19268
+ :param _Order: 排序方式,支持asc、desc
19269
+ :type Order: str
19270
+ :param _Filters: 筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
19271
+ :type Filters: list of FiltersItemNew
18999
19272
  """
19000
- self._FromTime = None
19001
- self._ToTime = None
19002
19273
  self._Domain = None
19003
- self._Edition = None
19004
- self._InstanceID = None
19005
- self._MetricName = None
19274
+ self._Offset = None
19275
+ self._Limit = None
19276
+ self._By = None
19277
+ self._Order = None
19278
+ self._Filters = None
19006
19279
 
19007
19280
  @property
19008
- def FromTime(self):
19009
- """查询起始时间
19281
+ def Domain(self):
19282
+ """需要查询的域名
19010
19283
  :rtype: str
19011
19284
  """
19012
- return self._FromTime
19285
+ return self._Domain
19013
19286
 
19014
- @FromTime.setter
19015
- def FromTime(self, FromTime):
19016
- self._FromTime = FromTime
19287
+ @Domain.setter
19288
+ def Domain(self, Domain):
19289
+ self._Domain = Domain
19017
19290
 
19018
19291
  @property
19019
- def ToTime(self):
19020
- """查询终止时间
19021
- :rtype: str
19292
+ def Offset(self):
19293
+ """分页分页,默认为0
19294
+ :rtype: int
19022
19295
  """
19023
- return self._ToTime
19296
+ return self._Offset
19024
19297
 
19025
- @ToTime.setter
19026
- def ToTime(self, ToTime):
19027
- self._ToTime = ToTime
19298
+ @Offset.setter
19299
+ def Offset(self, Offset):
19300
+ self._Offset = Offset
19028
19301
 
19029
19302
  @property
19030
- def Domain(self):
19031
- """查询的域名,如果查询所有域名数据,该参数不填写
19032
- :rtype: str
19303
+ def Limit(self):
19304
+ """每页容量,默认为10
19305
+ :rtype: int
19033
19306
  """
19034
- return self._Domain
19307
+ return self._Limit
19035
19308
 
19036
- @Domain.setter
19037
- def Domain(self, Domain):
19038
- self._Domain = Domain
19309
+ @Limit.setter
19310
+ def Limit(self, Limit):
19311
+ self._Limit = Limit
19039
19312
 
19040
19313
  @property
19041
- def Edition(self):
19042
- """只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19314
+ def By(self):
19315
+ """排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
19043
19316
  :rtype: str
19044
19317
  """
19045
- return self._Edition
19318
+ return self._By
19046
19319
 
19047
- @Edition.setter
19048
- def Edition(self, Edition):
19049
- self._Edition = Edition
19320
+ @By.setter
19321
+ def By(self, By):
19322
+ self._By = By
19050
19323
 
19051
19324
  @property
19052
- def InstanceID(self):
19053
- """WAF实例ID,不传则不过滤
19325
+ def Order(self):
19326
+ """排序方式,支持asc、desc
19054
19327
  :rtype: str
19055
19328
  """
19056
- return self._InstanceID
19329
+ return self._Order
19057
19330
 
19058
- @InstanceID.setter
19059
- def InstanceID(self, InstanceID):
19060
- self._InstanceID = InstanceID
19331
+ @Order.setter
19332
+ def Order(self, Order):
19333
+ self._Order = Order
19061
19334
 
19062
19335
  @property
19063
- def MetricName(self):
19064
- """十二个值可选:
19065
- access-峰值qps趋势图
19066
- botAccess- bot峰值qps趋势图
19067
- down-下行峰值带宽趋势图
19068
- up-上行峰值带宽趋势图
19069
- attack-Web攻击总数趋势图
19070
- cc-CC攻击总数趋势图
19071
- bw-黑IP攻击总数趋势图
19072
- tamper-防篡改攻击总数趋势图
19073
- leak-防泄露攻击总数趋势图
19074
- acl-访问控制攻击总数趋势图
19075
- http_status-状态码各次数趋势图
19076
- wx_access-微信小程序峰值qps趋势图
19077
- :rtype: str
19336
+ def Filters(self):
19337
+ """筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
19338
+ :rtype: list of FiltersItemNew
19078
19339
  """
19079
- return self._MetricName
19340
+ return self._Filters
19080
19341
 
19081
- @MetricName.setter
19082
- def MetricName(self, MetricName):
19083
- self._MetricName = MetricName
19342
+ @Filters.setter
19343
+ def Filters(self, Filters):
19344
+ self._Filters = Filters
19084
19345
 
19085
19346
 
19086
19347
  def _deserialize(self, params):
19087
- self._FromTime = params.get("FromTime")
19088
- self._ToTime = params.get("ToTime")
19089
19348
  self._Domain = params.get("Domain")
19090
- self._Edition = params.get("Edition")
19091
- self._InstanceID = params.get("InstanceID")
19092
- self._MetricName = params.get("MetricName")
19349
+ self._Offset = params.get("Offset")
19350
+ self._Limit = params.get("Limit")
19351
+ self._By = params.get("By")
19352
+ self._Order = params.get("Order")
19353
+ if params.get("Filters") is not None:
19354
+ self._Filters = []
19355
+ for item in params.get("Filters"):
19356
+ obj = FiltersItemNew()
19357
+ obj._deserialize(item)
19358
+ self._Filters.append(obj)
19093
19359
  memeber_set = set(params.keys())
19094
19360
  for name, value in vars(self).items():
19095
19361
  property_name = name[1:]
@@ -19100,15 +19366,213 @@ wx_access-微信小程序峰值qps趋势图
19100
19366
 
19101
19367
 
19102
19368
 
19103
- class DescribePeakPointsResponse(AbstractModel):
19104
- """DescribePeakPoints返回参数结构体
19369
+ class DescribeOwaspWhiteRulesResponse(AbstractModel):
19370
+ """DescribeOwaspWhiteRules返回参数结构体
19105
19371
 
19106
19372
  """
19107
19373
 
19108
19374
  def __init__(self):
19109
19375
  r"""
19110
- :param _Points: 数据点
19111
- :type Points: list of PeakPointsItem
19376
+ :param _Total: 规则总数
19377
+ :type Total: int
19378
+ :param _List: 规则白名单列表
19379
+ :type List: list of OwaspWhiteRule
19380
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19381
+ :type RequestId: str
19382
+ """
19383
+ self._Total = None
19384
+ self._List = None
19385
+ self._RequestId = None
19386
+
19387
+ @property
19388
+ def Total(self):
19389
+ """规则总数
19390
+ :rtype: int
19391
+ """
19392
+ return self._Total
19393
+
19394
+ @Total.setter
19395
+ def Total(self, Total):
19396
+ self._Total = Total
19397
+
19398
+ @property
19399
+ def List(self):
19400
+ """规则白名单列表
19401
+ :rtype: list of OwaspWhiteRule
19402
+ """
19403
+ return self._List
19404
+
19405
+ @List.setter
19406
+ def List(self, List):
19407
+ self._List = List
19408
+
19409
+ @property
19410
+ def RequestId(self):
19411
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19412
+ :rtype: str
19413
+ """
19414
+ return self._RequestId
19415
+
19416
+ @RequestId.setter
19417
+ def RequestId(self, RequestId):
19418
+ self._RequestId = RequestId
19419
+
19420
+
19421
+ def _deserialize(self, params):
19422
+ self._Total = params.get("Total")
19423
+ if params.get("List") is not None:
19424
+ self._List = []
19425
+ for item in params.get("List"):
19426
+ obj = OwaspWhiteRule()
19427
+ obj._deserialize(item)
19428
+ self._List.append(obj)
19429
+ self._RequestId = params.get("RequestId")
19430
+
19431
+
19432
+ class DescribePeakPointsRequest(AbstractModel):
19433
+ """DescribePeakPoints请求参数结构体
19434
+
19435
+ """
19436
+
19437
+ def __init__(self):
19438
+ r"""
19439
+ :param _FromTime: 查询起始时间
19440
+ :type FromTime: str
19441
+ :param _ToTime: 查询终止时间
19442
+ :type ToTime: str
19443
+ :param _Domain: 查询的域名,如果查询所有域名数据,该参数不填写
19444
+ :type Domain: str
19445
+ :param _Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19446
+ :type Edition: str
19447
+ :param _InstanceID: WAF实例ID,不传则不过滤
19448
+ :type InstanceID: str
19449
+ :param _MetricName: 十二个值可选:
19450
+ access-峰值qps趋势图
19451
+ botAccess- bot峰值qps趋势图
19452
+ down-下行峰值带宽趋势图
19453
+ up-上行峰值带宽趋势图
19454
+ attack-Web攻击总数趋势图
19455
+ cc-CC攻击总数趋势图
19456
+ bw-黑IP攻击总数趋势图
19457
+ tamper-防篡改攻击总数趋势图
19458
+ leak-防泄露攻击总数趋势图
19459
+ acl-访问控制攻击总数趋势图
19460
+ http_status-状态码各次数趋势图
19461
+ wx_access-微信小程序峰值qps趋势图
19462
+ :type MetricName: str
19463
+ """
19464
+ self._FromTime = None
19465
+ self._ToTime = None
19466
+ self._Domain = None
19467
+ self._Edition = None
19468
+ self._InstanceID = None
19469
+ self._MetricName = None
19470
+
19471
+ @property
19472
+ def FromTime(self):
19473
+ """查询起始时间
19474
+ :rtype: str
19475
+ """
19476
+ return self._FromTime
19477
+
19478
+ @FromTime.setter
19479
+ def FromTime(self, FromTime):
19480
+ self._FromTime = FromTime
19481
+
19482
+ @property
19483
+ def ToTime(self):
19484
+ """查询终止时间
19485
+ :rtype: str
19486
+ """
19487
+ return self._ToTime
19488
+
19489
+ @ToTime.setter
19490
+ def ToTime(self, ToTime):
19491
+ self._ToTime = ToTime
19492
+
19493
+ @property
19494
+ def Domain(self):
19495
+ """查询的域名,如果查询所有域名数据,该参数不填写
19496
+ :rtype: str
19497
+ """
19498
+ return self._Domain
19499
+
19500
+ @Domain.setter
19501
+ def Domain(self, Domain):
19502
+ self._Domain = Domain
19503
+
19504
+ @property
19505
+ def Edition(self):
19506
+ """只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19507
+ :rtype: str
19508
+ """
19509
+ return self._Edition
19510
+
19511
+ @Edition.setter
19512
+ def Edition(self, Edition):
19513
+ self._Edition = Edition
19514
+
19515
+ @property
19516
+ def InstanceID(self):
19517
+ """WAF实例ID,不传则不过滤
19518
+ :rtype: str
19519
+ """
19520
+ return self._InstanceID
19521
+
19522
+ @InstanceID.setter
19523
+ def InstanceID(self, InstanceID):
19524
+ self._InstanceID = InstanceID
19525
+
19526
+ @property
19527
+ def MetricName(self):
19528
+ """十二个值可选:
19529
+ access-峰值qps趋势图
19530
+ botAccess- bot峰值qps趋势图
19531
+ down-下行峰值带宽趋势图
19532
+ up-上行峰值带宽趋势图
19533
+ attack-Web攻击总数趋势图
19534
+ cc-CC攻击总数趋势图
19535
+ bw-黑IP攻击总数趋势图
19536
+ tamper-防篡改攻击总数趋势图
19537
+ leak-防泄露攻击总数趋势图
19538
+ acl-访问控制攻击总数趋势图
19539
+ http_status-状态码各次数趋势图
19540
+ wx_access-微信小程序峰值qps趋势图
19541
+ :rtype: str
19542
+ """
19543
+ return self._MetricName
19544
+
19545
+ @MetricName.setter
19546
+ def MetricName(self, MetricName):
19547
+ self._MetricName = MetricName
19548
+
19549
+
19550
+ def _deserialize(self, params):
19551
+ self._FromTime = params.get("FromTime")
19552
+ self._ToTime = params.get("ToTime")
19553
+ self._Domain = params.get("Domain")
19554
+ self._Edition = params.get("Edition")
19555
+ self._InstanceID = params.get("InstanceID")
19556
+ self._MetricName = params.get("MetricName")
19557
+ memeber_set = set(params.keys())
19558
+ for name, value in vars(self).items():
19559
+ property_name = name[1:]
19560
+ if property_name in memeber_set:
19561
+ memeber_set.remove(property_name)
19562
+ if len(memeber_set) > 0:
19563
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19564
+
19565
+
19566
+
19567
+ class DescribePeakPointsResponse(AbstractModel):
19568
+ """DescribePeakPoints返回参数结构体
19569
+
19570
+ """
19571
+
19572
+ def __init__(self):
19573
+ r"""
19574
+ :param _Points: 数据点
19575
+ :type Points: list of PeakPointsItem
19112
19576
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19113
19577
  :type RequestId: str
19114
19578
  """
@@ -34994,23 +35458,66 @@ class ModifyObjectResponse(AbstractModel):
34994
35458
  self._RequestId = params.get("RequestId")
34995
35459
 
34996
35460
 
34997
- class ModifyProtectionStatusRequest(AbstractModel):
34998
- """ModifyProtectionStatus请求参数结构体
35461
+ class ModifyOwaspWhiteRuleRequest(AbstractModel):
35462
+ """ModifyOwaspWhiteRule请求参数结构体
34999
35463
 
35000
35464
  """
35001
35465
 
35002
35466
  def __init__(self):
35003
35467
  r"""
35468
+ :param _RuleId: 规则ID
35469
+ :type RuleId: int
35470
+ :param _Name: 规则名称
35471
+ :type Name: str
35004
35472
  :param _Domain: 域名
35005
35473
  :type Domain: str
35006
- :param _Status: 1:开启WAF开关,0:关闭WAF开关
35474
+ :param _Strategies: 规则匹配策略列表
35475
+ :type Strategies: list of Strategy
35476
+ :param _Ids: 加白的规则ID列表
35477
+ :type Ids: list of int non-negative
35478
+ :param _Type: 加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
35479
+ :type Type: int
35480
+ :param _JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
35481
+ :type JobType: str
35482
+ :param _JobDateTime: 定时任务配置
35483
+ :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
35484
+ :param _ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
35485
+ :type ExpireTime: int
35486
+ :param _Status: 规则状态,0:关闭、1:开启,默认为开启
35007
35487
  :type Status: int
35008
- :param _Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
35009
- :type Edition: str
35010
35488
  """
35489
+ self._RuleId = None
35490
+ self._Name = None
35011
35491
  self._Domain = None
35492
+ self._Strategies = None
35493
+ self._Ids = None
35494
+ self._Type = None
35495
+ self._JobType = None
35496
+ self._JobDateTime = None
35497
+ self._ExpireTime = None
35012
35498
  self._Status = None
35013
- self._Edition = None
35499
+
35500
+ @property
35501
+ def RuleId(self):
35502
+ """规则ID
35503
+ :rtype: int
35504
+ """
35505
+ return self._RuleId
35506
+
35507
+ @RuleId.setter
35508
+ def RuleId(self, RuleId):
35509
+ self._RuleId = RuleId
35510
+
35511
+ @property
35512
+ def Name(self):
35513
+ """规则名称
35514
+ :rtype: str
35515
+ """
35516
+ return self._Name
35517
+
35518
+ @Name.setter
35519
+ def Name(self, Name):
35520
+ self._Name = Name
35014
35521
 
35015
35522
  @property
35016
35523
  def Domain(self):
@@ -35024,15 +35531,178 @@ class ModifyProtectionStatusRequest(AbstractModel):
35024
35531
  self._Domain = Domain
35025
35532
 
35026
35533
  @property
35027
- def Status(self):
35028
- """1:开启WAF开关,0:关闭WAF开关
35029
- :rtype: int
35534
+ def Strategies(self):
35535
+ """规则匹配策略列表
35536
+ :rtype: list of Strategy
35030
35537
  """
35031
- return self._Status
35538
+ return self._Strategies
35032
35539
 
35033
- @Status.setter
35034
- def Status(self, Status):
35035
- self._Status = Status
35540
+ @Strategies.setter
35541
+ def Strategies(self, Strategies):
35542
+ self._Strategies = Strategies
35543
+
35544
+ @property
35545
+ def Ids(self):
35546
+ """加白的规则ID列表
35547
+ :rtype: list of int non-negative
35548
+ """
35549
+ return self._Ids
35550
+
35551
+ @Ids.setter
35552
+ def Ids(self, Ids):
35553
+ self._Ids = Ids
35554
+
35555
+ @property
35556
+ def Type(self):
35557
+ """加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
35558
+ :rtype: int
35559
+ """
35560
+ return self._Type
35561
+
35562
+ @Type.setter
35563
+ def Type(self, Type):
35564
+ self._Type = Type
35565
+
35566
+ @property
35567
+ def JobType(self):
35568
+ """规则执行的方式,TimedJob为定时执行,CronJob为周期执行
35569
+ :rtype: str
35570
+ """
35571
+ return self._JobType
35572
+
35573
+ @JobType.setter
35574
+ def JobType(self, JobType):
35575
+ self._JobType = JobType
35576
+
35577
+ @property
35578
+ def JobDateTime(self):
35579
+ """定时任务配置
35580
+ :rtype: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
35581
+ """
35582
+ return self._JobDateTime
35583
+
35584
+ @JobDateTime.setter
35585
+ def JobDateTime(self, JobDateTime):
35586
+ self._JobDateTime = JobDateTime
35587
+
35588
+ @property
35589
+ def ExpireTime(self):
35590
+ """如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
35591
+ :rtype: int
35592
+ """
35593
+ return self._ExpireTime
35594
+
35595
+ @ExpireTime.setter
35596
+ def ExpireTime(self, ExpireTime):
35597
+ self._ExpireTime = ExpireTime
35598
+
35599
+ @property
35600
+ def Status(self):
35601
+ """规则状态,0:关闭、1:开启,默认为开启
35602
+ :rtype: int
35603
+ """
35604
+ return self._Status
35605
+
35606
+ @Status.setter
35607
+ def Status(self, Status):
35608
+ self._Status = Status
35609
+
35610
+
35611
+ def _deserialize(self, params):
35612
+ self._RuleId = params.get("RuleId")
35613
+ self._Name = params.get("Name")
35614
+ self._Domain = params.get("Domain")
35615
+ if params.get("Strategies") is not None:
35616
+ self._Strategies = []
35617
+ for item in params.get("Strategies"):
35618
+ obj = Strategy()
35619
+ obj._deserialize(item)
35620
+ self._Strategies.append(obj)
35621
+ self._Ids = params.get("Ids")
35622
+ self._Type = params.get("Type")
35623
+ self._JobType = params.get("JobType")
35624
+ if params.get("JobDateTime") is not None:
35625
+ self._JobDateTime = JobDateTime()
35626
+ self._JobDateTime._deserialize(params.get("JobDateTime"))
35627
+ self._ExpireTime = params.get("ExpireTime")
35628
+ self._Status = params.get("Status")
35629
+ memeber_set = set(params.keys())
35630
+ for name, value in vars(self).items():
35631
+ property_name = name[1:]
35632
+ if property_name in memeber_set:
35633
+ memeber_set.remove(property_name)
35634
+ if len(memeber_set) > 0:
35635
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
35636
+
35637
+
35638
+
35639
+ class ModifyOwaspWhiteRuleResponse(AbstractModel):
35640
+ """ModifyOwaspWhiteRule返回参数结构体
35641
+
35642
+ """
35643
+
35644
+ def __init__(self):
35645
+ r"""
35646
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
35647
+ :type RequestId: str
35648
+ """
35649
+ self._RequestId = None
35650
+
35651
+ @property
35652
+ def RequestId(self):
35653
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
35654
+ :rtype: str
35655
+ """
35656
+ return self._RequestId
35657
+
35658
+ @RequestId.setter
35659
+ def RequestId(self, RequestId):
35660
+ self._RequestId = RequestId
35661
+
35662
+
35663
+ def _deserialize(self, params):
35664
+ self._RequestId = params.get("RequestId")
35665
+
35666
+
35667
+ class ModifyProtectionStatusRequest(AbstractModel):
35668
+ """ModifyProtectionStatus请求参数结构体
35669
+
35670
+ """
35671
+
35672
+ def __init__(self):
35673
+ r"""
35674
+ :param _Domain: 域名
35675
+ :type Domain: str
35676
+ :param _Status: 1:开启WAF开关,0:关闭WAF开关
35677
+ :type Status: int
35678
+ :param _Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
35679
+ :type Edition: str
35680
+ """
35681
+ self._Domain = None
35682
+ self._Status = None
35683
+ self._Edition = None
35684
+
35685
+ @property
35686
+ def Domain(self):
35687
+ """域名
35688
+ :rtype: str
35689
+ """
35690
+ return self._Domain
35691
+
35692
+ @Domain.setter
35693
+ def Domain(self, Domain):
35694
+ self._Domain = Domain
35695
+
35696
+ @property
35697
+ def Status(self):
35698
+ """1:开启WAF开关,0:关闭WAF开关
35699
+ :rtype: int
35700
+ """
35701
+ return self._Status
35702
+
35703
+ @Status.setter
35704
+ def Status(self, Status):
35705
+ self._Status = Status
35036
35706
 
35037
35707
  @property
35038
35708
  def Edition(self):
@@ -36812,6 +37482,214 @@ class NetworkConfig(AbstractModel):
36812
37482
 
36813
37483
 
36814
37484
 
37485
+ class OwaspWhiteRule(AbstractModel):
37486
+ """规则引擎白名单
37487
+
37488
+ """
37489
+
37490
+ def __init__(self):
37491
+ r"""
37492
+ :param _RuleId: 白名单的规则ID
37493
+ :type RuleId: int
37494
+ :param _Name: 规则名
37495
+ :type Name: str
37496
+ :param _Ids: 加白的规则ID列表
37497
+ :type Ids: list of int non-negative
37498
+ :param _Status: 白名单规则的状态,0:关闭、1:开启
37499
+ :type Status: int
37500
+ :param _Type: 加白的类型,0:按照特定规则ID加白、1:按照规则类型加白
37501
+ :type Type: int
37502
+ :param _Strategies: 规则匹配策略列表
37503
+ :type Strategies: list of Strategy
37504
+ :param _CreateTime: 创建时间
37505
+ :type CreateTime: str
37506
+ :param _UpdateTime: 修改时间
37507
+ :type UpdateTime: str
37508
+ :param _JobType: 定时任务类型
37509
+ :type JobType: str
37510
+ :param _JobDateTime: 定时任务配置
37511
+ :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
37512
+ :param _CronType: 周期任务粒度
37513
+ :type CronType: str
37514
+ :param _ValidStatus: 当前是否有效
37515
+ :type ValidStatus: bool
37516
+ """
37517
+ self._RuleId = None
37518
+ self._Name = None
37519
+ self._Ids = None
37520
+ self._Status = None
37521
+ self._Type = None
37522
+ self._Strategies = None
37523
+ self._CreateTime = None
37524
+ self._UpdateTime = None
37525
+ self._JobType = None
37526
+ self._JobDateTime = None
37527
+ self._CronType = None
37528
+ self._ValidStatus = None
37529
+
37530
+ @property
37531
+ def RuleId(self):
37532
+ """白名单的规则ID
37533
+ :rtype: int
37534
+ """
37535
+ return self._RuleId
37536
+
37537
+ @RuleId.setter
37538
+ def RuleId(self, RuleId):
37539
+ self._RuleId = RuleId
37540
+
37541
+ @property
37542
+ def Name(self):
37543
+ """规则名
37544
+ :rtype: str
37545
+ """
37546
+ return self._Name
37547
+
37548
+ @Name.setter
37549
+ def Name(self, Name):
37550
+ self._Name = Name
37551
+
37552
+ @property
37553
+ def Ids(self):
37554
+ """加白的规则ID列表
37555
+ :rtype: list of int non-negative
37556
+ """
37557
+ return self._Ids
37558
+
37559
+ @Ids.setter
37560
+ def Ids(self, Ids):
37561
+ self._Ids = Ids
37562
+
37563
+ @property
37564
+ def Status(self):
37565
+ """白名单规则的状态,0:关闭、1:开启
37566
+ :rtype: int
37567
+ """
37568
+ return self._Status
37569
+
37570
+ @Status.setter
37571
+ def Status(self, Status):
37572
+ self._Status = Status
37573
+
37574
+ @property
37575
+ def Type(self):
37576
+ """加白的类型,0:按照特定规则ID加白、1:按照规则类型加白
37577
+ :rtype: int
37578
+ """
37579
+ return self._Type
37580
+
37581
+ @Type.setter
37582
+ def Type(self, Type):
37583
+ self._Type = Type
37584
+
37585
+ @property
37586
+ def Strategies(self):
37587
+ """规则匹配策略列表
37588
+ :rtype: list of Strategy
37589
+ """
37590
+ return self._Strategies
37591
+
37592
+ @Strategies.setter
37593
+ def Strategies(self, Strategies):
37594
+ self._Strategies = Strategies
37595
+
37596
+ @property
37597
+ def CreateTime(self):
37598
+ """创建时间
37599
+ :rtype: str
37600
+ """
37601
+ return self._CreateTime
37602
+
37603
+ @CreateTime.setter
37604
+ def CreateTime(self, CreateTime):
37605
+ self._CreateTime = CreateTime
37606
+
37607
+ @property
37608
+ def UpdateTime(self):
37609
+ """修改时间
37610
+ :rtype: str
37611
+ """
37612
+ return self._UpdateTime
37613
+
37614
+ @UpdateTime.setter
37615
+ def UpdateTime(self, UpdateTime):
37616
+ self._UpdateTime = UpdateTime
37617
+
37618
+ @property
37619
+ def JobType(self):
37620
+ """定时任务类型
37621
+ :rtype: str
37622
+ """
37623
+ return self._JobType
37624
+
37625
+ @JobType.setter
37626
+ def JobType(self, JobType):
37627
+ self._JobType = JobType
37628
+
37629
+ @property
37630
+ def JobDateTime(self):
37631
+ """定时任务配置
37632
+ :rtype: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
37633
+ """
37634
+ return self._JobDateTime
37635
+
37636
+ @JobDateTime.setter
37637
+ def JobDateTime(self, JobDateTime):
37638
+ self._JobDateTime = JobDateTime
37639
+
37640
+ @property
37641
+ def CronType(self):
37642
+ """周期任务粒度
37643
+ :rtype: str
37644
+ """
37645
+ return self._CronType
37646
+
37647
+ @CronType.setter
37648
+ def CronType(self, CronType):
37649
+ self._CronType = CronType
37650
+
37651
+ @property
37652
+ def ValidStatus(self):
37653
+ """当前是否有效
37654
+ :rtype: bool
37655
+ """
37656
+ return self._ValidStatus
37657
+
37658
+ @ValidStatus.setter
37659
+ def ValidStatus(self, ValidStatus):
37660
+ self._ValidStatus = ValidStatus
37661
+
37662
+
37663
+ def _deserialize(self, params):
37664
+ self._RuleId = params.get("RuleId")
37665
+ self._Name = params.get("Name")
37666
+ self._Ids = params.get("Ids")
37667
+ self._Status = params.get("Status")
37668
+ self._Type = params.get("Type")
37669
+ if params.get("Strategies") is not None:
37670
+ self._Strategies = []
37671
+ for item in params.get("Strategies"):
37672
+ obj = Strategy()
37673
+ obj._deserialize(item)
37674
+ self._Strategies.append(obj)
37675
+ self._CreateTime = params.get("CreateTime")
37676
+ self._UpdateTime = params.get("UpdateTime")
37677
+ self._JobType = params.get("JobType")
37678
+ if params.get("JobDateTime") is not None:
37679
+ self._JobDateTime = JobDateTime()
37680
+ self._JobDateTime._deserialize(params.get("JobDateTime"))
37681
+ self._CronType = params.get("CronType")
37682
+ self._ValidStatus = params.get("ValidStatus")
37683
+ memeber_set = set(params.keys())
37684
+ for name, value in vars(self).items():
37685
+ property_name = name[1:]
37686
+ if property_name in memeber_set:
37687
+ memeber_set.remove(property_name)
37688
+ if len(memeber_set) > 0:
37689
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
37690
+
37691
+
37692
+
36815
37693
  class ParamCompareList(AbstractModel):
36816
37694
  """bot-自定义规则请求参数比对结构体
36817
37695