tencentcloud-sdk-python 3.0.1351__py2.py3-none-any.whl → 3.0.1353__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/batch/v20170312/batch_client.py +0 -46
- tencentcloud/batch/v20170312/errorcodes.py +0 -9
- tencentcloud/batch/v20170312/models.py +21 -962
- tencentcloud/bi/v20220105/models.py +145 -0
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +0 -82
- tencentcloud/cbs/v20170312/models.py +6 -14
- tencentcloud/cdn/v20180606/models.py +0 -46
- tencentcloud/chdfs/v20201112/models.py +2 -2
- tencentcloud/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +908 -26
- tencentcloud/controlcenter/v20230110/models.py +0 -58
- tencentcloud/cvm/v20170312/cvm_client.py +1 -1
- tencentcloud/cvm/v20170312/models.py +2 -6
- tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20191016/models.py +603 -10
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- tencentcloud/dbbrain/v20210527/models.py +942 -49
- tencentcloud/dcdb/v20180411/models.py +175 -2
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +284 -0
- tencentcloud/dnspod/v20210323/models.py +0 -70
- tencentcloud/ess/v20201111/models.py +6 -6
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/facefusion/v20220927/models.py +4 -2
- tencentcloud/gs/v20191118/models.py +51 -4
- tencentcloud/hai/v20230812/models.py +2 -18
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
- tencentcloud/iotexplorer/v20190423/models.py +141 -420
- tencentcloud/live/v20180801/models.py +4 -6
- tencentcloud/lkeap/v20240522/models.py +12 -6
- tencentcloud/mariadb/v20170312/models.py +151 -2
- tencentcloud/mps/v20190612/models.py +10 -10
- tencentcloud/mqtt/v20240516/models.py +97 -14
- tencentcloud/ocr/v20181119/errorcodes.py +0 -3
- tencentcloud/ocr/v20181119/models.py +143 -558
- tencentcloud/ocr/v20181119/ocr_client.py +0 -23
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/partners/v20180321/models.py +15 -0
- tencentcloud/sqlserver/v20180328/models.py +15 -0
- tencentcloud/tcb/v20180608/models.py +20 -0
- tencentcloud/tdmq/v20200217/models.py +45 -0
- tencentcloud/teo/v20220106/teo_client.py +6 -2
- tencentcloud/teo/v20220901/models.py +85 -12
- tencentcloud/tione/v20211111/models.py +35 -3
- tencentcloud/trro/v20220325/models.py +992 -44
- tencentcloud/trro/v20220325/trro_client.py +117 -0
- tencentcloud/tse/v20201207/models.py +0 -34
- tencentcloud/vdb/v20230616/models.py +1438 -40
- tencentcloud/vdb/v20230616/vdb_client.py +184 -0
- tencentcloud/vod/v20180717/models.py +15 -0
- tencentcloud/vod/v20240718/errorcodes.py +33 -0
- tencentcloud/vod/v20240718/models.py +1839 -0
- tencentcloud/vod/v20240718/vod_client.py +146 -0
- tencentcloud/vpc/v20170312/models.py +300 -0
- tencentcloud/vpc/v20170312/vpc_client.py +26 -0
- tencentcloud/wedata/v20210820/models.py +808 -0
- tencentcloud/wedata/v20210820/wedata_client.py +46 -0
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/RECORD +66 -66
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/top_level.txt +0 -0
@@ -26,6 +26,57 @@ class VodClient(AbstractClient):
|
|
26
26
|
_service = 'vod'
|
27
27
|
|
28
28
|
|
29
|
+
def CreateIncrementalMigrationStrategy(self, request):
|
30
|
+
"""创建增量迁移策略。
|
31
|
+
|
32
|
+
:param request: Request instance for CreateIncrementalMigrationStrategy.
|
33
|
+
:type request: :class:`tencentcloud.vod.v20240718.models.CreateIncrementalMigrationStrategyRequest`
|
34
|
+
:rtype: :class:`tencentcloud.vod.v20240718.models.CreateIncrementalMigrationStrategyResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("CreateIncrementalMigrationStrategy", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.CreateIncrementalMigrationStrategyResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
52
|
+
def CreateStorage(self, request):
|
53
|
+
"""该接口用于为专业版应用创建存储桶。
|
54
|
+
|
55
|
+
注:
|
56
|
+
- 本接口仅用于专业版应用;
|
57
|
+
- 客户创建点播专业版应用时,系统默认为客户开通了部分地域的存储,用户如果需要开通其它地域的存储,可以通过该接口进行开通;
|
58
|
+
- 通过 [DescribeStorageRegions](https://cloud.tencent.com/document/product/266/72480) 接口可以查询到所有存储地域及已经开通存储桶的地域。
|
59
|
+
|
60
|
+
:param request: Request instance for CreateStorage.
|
61
|
+
:type request: :class:`tencentcloud.vod.v20240718.models.CreateStorageRequest`
|
62
|
+
:rtype: :class:`tencentcloud.vod.v20240718.models.CreateStorageResponse`
|
63
|
+
|
64
|
+
"""
|
65
|
+
try:
|
66
|
+
params = request._serialize()
|
67
|
+
headers = request.headers
|
68
|
+
body = self.call("CreateStorage", params, headers=headers)
|
69
|
+
response = json.loads(body)
|
70
|
+
model = models.CreateStorageResponse()
|
71
|
+
model._deserialize(response["Response"])
|
72
|
+
return model
|
73
|
+
except Exception as e:
|
74
|
+
if isinstance(e, TencentCloudSDKException):
|
75
|
+
raise
|
76
|
+
else:
|
77
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
78
|
+
|
79
|
+
|
29
80
|
def CreateStorageCredentials(self, request):
|
30
81
|
"""用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
|
31
82
|
|
@@ -42,6 +93,101 @@ class VodClient(AbstractClient):
|
|
42
93
|
model = models.CreateStorageCredentialsResponse()
|
43
94
|
model._deserialize(response["Response"])
|
44
95
|
return model
|
96
|
+
except Exception as e:
|
97
|
+
if isinstance(e, TencentCloudSDKException):
|
98
|
+
raise
|
99
|
+
else:
|
100
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
101
|
+
|
102
|
+
|
103
|
+
def DeleteIncrementalMigrationStrategy(self, request):
|
104
|
+
"""删除增量迁移策略。
|
105
|
+
|
106
|
+
:param request: Request instance for DeleteIncrementalMigrationStrategy.
|
107
|
+
:type request: :class:`tencentcloud.vod.v20240718.models.DeleteIncrementalMigrationStrategyRequest`
|
108
|
+
:rtype: :class:`tencentcloud.vod.v20240718.models.DeleteIncrementalMigrationStrategyResponse`
|
109
|
+
|
110
|
+
"""
|
111
|
+
try:
|
112
|
+
params = request._serialize()
|
113
|
+
headers = request.headers
|
114
|
+
body = self.call("DeleteIncrementalMigrationStrategy", params, headers=headers)
|
115
|
+
response = json.loads(body)
|
116
|
+
model = models.DeleteIncrementalMigrationStrategyResponse()
|
117
|
+
model._deserialize(response["Response"])
|
118
|
+
return model
|
119
|
+
except Exception as e:
|
120
|
+
if isinstance(e, TencentCloudSDKException):
|
121
|
+
raise
|
122
|
+
else:
|
123
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
124
|
+
|
125
|
+
|
126
|
+
def DescribeIncrementalMigrationStrategyInfos(self, request):
|
127
|
+
"""查询增量迁移策略信息。
|
128
|
+
|
129
|
+
:param request: Request instance for DescribeIncrementalMigrationStrategyInfos.
|
130
|
+
:type request: :class:`tencentcloud.vod.v20240718.models.DescribeIncrementalMigrationStrategyInfosRequest`
|
131
|
+
:rtype: :class:`tencentcloud.vod.v20240718.models.DescribeIncrementalMigrationStrategyInfosResponse`
|
132
|
+
|
133
|
+
"""
|
134
|
+
try:
|
135
|
+
params = request._serialize()
|
136
|
+
headers = request.headers
|
137
|
+
body = self.call("DescribeIncrementalMigrationStrategyInfos", params, headers=headers)
|
138
|
+
response = json.loads(body)
|
139
|
+
model = models.DescribeIncrementalMigrationStrategyInfosResponse()
|
140
|
+
model._deserialize(response["Response"])
|
141
|
+
return model
|
142
|
+
except Exception as e:
|
143
|
+
if isinstance(e, TencentCloudSDKException):
|
144
|
+
raise
|
145
|
+
else:
|
146
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
147
|
+
|
148
|
+
|
149
|
+
def DescribeStorage(self, request):
|
150
|
+
"""该接口用于查询专业版应用中的存储桶信息,同时支持分页查询。
|
151
|
+
|
152
|
+
注:
|
153
|
+
- 本接口仅用于专业版应用。
|
154
|
+
|
155
|
+
:param request: Request instance for DescribeStorage.
|
156
|
+
:type request: :class:`tencentcloud.vod.v20240718.models.DescribeStorageRequest`
|
157
|
+
:rtype: :class:`tencentcloud.vod.v20240718.models.DescribeStorageResponse`
|
158
|
+
|
159
|
+
"""
|
160
|
+
try:
|
161
|
+
params = request._serialize()
|
162
|
+
headers = request.headers
|
163
|
+
body = self.call("DescribeStorage", params, headers=headers)
|
164
|
+
response = json.loads(body)
|
165
|
+
model = models.DescribeStorageResponse()
|
166
|
+
model._deserialize(response["Response"])
|
167
|
+
return model
|
168
|
+
except Exception as e:
|
169
|
+
if isinstance(e, TencentCloudSDKException):
|
170
|
+
raise
|
171
|
+
else:
|
172
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
173
|
+
|
174
|
+
|
175
|
+
def ModifyIncrementalMigrationStrategy(self, request):
|
176
|
+
"""创建增量迁移策略。
|
177
|
+
|
178
|
+
:param request: Request instance for ModifyIncrementalMigrationStrategy.
|
179
|
+
:type request: :class:`tencentcloud.vod.v20240718.models.ModifyIncrementalMigrationStrategyRequest`
|
180
|
+
:rtype: :class:`tencentcloud.vod.v20240718.models.ModifyIncrementalMigrationStrategyResponse`
|
181
|
+
|
182
|
+
"""
|
183
|
+
try:
|
184
|
+
params = request._serialize()
|
185
|
+
headers = request.headers
|
186
|
+
body = self.call("ModifyIncrementalMigrationStrategy", params, headers=headers)
|
187
|
+
response = json.loads(body)
|
188
|
+
model = models.ModifyIncrementalMigrationStrategyResponse()
|
189
|
+
model._deserialize(response["Response"])
|
190
|
+
return model
|
45
191
|
except Exception as e:
|
46
192
|
if isinstance(e, TencentCloudSDKException):
|
47
193
|
raise
|
@@ -28565,6 +28565,180 @@ class DescribeNatGatewayDirectConnectGatewayRouteResponse(AbstractModel):
|
|
28565
28565
|
self._RequestId = params.get("RequestId")
|
28566
28566
|
|
28567
28567
|
|
28568
|
+
class DescribeNatGatewayFlowMonitorDetailRequest(AbstractModel):
|
28569
|
+
"""DescribeNatGatewayFlowMonitorDetail请求参数结构体
|
28570
|
+
|
28571
|
+
"""
|
28572
|
+
|
28573
|
+
def __init__(self):
|
28574
|
+
r"""
|
28575
|
+
:param _TimePoint: 时间点。表示要查询的时刻。聚合粒度为60、300时,会查询最近一个整分钟开始的聚合周期;聚合粒度为3600时,会查询最近一个整点开始的聚合周期;聚合粒度为86400时,会查询最近一个整天开始的聚合周期。形如:`2019-03-24T10:51:23+08:00`。
|
28576
|
+
:type TimePoint: str
|
28577
|
+
:param _NatGatewayId: NAT网关的ID,形如:`nat-ig8xpno8`。
|
28578
|
+
:type NatGatewayId: str
|
28579
|
+
:param _TopN: 展示排序靠前的数据。默认值:10,表示默认展示排序前 10 的数据。最大值:100。
|
28580
|
+
:type TopN: int
|
28581
|
+
:param _OrderField: 排序字段。支持:入包量`InPkg`、出包量`OutPkg`、入流量`InTraffic`、出流量`OutTraffic`,标准型nat额外支持 并发连接数`ConcurrentConnectionCount` 、新建连接速率`NewConnectionRate`。默认值`OutTraffic`。
|
28582
|
+
:type OrderField: str
|
28583
|
+
:param _AggregationTimeRange: 聚合时间粒度。支持:60、300、3600、86400,即按照1分钟、5分钟、1小时、1天进行聚合查询。
|
28584
|
+
:type AggregationTimeRange: int
|
28585
|
+
:param _AllMetricMode: 是否查询全部指标。默认值:True,表示查询全部指标。
|
28586
|
+
:type AllMetricMode: bool
|
28587
|
+
"""
|
28588
|
+
self._TimePoint = None
|
28589
|
+
self._NatGatewayId = None
|
28590
|
+
self._TopN = None
|
28591
|
+
self._OrderField = None
|
28592
|
+
self._AggregationTimeRange = None
|
28593
|
+
self._AllMetricMode = None
|
28594
|
+
|
28595
|
+
@property
|
28596
|
+
def TimePoint(self):
|
28597
|
+
"""时间点。表示要查询的时刻。聚合粒度为60、300时,会查询最近一个整分钟开始的聚合周期;聚合粒度为3600时,会查询最近一个整点开始的聚合周期;聚合粒度为86400时,会查询最近一个整天开始的聚合周期。形如:`2019-03-24T10:51:23+08:00`。
|
28598
|
+
:rtype: str
|
28599
|
+
"""
|
28600
|
+
return self._TimePoint
|
28601
|
+
|
28602
|
+
@TimePoint.setter
|
28603
|
+
def TimePoint(self, TimePoint):
|
28604
|
+
self._TimePoint = TimePoint
|
28605
|
+
|
28606
|
+
@property
|
28607
|
+
def NatGatewayId(self):
|
28608
|
+
"""NAT网关的ID,形如:`nat-ig8xpno8`。
|
28609
|
+
:rtype: str
|
28610
|
+
"""
|
28611
|
+
return self._NatGatewayId
|
28612
|
+
|
28613
|
+
@NatGatewayId.setter
|
28614
|
+
def NatGatewayId(self, NatGatewayId):
|
28615
|
+
self._NatGatewayId = NatGatewayId
|
28616
|
+
|
28617
|
+
@property
|
28618
|
+
def TopN(self):
|
28619
|
+
"""展示排序靠前的数据。默认值:10,表示默认展示排序前 10 的数据。最大值:100。
|
28620
|
+
:rtype: int
|
28621
|
+
"""
|
28622
|
+
return self._TopN
|
28623
|
+
|
28624
|
+
@TopN.setter
|
28625
|
+
def TopN(self, TopN):
|
28626
|
+
self._TopN = TopN
|
28627
|
+
|
28628
|
+
@property
|
28629
|
+
def OrderField(self):
|
28630
|
+
"""排序字段。支持:入包量`InPkg`、出包量`OutPkg`、入流量`InTraffic`、出流量`OutTraffic`,标准型nat额外支持 并发连接数`ConcurrentConnectionCount` 、新建连接速率`NewConnectionRate`。默认值`OutTraffic`。
|
28631
|
+
:rtype: str
|
28632
|
+
"""
|
28633
|
+
return self._OrderField
|
28634
|
+
|
28635
|
+
@OrderField.setter
|
28636
|
+
def OrderField(self, OrderField):
|
28637
|
+
self._OrderField = OrderField
|
28638
|
+
|
28639
|
+
@property
|
28640
|
+
def AggregationTimeRange(self):
|
28641
|
+
"""聚合时间粒度。支持:60、300、3600、86400,即按照1分钟、5分钟、1小时、1天进行聚合查询。
|
28642
|
+
:rtype: int
|
28643
|
+
"""
|
28644
|
+
return self._AggregationTimeRange
|
28645
|
+
|
28646
|
+
@AggregationTimeRange.setter
|
28647
|
+
def AggregationTimeRange(self, AggregationTimeRange):
|
28648
|
+
self._AggregationTimeRange = AggregationTimeRange
|
28649
|
+
|
28650
|
+
@property
|
28651
|
+
def AllMetricMode(self):
|
28652
|
+
"""是否查询全部指标。默认值:True,表示查询全部指标。
|
28653
|
+
:rtype: bool
|
28654
|
+
"""
|
28655
|
+
return self._AllMetricMode
|
28656
|
+
|
28657
|
+
@AllMetricMode.setter
|
28658
|
+
def AllMetricMode(self, AllMetricMode):
|
28659
|
+
self._AllMetricMode = AllMetricMode
|
28660
|
+
|
28661
|
+
|
28662
|
+
def _deserialize(self, params):
|
28663
|
+
self._TimePoint = params.get("TimePoint")
|
28664
|
+
self._NatGatewayId = params.get("NatGatewayId")
|
28665
|
+
self._TopN = params.get("TopN")
|
28666
|
+
self._OrderField = params.get("OrderField")
|
28667
|
+
self._AggregationTimeRange = params.get("AggregationTimeRange")
|
28668
|
+
self._AllMetricMode = params.get("AllMetricMode")
|
28669
|
+
memeber_set = set(params.keys())
|
28670
|
+
for name, value in vars(self).items():
|
28671
|
+
property_name = name[1:]
|
28672
|
+
if property_name in memeber_set:
|
28673
|
+
memeber_set.remove(property_name)
|
28674
|
+
if len(memeber_set) > 0:
|
28675
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
28676
|
+
|
28677
|
+
|
28678
|
+
|
28679
|
+
class DescribeNatGatewayFlowMonitorDetailResponse(AbstractModel):
|
28680
|
+
"""DescribeNatGatewayFlowMonitorDetail返回参数结构体
|
28681
|
+
|
28682
|
+
"""
|
28683
|
+
|
28684
|
+
def __init__(self):
|
28685
|
+
r"""
|
28686
|
+
:param _TotalCount: 符合条件的对象数。
|
28687
|
+
:type TotalCount: int
|
28688
|
+
:param _NatGatewayFlowMonitorDetailSet: 网关流量监控明细。
|
28689
|
+
:type NatGatewayFlowMonitorDetailSet: list of NatGatewayFlowMonitorDetail
|
28690
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
28691
|
+
:type RequestId: str
|
28692
|
+
"""
|
28693
|
+
self._TotalCount = None
|
28694
|
+
self._NatGatewayFlowMonitorDetailSet = None
|
28695
|
+
self._RequestId = None
|
28696
|
+
|
28697
|
+
@property
|
28698
|
+
def TotalCount(self):
|
28699
|
+
"""符合条件的对象数。
|
28700
|
+
:rtype: int
|
28701
|
+
"""
|
28702
|
+
return self._TotalCount
|
28703
|
+
|
28704
|
+
@TotalCount.setter
|
28705
|
+
def TotalCount(self, TotalCount):
|
28706
|
+
self._TotalCount = TotalCount
|
28707
|
+
|
28708
|
+
@property
|
28709
|
+
def NatGatewayFlowMonitorDetailSet(self):
|
28710
|
+
"""网关流量监控明细。
|
28711
|
+
:rtype: list of NatGatewayFlowMonitorDetail
|
28712
|
+
"""
|
28713
|
+
return self._NatGatewayFlowMonitorDetailSet
|
28714
|
+
|
28715
|
+
@NatGatewayFlowMonitorDetailSet.setter
|
28716
|
+
def NatGatewayFlowMonitorDetailSet(self, NatGatewayFlowMonitorDetailSet):
|
28717
|
+
self._NatGatewayFlowMonitorDetailSet = NatGatewayFlowMonitorDetailSet
|
28718
|
+
|
28719
|
+
@property
|
28720
|
+
def RequestId(self):
|
28721
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
28722
|
+
:rtype: str
|
28723
|
+
"""
|
28724
|
+
return self._RequestId
|
28725
|
+
|
28726
|
+
@RequestId.setter
|
28727
|
+
def RequestId(self, RequestId):
|
28728
|
+
self._RequestId = RequestId
|
28729
|
+
|
28730
|
+
|
28731
|
+
def _deserialize(self, params):
|
28732
|
+
self._TotalCount = params.get("TotalCount")
|
28733
|
+
if params.get("NatGatewayFlowMonitorDetailSet") is not None:
|
28734
|
+
self._NatGatewayFlowMonitorDetailSet = []
|
28735
|
+
for item in params.get("NatGatewayFlowMonitorDetailSet"):
|
28736
|
+
obj = NatGatewayFlowMonitorDetail()
|
28737
|
+
obj._deserialize(item)
|
28738
|
+
self._NatGatewayFlowMonitorDetailSet.append(obj)
|
28739
|
+
self._RequestId = params.get("RequestId")
|
28740
|
+
|
28741
|
+
|
28568
28742
|
class DescribeNatGatewaySourceIpTranslationNatRulesRequest(AbstractModel):
|
28569
28743
|
"""DescribeNatGatewaySourceIpTranslationNatRules请求参数结构体
|
28570
28744
|
|
@@ -53976,6 +54150,132 @@ class NatGatewayDestinationIpPortTranslationNatRule(AbstractModel):
|
|
53976
54150
|
|
53977
54151
|
|
53978
54152
|
|
54153
|
+
class NatGatewayFlowMonitorDetail(AbstractModel):
|
54154
|
+
"""nat网关流量监控明细。
|
54155
|
+
|
54156
|
+
"""
|
54157
|
+
|
54158
|
+
def __init__(self):
|
54159
|
+
r"""
|
54160
|
+
:param _PrivateIpAddress: 来源`IP`。
|
54161
|
+
:type PrivateIpAddress: str
|
54162
|
+
:param _InPkg: 入包量。
|
54163
|
+
:type InPkg: int
|
54164
|
+
:param _OutPkg: 出包量。
|
54165
|
+
:type OutPkg: int
|
54166
|
+
:param _InTraffic: 入流量,单位:`Byte`。
|
54167
|
+
:type InTraffic: int
|
54168
|
+
:param _OutTraffic: 出流量,单位:`Byte`。
|
54169
|
+
:type OutTraffic: int
|
54170
|
+
:param _ConcurrentConnectionCount: 并发连接数。仅标准型nat支持此参数。
|
54171
|
+
:type ConcurrentConnectionCount: int
|
54172
|
+
:param _NewConnectionRate: 新建连接速率。仅标准型nat支持此参数。
|
54173
|
+
:type NewConnectionRate: int
|
54174
|
+
"""
|
54175
|
+
self._PrivateIpAddress = None
|
54176
|
+
self._InPkg = None
|
54177
|
+
self._OutPkg = None
|
54178
|
+
self._InTraffic = None
|
54179
|
+
self._OutTraffic = None
|
54180
|
+
self._ConcurrentConnectionCount = None
|
54181
|
+
self._NewConnectionRate = None
|
54182
|
+
|
54183
|
+
@property
|
54184
|
+
def PrivateIpAddress(self):
|
54185
|
+
"""来源`IP`。
|
54186
|
+
:rtype: str
|
54187
|
+
"""
|
54188
|
+
return self._PrivateIpAddress
|
54189
|
+
|
54190
|
+
@PrivateIpAddress.setter
|
54191
|
+
def PrivateIpAddress(self, PrivateIpAddress):
|
54192
|
+
self._PrivateIpAddress = PrivateIpAddress
|
54193
|
+
|
54194
|
+
@property
|
54195
|
+
def InPkg(self):
|
54196
|
+
"""入包量。
|
54197
|
+
:rtype: int
|
54198
|
+
"""
|
54199
|
+
return self._InPkg
|
54200
|
+
|
54201
|
+
@InPkg.setter
|
54202
|
+
def InPkg(self, InPkg):
|
54203
|
+
self._InPkg = InPkg
|
54204
|
+
|
54205
|
+
@property
|
54206
|
+
def OutPkg(self):
|
54207
|
+
"""出包量。
|
54208
|
+
:rtype: int
|
54209
|
+
"""
|
54210
|
+
return self._OutPkg
|
54211
|
+
|
54212
|
+
@OutPkg.setter
|
54213
|
+
def OutPkg(self, OutPkg):
|
54214
|
+
self._OutPkg = OutPkg
|
54215
|
+
|
54216
|
+
@property
|
54217
|
+
def InTraffic(self):
|
54218
|
+
"""入流量,单位:`Byte`。
|
54219
|
+
:rtype: int
|
54220
|
+
"""
|
54221
|
+
return self._InTraffic
|
54222
|
+
|
54223
|
+
@InTraffic.setter
|
54224
|
+
def InTraffic(self, InTraffic):
|
54225
|
+
self._InTraffic = InTraffic
|
54226
|
+
|
54227
|
+
@property
|
54228
|
+
def OutTraffic(self):
|
54229
|
+
"""出流量,单位:`Byte`。
|
54230
|
+
:rtype: int
|
54231
|
+
"""
|
54232
|
+
return self._OutTraffic
|
54233
|
+
|
54234
|
+
@OutTraffic.setter
|
54235
|
+
def OutTraffic(self, OutTraffic):
|
54236
|
+
self._OutTraffic = OutTraffic
|
54237
|
+
|
54238
|
+
@property
|
54239
|
+
def ConcurrentConnectionCount(self):
|
54240
|
+
"""并发连接数。仅标准型nat支持此参数。
|
54241
|
+
:rtype: int
|
54242
|
+
"""
|
54243
|
+
return self._ConcurrentConnectionCount
|
54244
|
+
|
54245
|
+
@ConcurrentConnectionCount.setter
|
54246
|
+
def ConcurrentConnectionCount(self, ConcurrentConnectionCount):
|
54247
|
+
self._ConcurrentConnectionCount = ConcurrentConnectionCount
|
54248
|
+
|
54249
|
+
@property
|
54250
|
+
def NewConnectionRate(self):
|
54251
|
+
"""新建连接速率。仅标准型nat支持此参数。
|
54252
|
+
:rtype: int
|
54253
|
+
"""
|
54254
|
+
return self._NewConnectionRate
|
54255
|
+
|
54256
|
+
@NewConnectionRate.setter
|
54257
|
+
def NewConnectionRate(self, NewConnectionRate):
|
54258
|
+
self._NewConnectionRate = NewConnectionRate
|
54259
|
+
|
54260
|
+
|
54261
|
+
def _deserialize(self, params):
|
54262
|
+
self._PrivateIpAddress = params.get("PrivateIpAddress")
|
54263
|
+
self._InPkg = params.get("InPkg")
|
54264
|
+
self._OutPkg = params.get("OutPkg")
|
54265
|
+
self._InTraffic = params.get("InTraffic")
|
54266
|
+
self._OutTraffic = params.get("OutTraffic")
|
54267
|
+
self._ConcurrentConnectionCount = params.get("ConcurrentConnectionCount")
|
54268
|
+
self._NewConnectionRate = params.get("NewConnectionRate")
|
54269
|
+
memeber_set = set(params.keys())
|
54270
|
+
for name, value in vars(self).items():
|
54271
|
+
property_name = name[1:]
|
54272
|
+
if property_name in memeber_set:
|
54273
|
+
memeber_set.remove(property_name)
|
54274
|
+
if len(memeber_set) > 0:
|
54275
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
54276
|
+
|
54277
|
+
|
54278
|
+
|
53979
54279
|
class NatRegionInfoWithArea(AbstractModel):
|
53980
54280
|
"""NAT地域地区对象
|
53981
54281
|
|
@@ -4532,6 +4532,32 @@ class VpcClient(AbstractClient):
|
|
4532
4532
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
4533
4533
|
|
4534
4534
|
|
4535
|
+
def DescribeNatGatewayFlowMonitorDetail(self, request):
|
4536
|
+
"""本接口(DescribeNatGatewayFlowMonitorDetail)用于查询NAT网关流量监控明细。
|
4537
|
+
|
4538
|
+
- 只支持单个网关实例查询。即入参 `NatGatewayId` 最多只支持传一个,且必须传一个。
|
4539
|
+
- 如果网关有流量,但调用本接口没有返回数据,请在控制台对应网关详情页确认是否开启网关流量监控。
|
4540
|
+
|
4541
|
+
:param request: Request instance for DescribeNatGatewayFlowMonitorDetail.
|
4542
|
+
:type request: :class:`tencentcloud.vpc.v20170312.models.DescribeNatGatewayFlowMonitorDetailRequest`
|
4543
|
+
:rtype: :class:`tencentcloud.vpc.v20170312.models.DescribeNatGatewayFlowMonitorDetailResponse`
|
4544
|
+
|
4545
|
+
"""
|
4546
|
+
try:
|
4547
|
+
params = request._serialize()
|
4548
|
+
headers = request.headers
|
4549
|
+
body = self.call("DescribeNatGatewayFlowMonitorDetail", params, headers=headers)
|
4550
|
+
response = json.loads(body)
|
4551
|
+
model = models.DescribeNatGatewayFlowMonitorDetailResponse()
|
4552
|
+
model._deserialize(response["Response"])
|
4553
|
+
return model
|
4554
|
+
except Exception as e:
|
4555
|
+
if isinstance(e, TencentCloudSDKException):
|
4556
|
+
raise
|
4557
|
+
else:
|
4558
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
4559
|
+
|
4560
|
+
|
4535
4561
|
def DescribeNatGatewaySourceIpTranslationNatRules(self, request):
|
4536
4562
|
"""本接口(DescribeNatGatewaySourceIpTranslationNatRules)用于查询NAT网关SNAT转发规则对象数组。
|
4537
4563
|
|