tencentcloud-sdk-python 3.0.1479__py2.py3-none-any.whl → 3.0.1481__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/autoscaling_client.py +2 -2
- tencentcloud/autoscaling/v20180419/models.py +42 -0
- tencentcloud/billing/v20180709/models.py +8 -8
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +0 -2
- tencentcloud/cdn/v20180606/errorcodes.py +3 -0
- tencentcloud/cdwdoris/v20211228/models.py +20 -0
- tencentcloud/ckafka/v20190819/models.py +2 -0
- tencentcloud/cloudaudit/v20190319/models.py +17 -0
- tencentcloud/cls/v20201016/errorcodes.py +9 -0
- tencentcloud/cvm/v20170312/models.py +2 -32
- tencentcloud/dbbrain/v20210527/models.py +18 -3
- tencentcloud/dlc/v20210125/models.py +45 -0
- tencentcloud/ess/v20201111/models.py +101 -2
- tencentcloud/essbasic/v20210526/models.py +139 -10
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
- tencentcloud/iotexplorer/v20190423/models.py +162 -0
- tencentcloud/lcic/v20220817/models.py +22 -2
- tencentcloud/live/v20180801/models.py +2 -0
- tencentcloud/lke/v20231130/models.py +4 -2
- tencentcloud/lkeap/v20240522/errorcodes.py +1 -1
- tencentcloud/monitor/v20180724/models.py +30 -0
- tencentcloud/mps/v20190612/errorcodes.py +6 -0
- tencentcloud/mps/v20190612/models.py +231 -4
- tencentcloud/oceanus/v20190422/models.py +4 -4
- tencentcloud/ocr/v20181119/models.py +159 -0
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/postgres/v20170312/errorcodes.py +9 -0
- tencentcloud/postgres/v20170312/models.py +488 -79
- tencentcloud/redis/v20180412/models.py +213 -24
- tencentcloud/region/v20220627/models.py +0 -2
- tencentcloud/sqlserver/v20180328/models.py +49 -4
- tencentcloud/svp/v20240125/models.py +21 -4
- tencentcloud/tag/v20180813/models.py +5 -5
- tencentcloud/tcss/v20201101/models.py +157 -0
- tencentcloud/teo/v20220901/models.py +1963 -220
- tencentcloud/tione/v20211111/models.py +162 -0
- tencentcloud/tione/v20211111/tione_client.py +69 -0
- tencentcloud/tke/v20180525/models.py +136 -22
- tencentcloud/tke/v20220501/models.py +21 -6
- tencentcloud/tms/v20201229/errorcodes.py +30 -0
- tencentcloud/tms/v20201229/models.py +461 -0
- tencentcloud/tms/v20201229/tms_client.py +48 -1
- tencentcloud/trro/v20220325/errorcodes.py +3 -0
- tencentcloud/trro/v20220325/models.py +739 -0
- tencentcloud/trro/v20220325/trro_client.py +46 -0
- tencentcloud/trtc/v20190722/models.py +32 -36
- tencentcloud/tsf/v20180326/errorcodes.py +3 -0
- tencentcloud/tsf/v20180326/models.py +96 -0
- tencentcloud/vclm/v20240523/models.py +260 -0
- tencentcloud/vclm/v20240523/vclm_client.py +46 -0
- tencentcloud/vpc/v20170312/models.py +175 -10
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/RECORD +60 -60
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/top_level.txt +0 -0
|
@@ -72,6 +72,29 @@ class VclmClient(AbstractClient):
|
|
|
72
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def DescribeImageToVideoGeneralJob(self, request):
|
|
76
|
+
r"""查询图生视频通用能力任务接口
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for DescribeImageToVideoGeneralJob.
|
|
79
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.DescribeImageToVideoGeneralJobRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.DescribeImageToVideoGeneralJobResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("DescribeImageToVideoGeneralJob", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.DescribeImageToVideoGeneralJobResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
|
+
|
|
97
|
+
|
|
75
98
|
def DescribePortraitSingJob(self, request):
|
|
76
99
|
r"""用于查询图片唱演任务。
|
|
77
100
|
支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
|
|
@@ -165,6 +188,29 @@ class VclmClient(AbstractClient):
|
|
|
165
188
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
166
189
|
|
|
167
190
|
|
|
191
|
+
def SubmitImageToVideoGeneralJob(self, request):
|
|
192
|
+
r"""图生视频通用能力接口
|
|
193
|
+
|
|
194
|
+
:param request: Request instance for SubmitImageToVideoGeneralJob.
|
|
195
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.SubmitImageToVideoGeneralJobRequest`
|
|
196
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.SubmitImageToVideoGeneralJobResponse`
|
|
197
|
+
|
|
198
|
+
"""
|
|
199
|
+
try:
|
|
200
|
+
params = request._serialize()
|
|
201
|
+
headers = request.headers
|
|
202
|
+
body = self.call("SubmitImageToVideoGeneralJob", params, headers=headers)
|
|
203
|
+
response = json.loads(body)
|
|
204
|
+
model = models.SubmitImageToVideoGeneralJobResponse()
|
|
205
|
+
model._deserialize(response["Response"])
|
|
206
|
+
return model
|
|
207
|
+
except Exception as e:
|
|
208
|
+
if isinstance(e, TencentCloudSDKException):
|
|
209
|
+
raise
|
|
210
|
+
else:
|
|
211
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
212
|
+
|
|
213
|
+
|
|
168
214
|
def SubmitPortraitSingJob(self, request):
|
|
169
215
|
r"""用于提交图片唱演任务。
|
|
170
216
|
支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
|
|
@@ -1586,6 +1586,8 @@ class AddressTemplateItem(AbstractModel):
|
|
|
1586
1586
|
|
|
1587
1587
|
@property
|
|
1588
1588
|
def AddressTemplateName(self):
|
|
1589
|
+
warnings.warn("parameter `AddressTemplateName` is deprecated", DeprecationWarning)
|
|
1590
|
+
|
|
1589
1591
|
r"""IP模板名称,废弃字段。
|
|
1590
1592
|
:rtype: str
|
|
1591
1593
|
"""
|
|
@@ -1593,10 +1595,14 @@ class AddressTemplateItem(AbstractModel):
|
|
|
1593
1595
|
|
|
1594
1596
|
@AddressTemplateName.setter
|
|
1595
1597
|
def AddressTemplateName(self, AddressTemplateName):
|
|
1598
|
+
warnings.warn("parameter `AddressTemplateName` is deprecated", DeprecationWarning)
|
|
1599
|
+
|
|
1596
1600
|
self._AddressTemplateName = AddressTemplateName
|
|
1597
1601
|
|
|
1598
1602
|
@property
|
|
1599
1603
|
def From(self):
|
|
1604
|
+
warnings.warn("parameter `From` is deprecated", DeprecationWarning)
|
|
1605
|
+
|
|
1600
1606
|
r"""废弃字段。
|
|
1601
1607
|
:rtype: str
|
|
1602
1608
|
"""
|
|
@@ -1604,10 +1610,14 @@ class AddressTemplateItem(AbstractModel):
|
|
|
1604
1610
|
|
|
1605
1611
|
@From.setter
|
|
1606
1612
|
def From(self, From):
|
|
1613
|
+
warnings.warn("parameter `From` is deprecated", DeprecationWarning)
|
|
1614
|
+
|
|
1607
1615
|
self._From = From
|
|
1608
1616
|
|
|
1609
1617
|
@property
|
|
1610
1618
|
def To(self):
|
|
1619
|
+
warnings.warn("parameter `To` is deprecated", DeprecationWarning)
|
|
1620
|
+
|
|
1611
1621
|
r"""废弃字段
|
|
1612
1622
|
:rtype: str
|
|
1613
1623
|
"""
|
|
@@ -1615,6 +1625,8 @@ class AddressTemplateItem(AbstractModel):
|
|
|
1615
1625
|
|
|
1616
1626
|
@To.setter
|
|
1617
1627
|
def To(self, To):
|
|
1628
|
+
warnings.warn("parameter `To` is deprecated", DeprecationWarning)
|
|
1629
|
+
|
|
1618
1630
|
self._To = To
|
|
1619
1631
|
|
|
1620
1632
|
@property
|
|
@@ -8750,6 +8762,8 @@ class ConflictItem(AbstractModel):
|
|
|
8750
8762
|
|
|
8751
8763
|
@property
|
|
8752
8764
|
def ConfilctId(self):
|
|
8765
|
+
warnings.warn("parameter `ConfilctId` is deprecated", DeprecationWarning)
|
|
8766
|
+
|
|
8753
8767
|
r"""冲突资源的ID。已废弃
|
|
8754
8768
|
:rtype: str
|
|
8755
8769
|
"""
|
|
@@ -8757,6 +8771,8 @@ class ConflictItem(AbstractModel):
|
|
|
8757
8771
|
|
|
8758
8772
|
@ConfilctId.setter
|
|
8759
8773
|
def ConfilctId(self, ConfilctId):
|
|
8774
|
+
warnings.warn("parameter `ConfilctId` is deprecated", DeprecationWarning)
|
|
8775
|
+
|
|
8760
8776
|
self._ConfilctId = ConfilctId
|
|
8761
8777
|
|
|
8762
8778
|
@property
|
|
@@ -10822,7 +10838,7 @@ class CreateFlowLogRequest(AbstractModel):
|
|
|
10822
10838
|
r"""
|
|
10823
10839
|
:param _FlowLogName: 流日志实例名称。长度为不超过60个字符。
|
|
10824
10840
|
:type FlowLogName: str
|
|
10825
|
-
:param _ResourceType: 流日志所属资源类型,
|
|
10841
|
+
:param _ResourceType: 流日志所属资源类型,NETWORKINTERFACE(网卡),CCN(云联网),NAT(网络地址转化),DCG(专线网关)。当选择CCN,DCG时,请通过工单加入白名单。
|
|
10826
10842
|
:type ResourceType: str
|
|
10827
10843
|
:param _ResourceId: 资源唯一ID。
|
|
10828
10844
|
:type ResourceId: str
|
|
@@ -10843,6 +10859,8 @@ class CreateFlowLogRequest(AbstractModel):
|
|
|
10843
10859
|
:type FlowLogStorage: :class:`tencentcloud.vpc.v20170312.models.FlowLogStorage`
|
|
10844
10860
|
:param _CloudLogRegion: 流日志存储ID对应的地域,不传递默认为本地域。
|
|
10845
10861
|
:type CloudLogRegion: str
|
|
10862
|
+
:param _Period: 流日志采集周期,只支持CCN类型流日志。取值范围(单位s):60, 300, 600。
|
|
10863
|
+
:type Period: int
|
|
10846
10864
|
"""
|
|
10847
10865
|
self._FlowLogName = None
|
|
10848
10866
|
self._ResourceType = None
|
|
@@ -10855,6 +10873,7 @@ class CreateFlowLogRequest(AbstractModel):
|
|
|
10855
10873
|
self._StorageType = None
|
|
10856
10874
|
self._FlowLogStorage = None
|
|
10857
10875
|
self._CloudLogRegion = None
|
|
10876
|
+
self._Period = None
|
|
10858
10877
|
|
|
10859
10878
|
@property
|
|
10860
10879
|
def FlowLogName(self):
|
|
@@ -10869,7 +10888,7 @@ class CreateFlowLogRequest(AbstractModel):
|
|
|
10869
10888
|
|
|
10870
10889
|
@property
|
|
10871
10890
|
def ResourceType(self):
|
|
10872
|
-
r"""流日志所属资源类型,
|
|
10891
|
+
r"""流日志所属资源类型,NETWORKINTERFACE(网卡),CCN(云联网),NAT(网络地址转化),DCG(专线网关)。当选择CCN,DCG时,请通过工单加入白名单。
|
|
10873
10892
|
:rtype: str
|
|
10874
10893
|
"""
|
|
10875
10894
|
return self._ResourceType
|
|
@@ -10978,6 +10997,17 @@ class CreateFlowLogRequest(AbstractModel):
|
|
|
10978
10997
|
def CloudLogRegion(self, CloudLogRegion):
|
|
10979
10998
|
self._CloudLogRegion = CloudLogRegion
|
|
10980
10999
|
|
|
11000
|
+
@property
|
|
11001
|
+
def Period(self):
|
|
11002
|
+
r"""流日志采集周期,只支持CCN类型流日志。取值范围(单位s):60, 300, 600。
|
|
11003
|
+
:rtype: int
|
|
11004
|
+
"""
|
|
11005
|
+
return self._Period
|
|
11006
|
+
|
|
11007
|
+
@Period.setter
|
|
11008
|
+
def Period(self, Period):
|
|
11009
|
+
self._Period = Period
|
|
11010
|
+
|
|
10981
11011
|
|
|
10982
11012
|
def _deserialize(self, params):
|
|
10983
11013
|
self._FlowLogName = params.get("FlowLogName")
|
|
@@ -10998,6 +11028,7 @@ class CreateFlowLogRequest(AbstractModel):
|
|
|
10998
11028
|
self._FlowLogStorage = FlowLogStorage()
|
|
10999
11029
|
self._FlowLogStorage._deserialize(params.get("FlowLogStorage"))
|
|
11000
11030
|
self._CloudLogRegion = params.get("CloudLogRegion")
|
|
11031
|
+
self._Period = params.get("Period")
|
|
11001
11032
|
memeber_set = set(params.keys())
|
|
11002
11033
|
for name, value in vars(self).items():
|
|
11003
11034
|
property_name = name[1:]
|
|
@@ -23651,11 +23682,11 @@ class DescribeAddressesRequest(AbstractModel):
|
|
|
23651
23682
|
:type AddressIds: list of str
|
|
23652
23683
|
:param _Filters: 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。详细的过滤条件如下:
|
|
23653
23684
|
<li> address-id - String - 是否必填:否 - (过滤条件)按照 EIP 的唯一 ID 过滤。EIP 唯一 ID 形如:eip-11112222。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-id。</li>
|
|
23654
|
-
<li> address-name - String - 是否必填:否 - (过滤条件)按照 EIP 名称过滤。不支持模糊过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-name
|
|
23685
|
+
<li> address-name - String - 是否必填:否 - (过滤条件)按照 EIP 名称过滤。不支持模糊过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-name。注意:当指定 address-name 参数时,仅支持按第一个传入的 address-name 参数执行查询操作。</li>
|
|
23655
23686
|
<li> address-ip - String - 是否必填:否 - (过滤条件)按照 EIP 的 IP 地址过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-ip。</li>
|
|
23656
23687
|
<li> address-status - String - 是否必填:否 - (过滤条件)按照 EIP 的状态过滤。状态包含:'CREATING':创建中,'BINDING':绑定中,'BIND':已绑,'UNBINDING':解绑中,'UNBIND':未绑定,'OFFLINING':下线中,'BIND_ENI':绑定了ENI。</li>
|
|
23657
23688
|
<li> instance-id - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的实例 ID 过滤。实例 ID 形如:ins-11112222。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取instance-id。</li>
|
|
23658
|
-
<li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的内网 IP 过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取private-ip-address
|
|
23689
|
+
<li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的内网 IP 过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取private-ip-address。注意:当指定 private-ip-address 参数时,仅支持按第一个传入的 private-ip-address 参数执行查询操作。</li>
|
|
23659
23690
|
<li> network-interface-id - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的弹性网卡 ID 过滤。弹性网卡 ID 形如:eni-11112222。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取network-interface-id。</li>
|
|
23660
23691
|
<li> is-arrears - String - 是否必填:否 - (过滤条件)按照 EIP 是否欠费进行过滤。(TRUE:EIP 处于欠费状态|FALSE:EIP 费用状态正常)</li>
|
|
23661
23692
|
<li> address-type - String - 是否必填:否 - (过滤条件)按照 IP类型 进行过滤。可选值:'WanIP':普通公网 IP, 'EIP':弹性公网 IP,'AnycastEIP':加速 IP,'HighQualityEIP':精品弹性公网 IP, 'AntiDDoSEIP':高防 IP。默认值是'EIP'。</li>
|
|
@@ -23690,11 +23721,11 @@ class DescribeAddressesRequest(AbstractModel):
|
|
|
23690
23721
|
def Filters(self):
|
|
23691
23722
|
r"""每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。详细的过滤条件如下:
|
|
23692
23723
|
<li> address-id - String - 是否必填:否 - (过滤条件)按照 EIP 的唯一 ID 过滤。EIP 唯一 ID 形如:eip-11112222。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-id。</li>
|
|
23693
|
-
<li> address-name - String - 是否必填:否 - (过滤条件)按照 EIP 名称过滤。不支持模糊过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-name
|
|
23724
|
+
<li> address-name - String - 是否必填:否 - (过滤条件)按照 EIP 名称过滤。不支持模糊过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-name。注意:当指定 address-name 参数时,仅支持按第一个传入的 address-name 参数执行查询操作。</li>
|
|
23694
23725
|
<li> address-ip - String - 是否必填:否 - (过滤条件)按照 EIP 的 IP 地址过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取address-ip。</li>
|
|
23695
23726
|
<li> address-status - String - 是否必填:否 - (过滤条件)按照 EIP 的状态过滤。状态包含:'CREATING':创建中,'BINDING':绑定中,'BIND':已绑,'UNBINDING':解绑中,'UNBIND':未绑定,'OFFLINING':下线中,'BIND_ENI':绑定了ENI。</li>
|
|
23696
23727
|
<li> instance-id - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的实例 ID 过滤。实例 ID 形如:ins-11112222。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取instance-id。</li>
|
|
23697
|
-
<li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的内网 IP 过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取private-ip-address
|
|
23728
|
+
<li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的内网 IP 过滤。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取private-ip-address。注意:当指定 private-ip-address 参数时,仅支持按第一个传入的 private-ip-address 参数执行查询操作。</li>
|
|
23698
23729
|
<li> network-interface-id - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的弹性网卡 ID 过滤。弹性网卡 ID 形如:eni-11112222。可以使用[DescribeAddresses](https://cloud.tencent.com/document/product/215/16702)接口获取network-interface-id。</li>
|
|
23699
23730
|
<li> is-arrears - String - 是否必填:否 - (过滤条件)按照 EIP 是否欠费进行过滤。(TRUE:EIP 处于欠费状态|FALSE:EIP 费用状态正常)</li>
|
|
23700
23731
|
<li> address-type - String - 是否必填:否 - (过滤条件)按照 IP类型 进行过滤。可选值:'WanIP':普通公网 IP, 'EIP':弹性公网 IP,'AnycastEIP':加速 IP,'HighQualityEIP':精品弹性公网 IP, 'AntiDDoSEIP':高防 IP。默认值是'EIP'。</li>
|
|
@@ -33879,6 +33910,125 @@ class DescribeSecurityGroupAssociationStatisticsResponse(AbstractModel):
|
|
|
33879
33910
|
self._RequestId = params.get("RequestId")
|
|
33880
33911
|
|
|
33881
33912
|
|
|
33913
|
+
class DescribeSecurityGroupExpandedPoliciesRequest(AbstractModel):
|
|
33914
|
+
r"""DescribeSecurityGroupExpandedPolicies请求参数结构体
|
|
33915
|
+
|
|
33916
|
+
"""
|
|
33917
|
+
|
|
33918
|
+
def __init__(self):
|
|
33919
|
+
r"""
|
|
33920
|
+
:param _SecurityGroupId: 安全组实例ID,例如:sg-33ocnj9n,可通过<a href="https://cloud.tencent.com/document/product/215/15808">DescribeSecurityGroups</a>获取。
|
|
33921
|
+
:type SecurityGroupId: str
|
|
33922
|
+
:param _Filters: 过滤条件。
|
|
33923
|
+
<li>security-group-id - String - 规则中的安全组ID。</li>
|
|
33924
|
+
<li>ip - String - IP,支持IPV4和IPV6模糊匹配。</li>
|
|
33925
|
+
<li>address-module - String - IP地址模板或IP地址组模板ID。</li>
|
|
33926
|
+
<li>service-module - String - 协议端口模板或协议端口组模板ID。</li>
|
|
33927
|
+
<li>protocol-type - String - 安全组策略支持的协议,可选值:`TCP`, `UDP`, `ICMP`, `ICMPV6`, `GRE`, `ALL`。</li>
|
|
33928
|
+
<li>port - String - 是否必填:否 -协议端口,支持模糊匹配,值为`ALL`时,查询所有的端口。</li>
|
|
33929
|
+
<li>poly - String - 协议策略,可选值:`ALL`,所有策略;`ACCEPT`,允许;`DROP`,拒绝。</li>
|
|
33930
|
+
<li>direction - String - 协议规则,可选值:`ALL`,所有策略;`INBOUND`,入站规则;`OUTBOUND`,出站规则。</li>
|
|
33931
|
+
<li>description - String - 协议描述,该过滤条件支持模糊匹配。</li>
|
|
33932
|
+
:type Filters: list of Filter
|
|
33933
|
+
"""
|
|
33934
|
+
self._SecurityGroupId = None
|
|
33935
|
+
self._Filters = None
|
|
33936
|
+
|
|
33937
|
+
@property
|
|
33938
|
+
def SecurityGroupId(self):
|
|
33939
|
+
r"""安全组实例ID,例如:sg-33ocnj9n,可通过<a href="https://cloud.tencent.com/document/product/215/15808">DescribeSecurityGroups</a>获取。
|
|
33940
|
+
:rtype: str
|
|
33941
|
+
"""
|
|
33942
|
+
return self._SecurityGroupId
|
|
33943
|
+
|
|
33944
|
+
@SecurityGroupId.setter
|
|
33945
|
+
def SecurityGroupId(self, SecurityGroupId):
|
|
33946
|
+
self._SecurityGroupId = SecurityGroupId
|
|
33947
|
+
|
|
33948
|
+
@property
|
|
33949
|
+
def Filters(self):
|
|
33950
|
+
r"""过滤条件。
|
|
33951
|
+
<li>security-group-id - String - 规则中的安全组ID。</li>
|
|
33952
|
+
<li>ip - String - IP,支持IPV4和IPV6模糊匹配。</li>
|
|
33953
|
+
<li>address-module - String - IP地址模板或IP地址组模板ID。</li>
|
|
33954
|
+
<li>service-module - String - 协议端口模板或协议端口组模板ID。</li>
|
|
33955
|
+
<li>protocol-type - String - 安全组策略支持的协议,可选值:`TCP`, `UDP`, `ICMP`, `ICMPV6`, `GRE`, `ALL`。</li>
|
|
33956
|
+
<li>port - String - 是否必填:否 -协议端口,支持模糊匹配,值为`ALL`时,查询所有的端口。</li>
|
|
33957
|
+
<li>poly - String - 协议策略,可选值:`ALL`,所有策略;`ACCEPT`,允许;`DROP`,拒绝。</li>
|
|
33958
|
+
<li>direction - String - 协议规则,可选值:`ALL`,所有策略;`INBOUND`,入站规则;`OUTBOUND`,出站规则。</li>
|
|
33959
|
+
<li>description - String - 协议描述,该过滤条件支持模糊匹配。</li>
|
|
33960
|
+
:rtype: list of Filter
|
|
33961
|
+
"""
|
|
33962
|
+
return self._Filters
|
|
33963
|
+
|
|
33964
|
+
@Filters.setter
|
|
33965
|
+
def Filters(self, Filters):
|
|
33966
|
+
self._Filters = Filters
|
|
33967
|
+
|
|
33968
|
+
|
|
33969
|
+
def _deserialize(self, params):
|
|
33970
|
+
self._SecurityGroupId = params.get("SecurityGroupId")
|
|
33971
|
+
if params.get("Filters") is not None:
|
|
33972
|
+
self._Filters = []
|
|
33973
|
+
for item in params.get("Filters"):
|
|
33974
|
+
obj = Filter()
|
|
33975
|
+
obj._deserialize(item)
|
|
33976
|
+
self._Filters.append(obj)
|
|
33977
|
+
memeber_set = set(params.keys())
|
|
33978
|
+
for name, value in vars(self).items():
|
|
33979
|
+
property_name = name[1:]
|
|
33980
|
+
if property_name in memeber_set:
|
|
33981
|
+
memeber_set.remove(property_name)
|
|
33982
|
+
if len(memeber_set) > 0:
|
|
33983
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
33984
|
+
|
|
33985
|
+
|
|
33986
|
+
|
|
33987
|
+
class DescribeSecurityGroupExpandedPoliciesResponse(AbstractModel):
|
|
33988
|
+
r"""DescribeSecurityGroupExpandedPolicies返回参数结构体
|
|
33989
|
+
|
|
33990
|
+
"""
|
|
33991
|
+
|
|
33992
|
+
def __init__(self):
|
|
33993
|
+
r"""
|
|
33994
|
+
:param _SecurityGroupPolicySet: 安全组规则集合。
|
|
33995
|
+
:type SecurityGroupPolicySet: :class:`tencentcloud.vpc.v20170312.models.SecurityGroupPolicySet`
|
|
33996
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
33997
|
+
:type RequestId: str
|
|
33998
|
+
"""
|
|
33999
|
+
self._SecurityGroupPolicySet = None
|
|
34000
|
+
self._RequestId = None
|
|
34001
|
+
|
|
34002
|
+
@property
|
|
34003
|
+
def SecurityGroupPolicySet(self):
|
|
34004
|
+
r"""安全组规则集合。
|
|
34005
|
+
:rtype: :class:`tencentcloud.vpc.v20170312.models.SecurityGroupPolicySet`
|
|
34006
|
+
"""
|
|
34007
|
+
return self._SecurityGroupPolicySet
|
|
34008
|
+
|
|
34009
|
+
@SecurityGroupPolicySet.setter
|
|
34010
|
+
def SecurityGroupPolicySet(self, SecurityGroupPolicySet):
|
|
34011
|
+
self._SecurityGroupPolicySet = SecurityGroupPolicySet
|
|
34012
|
+
|
|
34013
|
+
@property
|
|
34014
|
+
def RequestId(self):
|
|
34015
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
34016
|
+
:rtype: str
|
|
34017
|
+
"""
|
|
34018
|
+
return self._RequestId
|
|
34019
|
+
|
|
34020
|
+
@RequestId.setter
|
|
34021
|
+
def RequestId(self, RequestId):
|
|
34022
|
+
self._RequestId = RequestId
|
|
34023
|
+
|
|
34024
|
+
|
|
34025
|
+
def _deserialize(self, params):
|
|
34026
|
+
if params.get("SecurityGroupPolicySet") is not None:
|
|
34027
|
+
self._SecurityGroupPolicySet = SecurityGroupPolicySet()
|
|
34028
|
+
self._SecurityGroupPolicySet._deserialize(params.get("SecurityGroupPolicySet"))
|
|
34029
|
+
self._RequestId = params.get("RequestId")
|
|
34030
|
+
|
|
34031
|
+
|
|
33882
34032
|
class DescribeSecurityGroupLimitsRequest(AbstractModel):
|
|
33883
34033
|
r"""DescribeSecurityGroupLimits请求参数结构体
|
|
33884
34034
|
|
|
@@ -43543,13 +43693,13 @@ class FlowLog(AbstractModel):
|
|
|
43543
43693
|
|
|
43544
43694
|
def __init__(self):
|
|
43545
43695
|
r"""
|
|
43546
|
-
:param _VpcId:
|
|
43696
|
+
:param _VpcId: 私有网络唯一ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口获取。
|
|
43547
43697
|
:type VpcId: str
|
|
43548
43698
|
:param _FlowLogId: 流日志唯一ID。
|
|
43549
43699
|
:type FlowLogId: str
|
|
43550
43700
|
:param _FlowLogName: 流日志实例名字。
|
|
43551
43701
|
:type FlowLogName: str
|
|
43552
|
-
:param _ResourceType: 流日志所属资源类型:VPC(私有网络),SUBNET(子网),NETWORKINTERFACE(网卡),CCN(云联网),NAT
|
|
43702
|
+
:param _ResourceType: 流日志所属资源类型:VPC(私有网络),SUBNET(子网),NETWORKINTERFACE(网卡),CCN(云联网),NAT(网络地址转换),DCG(专线网关)。
|
|
43553
43703
|
:type ResourceType: str
|
|
43554
43704
|
:param _ResourceId: 资源唯一ID。
|
|
43555
43705
|
:type ResourceId: str
|
|
@@ -43573,6 +43723,8 @@ class FlowLog(AbstractModel):
|
|
|
43573
43723
|
:type FlowLogStorage: :class:`tencentcloud.vpc.v20170312.models.FlowLogStorage`
|
|
43574
43724
|
:param _CloudLogRegion: 流日志存储ID对应的地域信息。
|
|
43575
43725
|
:type CloudLogRegion: str
|
|
43726
|
+
:param _Period: 流日志采集周期,只支持CCN类型流日志。取值范围(单位s):60, 300, 600。
|
|
43727
|
+
:type Period: int
|
|
43576
43728
|
"""
|
|
43577
43729
|
self._VpcId = None
|
|
43578
43730
|
self._FlowLogId = None
|
|
@@ -43589,10 +43741,11 @@ class FlowLog(AbstractModel):
|
|
|
43589
43741
|
self._StorageType = None
|
|
43590
43742
|
self._FlowLogStorage = None
|
|
43591
43743
|
self._CloudLogRegion = None
|
|
43744
|
+
self._Period = None
|
|
43592
43745
|
|
|
43593
43746
|
@property
|
|
43594
43747
|
def VpcId(self):
|
|
43595
|
-
r"""
|
|
43748
|
+
r"""私有网络唯一ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口获取。
|
|
43596
43749
|
:rtype: str
|
|
43597
43750
|
"""
|
|
43598
43751
|
return self._VpcId
|
|
@@ -43625,7 +43778,7 @@ class FlowLog(AbstractModel):
|
|
|
43625
43778
|
|
|
43626
43779
|
@property
|
|
43627
43780
|
def ResourceType(self):
|
|
43628
|
-
r"""流日志所属资源类型:VPC(私有网络),SUBNET(子网),NETWORKINTERFACE(网卡),CCN(云联网),NAT
|
|
43781
|
+
r"""流日志所属资源类型:VPC(私有网络),SUBNET(子网),NETWORKINTERFACE(网卡),CCN(云联网),NAT(网络地址转换),DCG(专线网关)。
|
|
43629
43782
|
:rtype: str
|
|
43630
43783
|
"""
|
|
43631
43784
|
return self._ResourceType
|
|
@@ -43755,6 +43908,17 @@ class FlowLog(AbstractModel):
|
|
|
43755
43908
|
def CloudLogRegion(self, CloudLogRegion):
|
|
43756
43909
|
self._CloudLogRegion = CloudLogRegion
|
|
43757
43910
|
|
|
43911
|
+
@property
|
|
43912
|
+
def Period(self):
|
|
43913
|
+
r"""流日志采集周期,只支持CCN类型流日志。取值范围(单位s):60, 300, 600。
|
|
43914
|
+
:rtype: int
|
|
43915
|
+
"""
|
|
43916
|
+
return self._Period
|
|
43917
|
+
|
|
43918
|
+
@Period.setter
|
|
43919
|
+
def Period(self, Period):
|
|
43920
|
+
self._Period = Period
|
|
43921
|
+
|
|
43758
43922
|
|
|
43759
43923
|
def _deserialize(self, params):
|
|
43760
43924
|
self._VpcId = params.get("VpcId")
|
|
@@ -43779,6 +43943,7 @@ class FlowLog(AbstractModel):
|
|
|
43779
43943
|
self._FlowLogStorage = FlowLogStorage()
|
|
43780
43944
|
self._FlowLogStorage._deserialize(params.get("FlowLogStorage"))
|
|
43781
43945
|
self._CloudLogRegion = params.get("CloudLogRegion")
|
|
43946
|
+
self._Period = params.get("Period")
|
|
43782
43947
|
memeber_set = set(params.keys())
|
|
43783
43948
|
for name, value in vars(self).items():
|
|
43784
43949
|
property_name = name[1:]
|
|
@@ -5436,6 +5436,29 @@ class VpcClient(AbstractClient):
|
|
|
5436
5436
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5437
5437
|
|
|
5438
5438
|
|
|
5439
|
+
def DescribeSecurityGroupExpandedPolicies(self, request):
|
|
5440
|
+
r"""本接口(DescribeSecurityGroupExpandedPolicies)用于查看参数模板展开后的安全组规则。本接口会通过缓存降低请求后端服务的调用次数,因此拉取结果会存在延迟(缓存超时时间为1分钟)。
|
|
5441
|
+
|
|
5442
|
+
:param request: Request instance for DescribeSecurityGroupExpandedPolicies.
|
|
5443
|
+
:type request: :class:`tencentcloud.vpc.v20170312.models.DescribeSecurityGroupExpandedPoliciesRequest`
|
|
5444
|
+
:rtype: :class:`tencentcloud.vpc.v20170312.models.DescribeSecurityGroupExpandedPoliciesResponse`
|
|
5445
|
+
|
|
5446
|
+
"""
|
|
5447
|
+
try:
|
|
5448
|
+
params = request._serialize()
|
|
5449
|
+
headers = request.headers
|
|
5450
|
+
body = self.call("DescribeSecurityGroupExpandedPolicies", params, headers=headers)
|
|
5451
|
+
response = json.loads(body)
|
|
5452
|
+
model = models.DescribeSecurityGroupExpandedPoliciesResponse()
|
|
5453
|
+
model._deserialize(response["Response"])
|
|
5454
|
+
return model
|
|
5455
|
+
except Exception as e:
|
|
5456
|
+
if isinstance(e, TencentCloudSDKException):
|
|
5457
|
+
raise
|
|
5458
|
+
else:
|
|
5459
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5460
|
+
|
|
5461
|
+
|
|
5439
5462
|
def DescribeSecurityGroupLimits(self, request):
|
|
5440
5463
|
r"""本接口(DescribeSecurityGroupLimits)用于查询用户安全组配额。
|
|
5441
5464
|
|