tencentcloud-sdk-python 3.0.973__py2.py3-none-any.whl → 3.0.974__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/asr/v20190614/asr_client.py +11 -10
- tencentcloud/asr/v20190614/models.py +49 -18
- tencentcloud/ccc/v20200210/models.py +2 -2
- tencentcloud/cfw/v20190904/cfw_client.py +47 -0
- tencentcloud/cfw/v20190904/models.py +322 -11
- tencentcloud/clb/v20180317/models.py +23 -5
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- tencentcloud/dbbrain/v20210527/models.py +867 -0
- tencentcloud/dnspod/v20210323/models.py +12 -0
- tencentcloud/ecm/v20190719/models.py +3 -2
- tencentcloud/iotexplorer/v20190423/errorcodes.py +1 -1
- tencentcloud/live/v20180801/live_client.py +23 -0
- tencentcloud/live/v20180801/models.py +131 -0
- tencentcloud/mps/v20190612/models.py +304 -0
- tencentcloud/tsf/v20180326/models.py +1 -1
- tencentcloud/tsf/v20180326/tsf_client.py +1 -1
- tencentcloud/vod/v20180717/models.py +1 -1
- {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.974.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.974.dist-info}/RECORD +23 -23
- {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.974.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.974.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.974.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -131,15 +131,16 @@ class AsrClient(AbstractClient):
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
def CreateRecTask(self, request):
|
|
134
|
-
"""
|
|
135
|
-
•
|
|
136
|
-
•
|
|
137
|
-
•
|
|
138
|
-
•
|
|
139
|
-
•
|
|
140
|
-
•
|
|
141
|
-
•
|
|
142
|
-
•
|
|
134
|
+
"""本接口可对较长的录音文件进行识别。如希望直接使用带界面的语音识别产品,请访问[产品体验中心](https://console.cloud.tencent.com/asr/demonstrate)。产品计费标准请查阅 [计费概述(在线版)](https://cloud.tencent.com/document/product/1093/35686)
|
|
135
|
+
• 接口默认限频:20次/秒。此处仅限制任务提交频次,与识别结果返回时效无关
|
|
136
|
+
• 返回时效:异步回调,非实时返回。最长3小时返回识别结果,**大多数情况下,1小时的音频1-3分钟即可完成识别**。请注意:上述返回时长不含音频下载时延,且30分钟内发送超过1000小时录音或2万条任务的情况除外
|
|
137
|
+
• 音频格式:wav、mp3、m4a、flv、mp4、wma、3gp、amr、aac、ogg-opus、flac
|
|
138
|
+
• 支持语言:在本页面上搜索 **EngineModelType**,或前往 [产品功能](https://cloud.tencent.com/document/product/1093/35682) 查看
|
|
139
|
+
• 音频提交方式:本接口支持**音频 URL 、本地音频文件**两种请求方式。推荐使用 [腾讯云COS](https://cloud.tencent.com/document/product/436/38484) 来存储、生成URL并提交任务,此种方式将不产生外网和流量下行费用,可节约成本、提升任务速度(COS桶权限需要设置公有读私有写,或URL设置外部可访问)
|
|
140
|
+
• 音频限制:音频 URL 时长不能大于5小时,文件大小不超过1GB;本地音频文件不能大于5MB
|
|
141
|
+
• 如何获取识别结果:支持**回调或轮询**的方式获取结果,具体请参考 [录音文件识别结果查询](https://cloud.tencent.com/document/product/1093/37822)
|
|
142
|
+
• 识别结果有效时间:在服务端保存7天
|
|
143
|
+
• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法 v3
|
|
143
144
|
|
|
144
145
|
:param request: Request instance for CreateRecTask.
|
|
145
146
|
:type request: :class:`tencentcloud.asr.v20190614.models.CreateRecTaskRequest`
|
|
@@ -444,7 +445,7 @@ class AsrClient(AbstractClient):
|
|
|
444
445
|
|
|
445
446
|
|
|
446
447
|
def SentenceRecognition(self, request):
|
|
447
|
-
"""本接口用于对60秒之内的短音频文件进行识别。<br>•
|
|
448
|
+
"""本接口用于对60秒之内的短音频文件进行识别。<br>• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、泰语、葡萄牙语、土耳其语、阿拉伯语、印地语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。<br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。<br>• 音频格式支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。<br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。<br>• 默认接口请求频率限制:30次/秒,如您有提高请求频率限制的需求,请[前往购买](https://buy.cloud.tencent.com/asr)。
|
|
448
449
|
|
|
449
450
|
:param request: Request instance for SentenceRecognition.
|
|
450
451
|
:type request: :class:`tencentcloud.asr.v20190614.models.SentenceRecognitionRequest`
|
|
@@ -290,6 +290,7 @@ class CreateAsyncRecognitionTaskRequest(AbstractModel):
|
|
|
290
290
|
• 16k_tr:土耳其语;
|
|
291
291
|
• 16k_ar:阿拉伯语;
|
|
292
292
|
• 16k_es:西班牙语;
|
|
293
|
+
• 16k_hi:印地语;
|
|
293
294
|
:type EngineType: str
|
|
294
295
|
:param _Url: 语音流地址,支持rtmp、rtsp等流媒体协议,以及各类基于http协议的直播流(不支持hls, m3u8)
|
|
295
296
|
:type Url: str
|
|
@@ -587,15 +588,19 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
587
588
|
|
|
588
589
|
def __init__(self):
|
|
589
590
|
r"""
|
|
590
|
-
:param _EngineModelType:
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
591
|
+
:param _EngineModelType: 引擎模型类型
|
|
592
|
+
|
|
593
|
+
电话通讯场景引擎:
|
|
594
|
+
**注意:电话通讯场景,请务必使用以下8k引擎**
|
|
595
|
+
• 8k_zh:中文电话通讯;
|
|
596
|
+
• 8k_en:英文电话通讯;
|
|
597
|
+
如您有电话通讯场景识别需求,但发现需求语种仅支持16k,可将8k音频传入下方16k引擎,亦能获取识别结果。但**16k引擎并非基于电话通讯数据训练,无法承诺此种调用方式的识别效果,需由您自行验证识别结果是否可用**。
|
|
598
|
+
|
|
599
|
+
通用场景引擎:
|
|
600
|
+
**注意:除电话通讯场景以外的其它识别场景,请务必使用以下16k引擎**
|
|
601
|
+
• 16k_zh:中文普通话通用引擎,支持中文普通话和少量英语,使用丰富的中文普通话语料训练,覆盖场景广泛,适用于除电话通讯外的所有中文普通话识别场景;
|
|
602
|
+
• 16k_zh-PY:中英粤混合引擎,使用一个引擎同时识别中文普通话、英语、粤语三个语言;
|
|
603
|
+
• 16k_zh_dialect:中文普通话+多方言混合引擎,除普通话外支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
|
|
599
604
|
• 16k_en:英语;
|
|
600
605
|
• 16k_yue:粤语;
|
|
601
606
|
• 16k_ja:日语;
|
|
@@ -609,21 +614,46 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
609
614
|
• 16k_tr:土耳其语;
|
|
610
615
|
• 16k_ar:阿拉伯语;
|
|
611
616
|
• 16k_es:西班牙语;
|
|
612
|
-
•
|
|
617
|
+
• 16k_hi:印地语;
|
|
618
|
+
• 16k_zh_medical:中文医疗引擎
|
|
613
619
|
:type EngineModelType: str
|
|
614
|
-
:param _ChannelNum:
|
|
620
|
+
:param _ChannelNum: 识别声道数
|
|
621
|
+
1:单声道(16k音频仅支持单声道,**请勿**设置为双声道);
|
|
622
|
+
2:双声道(仅支持8k电话音频,且双声道应分别为通话双方)
|
|
623
|
+
|
|
624
|
+
注意:
|
|
625
|
+
• 16k音频:仅支持单声道识别,**需设置ChannelNum=1**
|
|
626
|
+
• 8k电话音频:支持单声道、双声道识别,**建议设置ChannelNum=2,即双声道**。双声道能够物理区分说话人、避免说话双方重叠产生的识别错误,能达到最好的说话人分离效果和识别效果。设置双声道后,将自动区分说话人,因此**无需再开启说话人分离功能**,相关参数(**SpeakerDiarization、SpeakerNumber**)使用默认值即可
|
|
615
627
|
:type ChannelNum: int
|
|
616
|
-
:param _ResTextFormat:
|
|
628
|
+
:param _ResTextFormat: 识别结果返回形式
|
|
629
|
+
0: 识别结果文本(含分段时间戳);
|
|
630
|
+
1:词级别粒度的[详细识别结果](https://cloud.tencent.com/document/api/1093/37824#SentenceDetail)(不含标点,含语速值);
|
|
631
|
+
2:词级别粒度的详细识别结果(包含标点、语速值);
|
|
632
|
+
3: 标点符号分段,包含每段时间戳,特别适用于字幕场景(包含词级时间、标点、语速值)
|
|
633
|
+
4:【增值付费功能】对识别结果按照语义分段,并展示词级别粒度的详细识别结果,仅支持8k_zh、16k_zh引擎,需购买对应资源包使用(注意:如果账号后付费功能开启并使用此功能,将[自动计费](https://cloud.tencent.com/document/product/1093/35686))
|
|
617
634
|
:type ResTextFormat: int
|
|
618
|
-
:param _SourceType:
|
|
635
|
+
:param _SourceType: 语音数据来源
|
|
636
|
+
0:语音 URL;
|
|
637
|
+
1:语音数据(post body)
|
|
619
638
|
:type SourceType: int
|
|
620
|
-
:param _SpeakerDiarization:
|
|
621
|
-
|
|
639
|
+
:param _SpeakerDiarization: 是否开启说话人分离
|
|
640
|
+
0:不开启;
|
|
641
|
+
1:开启(仅支持8k_zh/16k_zh,且ChannelNum=1时可用);
|
|
642
|
+
默认值为 0
|
|
643
|
+
|
|
644
|
+
注意:
|
|
645
|
+
8k双声道电话音频请按 **ChannelNum 识别声道数** 的参数描述使用默认值
|
|
622
646
|
:type SpeakerDiarization: int
|
|
623
|
-
:param _SpeakerNumber:
|
|
624
|
-
|
|
647
|
+
:param _SpeakerNumber: 说话人分离人数
|
|
648
|
+
**需配合开启说话人分离使用,不开启无效**,取值范围:0-10
|
|
649
|
+
0:自动分离(最多分离出20个人);
|
|
650
|
+
1-10:指定人数分离;
|
|
651
|
+
默认值为 0
|
|
652
|
+
|
|
653
|
+
注意:此功能结果仅供参考
|
|
625
654
|
:type SpeakerNumber: int
|
|
626
|
-
:param _CallbackUrl: 回调 URL
|
|
655
|
+
:param _CallbackUrl: 回调 URL:用户自行搭建的用于接收识别结果的服务URL。回调格式和内容详见:[录音识别回调说明](https://cloud.tencent.com/document/product/1093/52632)
|
|
656
|
+
如果用户使用轮询方式获取识别结果,则无需提交该参数。
|
|
627
657
|
:type CallbackUrl: str
|
|
628
658
|
:param _Url: 语音的URL地址,需要公网环境浏览器可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不需要填写。注意:请确保录音文件时长在5个小时之内,否则可能识别失败。请保证文件的下载速度,否则可能下载失败。
|
|
629
659
|
:type Url: str
|
|
@@ -2291,6 +2321,7 @@ class SentenceRecognitionRequest(AbstractModel):
|
|
|
2291
2321
|
• 16k_tr:土耳其语;
|
|
2292
2322
|
• 16k_ar:阿拉伯语;
|
|
2293
2323
|
• 16k_es:西班牙语;
|
|
2324
|
+
• 16k_hi:印地语;
|
|
2294
2325
|
• 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
|
|
2295
2326
|
:type EngSerViceType: str
|
|
2296
2327
|
:param _SourceType: 语音数据来源。0:语音 URL;1:语音数据(post body)。
|
|
@@ -1869,11 +1869,11 @@ class CreateUserSigRequest(AbstractModel):
|
|
|
1869
1869
|
r"""
|
|
1870
1870
|
:param _SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
|
1871
1871
|
:type SdkAppId: int
|
|
1872
|
-
:param _Uid: 用户 ID
|
|
1872
|
+
:param _Uid: 用户 ID,该值必须与 ClientData 字段中 Uid 的值一致
|
|
1873
1873
|
:type Uid: str
|
|
1874
1874
|
:param _ExpiredTime: 有效期,单位秒,不超过 1 小时
|
|
1875
1875
|
:type ExpiredTime: int
|
|
1876
|
-
:param _ClientData:
|
|
1876
|
+
:param _ClientData: 用户签名数据,必填字段,为标准 JSON 格式
|
|
1877
1877
|
:type ClientData: str
|
|
1878
1878
|
"""
|
|
1879
1879
|
self._SdkAppId = None
|
|
@@ -141,6 +141,29 @@ class CfwClient(AbstractClient):
|
|
|
141
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
142
|
|
|
143
143
|
|
|
144
|
+
def CreateBlockIgnoreRuleList(self, request):
|
|
145
|
+
"""批量添加入侵防御封禁列表、放通列表规则
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for CreateBlockIgnoreRuleList.
|
|
148
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.CreateBlockIgnoreRuleListRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.CreateBlockIgnoreRuleListResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("CreateBlockIgnoreRuleList", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.CreateBlockIgnoreRuleListResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
144
167
|
def CreateChooseVpcs(self, request):
|
|
145
168
|
"""创建、选择vpc
|
|
146
169
|
|
|
@@ -1248,6 +1271,30 @@ class CfwClient(AbstractClient):
|
|
|
1248
1271
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1249
1272
|
|
|
1250
1273
|
|
|
1274
|
+
def ModifyEWRuleStatus(self, request):
|
|
1275
|
+
"""启用停用VPC间规则或Nat边界规则
|
|
1276
|
+
VPC间规则需指定EdgeId。Nat边界规则需指定地域Region与Direction。
|
|
1277
|
+
|
|
1278
|
+
:param request: Request instance for ModifyEWRuleStatus.
|
|
1279
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.ModifyEWRuleStatusRequest`
|
|
1280
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyEWRuleStatusResponse`
|
|
1281
|
+
|
|
1282
|
+
"""
|
|
1283
|
+
try:
|
|
1284
|
+
params = request._serialize()
|
|
1285
|
+
headers = request.headers
|
|
1286
|
+
body = self.call("ModifyEWRuleStatus", params, headers=headers)
|
|
1287
|
+
response = json.loads(body)
|
|
1288
|
+
model = models.ModifyEWRuleStatusResponse()
|
|
1289
|
+
model._deserialize(response["Response"])
|
|
1290
|
+
return model
|
|
1291
|
+
except Exception as e:
|
|
1292
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1293
|
+
raise
|
|
1294
|
+
else:
|
|
1295
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1296
|
+
|
|
1297
|
+
|
|
1251
1298
|
def ModifyEnterpriseSecurityDispatchStatus(self, request):
|
|
1252
1299
|
"""修改企业安全组下发状态
|
|
1253
1300
|
|
|
@@ -1591,6 +1591,81 @@ class CreateAddressTemplateResponse(AbstractModel):
|
|
|
1591
1591
|
self._RequestId = params.get("RequestId")
|
|
1592
1592
|
|
|
1593
1593
|
|
|
1594
|
+
class CreateBlockIgnoreRuleListRequest(AbstractModel):
|
|
1595
|
+
"""CreateBlockIgnoreRuleList请求参数结构体
|
|
1596
|
+
|
|
1597
|
+
"""
|
|
1598
|
+
|
|
1599
|
+
def __init__(self):
|
|
1600
|
+
r"""
|
|
1601
|
+
:param _Rules: 规则列表
|
|
1602
|
+
:type Rules: list of IntrusionDefenseRule
|
|
1603
|
+
:param _RuleType: 规则类型,1封禁,2放通,不支持域名封禁
|
|
1604
|
+
:type RuleType: int
|
|
1605
|
+
"""
|
|
1606
|
+
self._Rules = None
|
|
1607
|
+
self._RuleType = None
|
|
1608
|
+
|
|
1609
|
+
@property
|
|
1610
|
+
def Rules(self):
|
|
1611
|
+
return self._Rules
|
|
1612
|
+
|
|
1613
|
+
@Rules.setter
|
|
1614
|
+
def Rules(self, Rules):
|
|
1615
|
+
self._Rules = Rules
|
|
1616
|
+
|
|
1617
|
+
@property
|
|
1618
|
+
def RuleType(self):
|
|
1619
|
+
return self._RuleType
|
|
1620
|
+
|
|
1621
|
+
@RuleType.setter
|
|
1622
|
+
def RuleType(self, RuleType):
|
|
1623
|
+
self._RuleType = RuleType
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
def _deserialize(self, params):
|
|
1627
|
+
if params.get("Rules") is not None:
|
|
1628
|
+
self._Rules = []
|
|
1629
|
+
for item in params.get("Rules"):
|
|
1630
|
+
obj = IntrusionDefenseRule()
|
|
1631
|
+
obj._deserialize(item)
|
|
1632
|
+
self._Rules.append(obj)
|
|
1633
|
+
self._RuleType = params.get("RuleType")
|
|
1634
|
+
memeber_set = set(params.keys())
|
|
1635
|
+
for name, value in vars(self).items():
|
|
1636
|
+
property_name = name[1:]
|
|
1637
|
+
if property_name in memeber_set:
|
|
1638
|
+
memeber_set.remove(property_name)
|
|
1639
|
+
if len(memeber_set) > 0:
|
|
1640
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
class CreateBlockIgnoreRuleListResponse(AbstractModel):
|
|
1645
|
+
"""CreateBlockIgnoreRuleList返回参数结构体
|
|
1646
|
+
|
|
1647
|
+
"""
|
|
1648
|
+
|
|
1649
|
+
def __init__(self):
|
|
1650
|
+
r"""
|
|
1651
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1652
|
+
:type RequestId: str
|
|
1653
|
+
"""
|
|
1654
|
+
self._RequestId = None
|
|
1655
|
+
|
|
1656
|
+
@property
|
|
1657
|
+
def RequestId(self):
|
|
1658
|
+
return self._RequestId
|
|
1659
|
+
|
|
1660
|
+
@RequestId.setter
|
|
1661
|
+
def RequestId(self, RequestId):
|
|
1662
|
+
self._RequestId = RequestId
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
def _deserialize(self, params):
|
|
1666
|
+
self._RequestId = params.get("RequestId")
|
|
1667
|
+
|
|
1668
|
+
|
|
1594
1669
|
class CreateChooseVpcsRequest(AbstractModel):
|
|
1595
1670
|
"""CreateChooseVpcs请求参数结构体
|
|
1596
1671
|
|
|
@@ -7691,6 +7766,99 @@ class InstanceInfo(AbstractModel):
|
|
|
7691
7766
|
|
|
7692
7767
|
|
|
7693
7768
|
|
|
7769
|
+
class IntrusionDefenseRule(AbstractModel):
|
|
7770
|
+
"""入侵防御封禁列表、放通列表添加规则入参
|
|
7771
|
+
|
|
7772
|
+
"""
|
|
7773
|
+
|
|
7774
|
+
def __init__(self):
|
|
7775
|
+
r"""
|
|
7776
|
+
:param _Direction: 规则方向,0出站,1入站,3内网间
|
|
7777
|
+
:type Direction: int
|
|
7778
|
+
:param _EndTime: 规则结束时间,格式:2006-01-02 15:04:05,必须大于当前时间
|
|
7779
|
+
:type EndTime: str
|
|
7780
|
+
:param _IP: 规则IP地址,IP与Domain必填其中之一
|
|
7781
|
+
:type IP: str
|
|
7782
|
+
:param _Domain: 规则域名,IP与Domain必填其中之一
|
|
7783
|
+
:type Domain: str
|
|
7784
|
+
:param _Comment: 备注信息,长度不能超过50
|
|
7785
|
+
:type Comment: str
|
|
7786
|
+
:param _StartTime: 规则开始时间
|
|
7787
|
+
:type StartTime: str
|
|
7788
|
+
"""
|
|
7789
|
+
self._Direction = None
|
|
7790
|
+
self._EndTime = None
|
|
7791
|
+
self._IP = None
|
|
7792
|
+
self._Domain = None
|
|
7793
|
+
self._Comment = None
|
|
7794
|
+
self._StartTime = None
|
|
7795
|
+
|
|
7796
|
+
@property
|
|
7797
|
+
def Direction(self):
|
|
7798
|
+
return self._Direction
|
|
7799
|
+
|
|
7800
|
+
@Direction.setter
|
|
7801
|
+
def Direction(self, Direction):
|
|
7802
|
+
self._Direction = Direction
|
|
7803
|
+
|
|
7804
|
+
@property
|
|
7805
|
+
def EndTime(self):
|
|
7806
|
+
return self._EndTime
|
|
7807
|
+
|
|
7808
|
+
@EndTime.setter
|
|
7809
|
+
def EndTime(self, EndTime):
|
|
7810
|
+
self._EndTime = EndTime
|
|
7811
|
+
|
|
7812
|
+
@property
|
|
7813
|
+
def IP(self):
|
|
7814
|
+
return self._IP
|
|
7815
|
+
|
|
7816
|
+
@IP.setter
|
|
7817
|
+
def IP(self, IP):
|
|
7818
|
+
self._IP = IP
|
|
7819
|
+
|
|
7820
|
+
@property
|
|
7821
|
+
def Domain(self):
|
|
7822
|
+
return self._Domain
|
|
7823
|
+
|
|
7824
|
+
@Domain.setter
|
|
7825
|
+
def Domain(self, Domain):
|
|
7826
|
+
self._Domain = Domain
|
|
7827
|
+
|
|
7828
|
+
@property
|
|
7829
|
+
def Comment(self):
|
|
7830
|
+
return self._Comment
|
|
7831
|
+
|
|
7832
|
+
@Comment.setter
|
|
7833
|
+
def Comment(self, Comment):
|
|
7834
|
+
self._Comment = Comment
|
|
7835
|
+
|
|
7836
|
+
@property
|
|
7837
|
+
def StartTime(self):
|
|
7838
|
+
return self._StartTime
|
|
7839
|
+
|
|
7840
|
+
@StartTime.setter
|
|
7841
|
+
def StartTime(self, StartTime):
|
|
7842
|
+
self._StartTime = StartTime
|
|
7843
|
+
|
|
7844
|
+
|
|
7845
|
+
def _deserialize(self, params):
|
|
7846
|
+
self._Direction = params.get("Direction")
|
|
7847
|
+
self._EndTime = params.get("EndTime")
|
|
7848
|
+
self._IP = params.get("IP")
|
|
7849
|
+
self._Domain = params.get("Domain")
|
|
7850
|
+
self._Comment = params.get("Comment")
|
|
7851
|
+
self._StartTime = params.get("StartTime")
|
|
7852
|
+
memeber_set = set(params.keys())
|
|
7853
|
+
for name, value in vars(self).items():
|
|
7854
|
+
property_name = name[1:]
|
|
7855
|
+
if property_name in memeber_set:
|
|
7856
|
+
memeber_set.remove(property_name)
|
|
7857
|
+
if len(memeber_set) > 0:
|
|
7858
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7859
|
+
|
|
7860
|
+
|
|
7861
|
+
|
|
7694
7862
|
class IocListData(AbstractModel):
|
|
7695
7863
|
"""黑白名单IOC列表
|
|
7696
7864
|
|
|
@@ -8551,6 +8719,136 @@ class ModifyBlockTopResponse(AbstractModel):
|
|
|
8551
8719
|
self._RequestId = params.get("RequestId")
|
|
8552
8720
|
|
|
8553
8721
|
|
|
8722
|
+
class ModifyEWRuleStatusRequest(AbstractModel):
|
|
8723
|
+
"""ModifyEWRuleStatus请求参数结构体
|
|
8724
|
+
|
|
8725
|
+
"""
|
|
8726
|
+
|
|
8727
|
+
def __init__(self):
|
|
8728
|
+
r"""
|
|
8729
|
+
:param _EdgeId: vpc规则必填,边id
|
|
8730
|
+
:type EdgeId: str
|
|
8731
|
+
:param _Status: 是否开关开启,0:未开启,1:开启
|
|
8732
|
+
:type Status: int
|
|
8733
|
+
:param _Direction: 规则方向,0:出站,1:入站,默认1
|
|
8734
|
+
:type Direction: int
|
|
8735
|
+
:param _RuleSequence: 更改的规则当前执行顺序
|
|
8736
|
+
:type RuleSequence: int
|
|
8737
|
+
:param _RuleType: 规则类型,vpc:VPC间规则、nat:Nat边界规则
|
|
8738
|
+
:type RuleType: str
|
|
8739
|
+
"""
|
|
8740
|
+
self._EdgeId = None
|
|
8741
|
+
self._Status = None
|
|
8742
|
+
self._Direction = None
|
|
8743
|
+
self._RuleSequence = None
|
|
8744
|
+
self._RuleType = None
|
|
8745
|
+
|
|
8746
|
+
@property
|
|
8747
|
+
def EdgeId(self):
|
|
8748
|
+
return self._EdgeId
|
|
8749
|
+
|
|
8750
|
+
@EdgeId.setter
|
|
8751
|
+
def EdgeId(self, EdgeId):
|
|
8752
|
+
self._EdgeId = EdgeId
|
|
8753
|
+
|
|
8754
|
+
@property
|
|
8755
|
+
def Status(self):
|
|
8756
|
+
return self._Status
|
|
8757
|
+
|
|
8758
|
+
@Status.setter
|
|
8759
|
+
def Status(self, Status):
|
|
8760
|
+
self._Status = Status
|
|
8761
|
+
|
|
8762
|
+
@property
|
|
8763
|
+
def Direction(self):
|
|
8764
|
+
return self._Direction
|
|
8765
|
+
|
|
8766
|
+
@Direction.setter
|
|
8767
|
+
def Direction(self, Direction):
|
|
8768
|
+
self._Direction = Direction
|
|
8769
|
+
|
|
8770
|
+
@property
|
|
8771
|
+
def RuleSequence(self):
|
|
8772
|
+
return self._RuleSequence
|
|
8773
|
+
|
|
8774
|
+
@RuleSequence.setter
|
|
8775
|
+
def RuleSequence(self, RuleSequence):
|
|
8776
|
+
self._RuleSequence = RuleSequence
|
|
8777
|
+
|
|
8778
|
+
@property
|
|
8779
|
+
def RuleType(self):
|
|
8780
|
+
return self._RuleType
|
|
8781
|
+
|
|
8782
|
+
@RuleType.setter
|
|
8783
|
+
def RuleType(self, RuleType):
|
|
8784
|
+
self._RuleType = RuleType
|
|
8785
|
+
|
|
8786
|
+
|
|
8787
|
+
def _deserialize(self, params):
|
|
8788
|
+
self._EdgeId = params.get("EdgeId")
|
|
8789
|
+
self._Status = params.get("Status")
|
|
8790
|
+
self._Direction = params.get("Direction")
|
|
8791
|
+
self._RuleSequence = params.get("RuleSequence")
|
|
8792
|
+
self._RuleType = params.get("RuleType")
|
|
8793
|
+
memeber_set = set(params.keys())
|
|
8794
|
+
for name, value in vars(self).items():
|
|
8795
|
+
property_name = name[1:]
|
|
8796
|
+
if property_name in memeber_set:
|
|
8797
|
+
memeber_set.remove(property_name)
|
|
8798
|
+
if len(memeber_set) > 0:
|
|
8799
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8800
|
+
|
|
8801
|
+
|
|
8802
|
+
|
|
8803
|
+
class ModifyEWRuleStatusResponse(AbstractModel):
|
|
8804
|
+
"""ModifyEWRuleStatus返回参数结构体
|
|
8805
|
+
|
|
8806
|
+
"""
|
|
8807
|
+
|
|
8808
|
+
def __init__(self):
|
|
8809
|
+
r"""
|
|
8810
|
+
:param _ReturnCode: 状态值,0:修改成功,非0:修改失败
|
|
8811
|
+
:type ReturnCode: int
|
|
8812
|
+
:param _ReturnMsg: 状态信息,success:查询成功,fail:查询失败
|
|
8813
|
+
:type ReturnMsg: str
|
|
8814
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8815
|
+
:type RequestId: str
|
|
8816
|
+
"""
|
|
8817
|
+
self._ReturnCode = None
|
|
8818
|
+
self._ReturnMsg = None
|
|
8819
|
+
self._RequestId = None
|
|
8820
|
+
|
|
8821
|
+
@property
|
|
8822
|
+
def ReturnCode(self):
|
|
8823
|
+
return self._ReturnCode
|
|
8824
|
+
|
|
8825
|
+
@ReturnCode.setter
|
|
8826
|
+
def ReturnCode(self, ReturnCode):
|
|
8827
|
+
self._ReturnCode = ReturnCode
|
|
8828
|
+
|
|
8829
|
+
@property
|
|
8830
|
+
def ReturnMsg(self):
|
|
8831
|
+
return self._ReturnMsg
|
|
8832
|
+
|
|
8833
|
+
@ReturnMsg.setter
|
|
8834
|
+
def ReturnMsg(self, ReturnMsg):
|
|
8835
|
+
self._ReturnMsg = ReturnMsg
|
|
8836
|
+
|
|
8837
|
+
@property
|
|
8838
|
+
def RequestId(self):
|
|
8839
|
+
return self._RequestId
|
|
8840
|
+
|
|
8841
|
+
@RequestId.setter
|
|
8842
|
+
def RequestId(self, RequestId):
|
|
8843
|
+
self._RequestId = RequestId
|
|
8844
|
+
|
|
8845
|
+
|
|
8846
|
+
def _deserialize(self, params):
|
|
8847
|
+
self._ReturnCode = params.get("ReturnCode")
|
|
8848
|
+
self._ReturnMsg = params.get("ReturnMsg")
|
|
8849
|
+
self._RequestId = params.get("RequestId")
|
|
8850
|
+
|
|
8851
|
+
|
|
8554
8852
|
class ModifyEnterpriseSecurityDispatchStatusRequest(AbstractModel):
|
|
8555
8853
|
"""ModifyEnterpriseSecurityDispatchStatus请求参数结构体
|
|
8556
8854
|
|
|
@@ -10866,6 +11164,8 @@ class RuleInfoData(AbstractModel):
|
|
|
10866
11164
|
:type CityName: str
|
|
10867
11165
|
:param _CountryName: 国家名
|
|
10868
11166
|
:type CountryName: str
|
|
11167
|
+
:param _RegionIso: 国家二位iso代码或者省份缩写代码
|
|
11168
|
+
:type RegionIso: str
|
|
10869
11169
|
"""
|
|
10870
11170
|
self._OrderIndex = None
|
|
10871
11171
|
self._SourceIp = None
|
|
@@ -10885,6 +11185,7 @@ class RuleInfoData(AbstractModel):
|
|
|
10885
11185
|
self._IsRegion = None
|
|
10886
11186
|
self._CityName = None
|
|
10887
11187
|
self._CountryName = None
|
|
11188
|
+
self._RegionIso = None
|
|
10888
11189
|
|
|
10889
11190
|
@property
|
|
10890
11191
|
def OrderIndex(self):
|
|
@@ -11030,6 +11331,14 @@ class RuleInfoData(AbstractModel):
|
|
|
11030
11331
|
def CountryName(self, CountryName):
|
|
11031
11332
|
self._CountryName = CountryName
|
|
11032
11333
|
|
|
11334
|
+
@property
|
|
11335
|
+
def RegionIso(self):
|
|
11336
|
+
return self._RegionIso
|
|
11337
|
+
|
|
11338
|
+
@RegionIso.setter
|
|
11339
|
+
def RegionIso(self, RegionIso):
|
|
11340
|
+
self._RegionIso = RegionIso
|
|
11341
|
+
|
|
11033
11342
|
|
|
11034
11343
|
def _deserialize(self, params):
|
|
11035
11344
|
self._OrderIndex = params.get("OrderIndex")
|
|
@@ -11050,6 +11359,7 @@ class RuleInfoData(AbstractModel):
|
|
|
11050
11359
|
self._IsRegion = params.get("IsRegion")
|
|
11051
11360
|
self._CityName = params.get("CityName")
|
|
11052
11361
|
self._CountryName = params.get("CountryName")
|
|
11362
|
+
self._RegionIso = params.get("RegionIso")
|
|
11053
11363
|
memeber_set = set(params.keys())
|
|
11054
11364
|
for name, value in vars(self).items():
|
|
11055
11365
|
property_name = name[1:]
|
|
@@ -11963,20 +12273,20 @@ class SecurityGroupRule(AbstractModel):
|
|
|
11963
12273
|
r"""
|
|
11964
12274
|
:param _SourceContent: 访问源示例:
|
|
11965
12275
|
net:IP/CIDR(192.168.0.2)
|
|
11966
|
-
template:参数模板(ipm-dyodhpby)
|
|
11967
|
-
instance:资产实例(ins-123456)
|
|
11968
|
-
resourcegroup:资产分组(
|
|
11969
|
-
tag:资源标签({"Key"
|
|
12276
|
+
template:参数模板id(ipm-dyodhpby)
|
|
12277
|
+
instance:资产实例id(ins-123456)
|
|
12278
|
+
resourcegroup:资产分组id(cfwrg-xxxx)
|
|
12279
|
+
tag:资源标签({\"Key\":\"标签key值\",\"Value\":\"标签Value值\"})
|
|
11970
12280
|
region:地域(ap-gaungzhou)
|
|
11971
12281
|
:type SourceContent: str
|
|
11972
12282
|
:param _SourceType: 访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region
|
|
11973
12283
|
:type SourceType: str
|
|
11974
12284
|
:param _DestContent: 访问目的示例:
|
|
11975
12285
|
net:IP/CIDR(192.168.0.2)
|
|
11976
|
-
template:参数模板(ipm-dyodhpby)
|
|
11977
|
-
instance:资产实例(ins-123456)
|
|
11978
|
-
resourcegroup:资产分组(
|
|
11979
|
-
tag:资源标签({"Key"
|
|
12286
|
+
template:参数模板id(ipm-dyodhpby)
|
|
12287
|
+
instance:资产实例id(ins-123456)
|
|
12288
|
+
resourcegroup:资产分组id(cfwrg-xxxx)
|
|
12289
|
+
tag:资源标签({\"Key\":\"标签key值\",\"Value\":\"标签Value值\"})
|
|
11980
12290
|
region:地域(ap-gaungzhou)
|
|
11981
12291
|
:type DestContent: str
|
|
11982
12292
|
:param _DestType: 访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region
|
|
@@ -11987,7 +12297,7 @@ drop:拒绝
|
|
|
11987
12297
|
:type RuleAction: str
|
|
11988
12298
|
:param _Description: 描述
|
|
11989
12299
|
:type Description: str
|
|
11990
|
-
:param _OrderIndex: 规则顺序,-1表示最低,1
|
|
12300
|
+
:param _OrderIndex: 规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)
|
|
11991
12301
|
:type OrderIndex: str
|
|
11992
12302
|
:param _Protocol: 协议;TCP/UDP/ICMP/ANY
|
|
11993
12303
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -12000,9 +12310,10 @@ drop:拒绝
|
|
|
12000
12310
|
:param _ServiceTemplateId: 端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥
|
|
12001
12311
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12002
12312
|
:type ServiceTemplateId: str
|
|
12003
|
-
:param _Id:
|
|
12313
|
+
:param _Id: (入参时无需填写,自动生成)规则对应的唯一id
|
|
12004
12314
|
:type Id: str
|
|
12005
|
-
:param _Enable:
|
|
12315
|
+
:param _Enable: (入参时、Enable已弃用;由通用配置中新增规则启用状态控制)
|
|
12316
|
+
规则状态,true表示启用,false表示禁用
|
|
12006
12317
|
:type Enable: str
|
|
12007
12318
|
"""
|
|
12008
12319
|
self._SourceContent = None
|