alibabacloud-nis20211216 2.2.2__py3-none-any.whl → 2.3.0__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.
- alibabacloud_nis20211216/__init__.py +1 -1
- alibabacloud_nis20211216/client.py +1681 -2184
- alibabacloud_nis20211216/models/__init__.py +227 -0
- alibabacloud_nis20211216/models/_create_and_analyze_network_path_request.py +136 -0
- alibabacloud_nis20211216/models/_create_and_analyze_network_path_response.py +54 -0
- alibabacloud_nis20211216/models/_create_and_analyze_network_path_response_body.py +124 -0
- alibabacloud_nis20211216/models/_create_network_path_request.py +228 -0
- alibabacloud_nis20211216/models/_create_network_path_response.py +54 -0
- alibabacloud_nis20211216/models/_create_network_path_response_body.py +43 -0
- alibabacloud_nis20211216/models/_create_network_reachable_analysis_request.py +106 -0
- alibabacloud_nis20211216/models/_create_network_reachable_analysis_response.py +54 -0
- alibabacloud_nis20211216/models/_create_network_reachable_analysis_response_body.py +43 -0
- alibabacloud_nis20211216/models/_delete_network_path_request.py +47 -0
- alibabacloud_nis20211216/models/_delete_network_path_response.py +54 -0
- alibabacloud_nis20211216/models/_delete_network_path_response_body.py +46 -0
- alibabacloud_nis20211216/models/_delete_network_path_shrink_request.py +45 -0
- alibabacloud_nis20211216/models/_delete_network_reachable_analysis_request.py +47 -0
- alibabacloud_nis20211216/models/_delete_network_reachable_analysis_response.py +54 -0
- alibabacloud_nis20211216/models/_delete_network_reachable_analysis_response_body.py +45 -0
- alibabacloud_nis20211216/models/_delete_network_reachable_analysis_shrink_request.py +45 -0
- alibabacloud_nis20211216/models/_delete_nis_inspection_report_request.py +34 -0
- alibabacloud_nis20211216/models/_delete_nis_inspection_report_response.py +54 -0
- alibabacloud_nis20211216/models/_delete_nis_inspection_report_response_body.py +41 -0
- alibabacloud_nis20211216/models/_delete_nis_inspection_task_request.py +34 -0
- alibabacloud_nis20211216/models/_delete_nis_inspection_task_response.py +54 -0
- alibabacloud_nis20211216/models/_delete_nis_inspection_task_response_body.py +41 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_request.py +67 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_response.py +54 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_response_body.py +127 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_request.py +84 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_response.py +54 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_response_body.py +302 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_shrink_request.py +82 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_request.py +34 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_response.py +54 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_response_body.py +89 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_request.py +34 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_response.py +54 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_response_body.py +240 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_task_request.py +34 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_task_response.py +54 -0
- alibabacloud_nis20211216/models/_describe_nis_inspection_task_response_body.py +159 -0
- alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_request.py +50 -0
- alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_response.py +54 -0
- alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_response_body.py +463 -0
- alibabacloud_nis20211216/models/_get_internet_tuple_request.py +270 -0
- alibabacloud_nis20211216/models/_get_internet_tuple_response.py +54 -0
- alibabacloud_nis20211216/models/_get_internet_tuple_response_body.py +366 -0
- alibabacloud_nis20211216/models/_get_internet_tuple_shrink_request.py +270 -0
- alibabacloud_nis20211216/models/_get_nat_top_nrequest.py +99 -0
- alibabacloud_nis20211216/models/_get_nat_top_nresponse.py +54 -0
- alibabacloud_nis20211216/models/_get_nat_top_nresponse_body.py +166 -0
- alibabacloud_nis20211216/models/_get_network_reachable_analysis_request.py +45 -0
- alibabacloud_nis20211216/models/_get_network_reachable_analysis_response.py +54 -0
- alibabacloud_nis20211216/models/_get_network_reachable_analysis_response_body.py +114 -0
- alibabacloud_nis20211216/models/_get_nis_network_metrics_request.py +155 -0
- alibabacloud_nis20211216/models/_get_nis_network_metrics_response.py +54 -0
- alibabacloud_nis20211216/models/_get_nis_network_metrics_response_body.py +124 -0
- alibabacloud_nis20211216/models/_get_nis_network_metrics_shrink_request.py +111 -0
- alibabacloud_nis20211216/models/_get_nis_network_ranking_request.py +172 -0
- alibabacloud_nis20211216/models/_get_nis_network_ranking_response.py +54 -0
- alibabacloud_nis20211216/models/_get_nis_network_ranking_response_body.py +319 -0
- alibabacloud_nis20211216/models/_get_nis_network_ranking_shrink_request.py +128 -0
- alibabacloud_nis20211216/models/_get_transit_router_flow_top_nrequest.py +215 -0
- alibabacloud_nis20211216/models/_get_transit_router_flow_top_nresponse.py +54 -0
- alibabacloud_nis20211216/models/_get_transit_router_flow_top_nresponse_body.py +199 -0
- alibabacloud_nis20211216/models/_get_transit_router_flow_top_nshrink_request.py +213 -0
- alibabacloud_nis20211216/models/_get_vbr_flow_top_nrequest.py +220 -0
- alibabacloud_nis20211216/models/_get_vbr_flow_top_nresponse.py +54 -0
- alibabacloud_nis20211216/models/_get_vbr_flow_top_nresponse_body.py +172 -0
- alibabacloud_nis20211216/models/_get_vbr_flow_top_nshrink_request.py +218 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_resource_type_response.py +54 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_resource_type_response_body.py +79 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_request.py +50 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_response.py +54 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_response_body.py +103 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_tasks_request.py +73 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_tasks_response.py +54 -0
- alibabacloud_nis20211216/models/_list_nis_inspection_tasks_response_body.py +143 -0
- alibabacloud_nis20211216/models/_start_nis_inspection_task_request.py +34 -0
- alibabacloud_nis20211216/models/_start_nis_inspection_task_response.py +54 -0
- alibabacloud_nis20211216/models/_start_nis_inspection_task_response_body.py +41 -0
- alibabacloud_nis20211216/models/_start_nis_traffic_ranking_request.py +214 -0
- alibabacloud_nis20211216/models/_start_nis_traffic_ranking_response.py +54 -0
- alibabacloud_nis20211216/models/_start_nis_traffic_ranking_response_body.py +41 -0
- alibabacloud_nis20211216/models/_start_nis_traffic_ranking_shrink_request.py +160 -0
- alibabacloud_nis20211216/models/_update_nis_inspection_task_request.py +42 -0
- alibabacloud_nis20211216/models/_update_nis_inspection_task_response.py +54 -0
- alibabacloud_nis20211216/models/_update_nis_inspection_task_response_body.py +41 -0
- {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/METADATA +7 -7
- alibabacloud_nis20211216-2.3.0.dist-info/RECORD +94 -0
- alibabacloud_nis20211216/models.py +0 -6298
- alibabacloud_nis20211216-2.2.2.dist-info/RECORD +0 -8
- {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/LICENSE +0 -0
- {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/WHEEL +0 -0
- {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from darabonba.model import DaraModel
|
|
8
|
+
|
|
9
|
+
class GetInternetTupleRequest(DaraModel):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
account_ids: List[int] = None,
|
|
13
|
+
begin_time: int = None,
|
|
14
|
+
cloud_ip: str = None,
|
|
15
|
+
cloud_ip_list: List[str] = None,
|
|
16
|
+
cloud_isp: str = None,
|
|
17
|
+
cloud_port: str = None,
|
|
18
|
+
direction: str = None,
|
|
19
|
+
end_time: int = None,
|
|
20
|
+
instance_id: str = None,
|
|
21
|
+
instance_list: List[str] = None,
|
|
22
|
+
order_by: str = None,
|
|
23
|
+
other_city: str = None,
|
|
24
|
+
other_country: str = None,
|
|
25
|
+
other_ip: str = None,
|
|
26
|
+
other_isp: str = None,
|
|
27
|
+
other_port: str = None,
|
|
28
|
+
protocol: str = None,
|
|
29
|
+
region_id: str = None,
|
|
30
|
+
sort: str = None,
|
|
31
|
+
top_n: int = None,
|
|
32
|
+
tuple_type: int = None,
|
|
33
|
+
use_multi_account: bool = None,
|
|
34
|
+
):
|
|
35
|
+
# The IDs of member accounts.
|
|
36
|
+
self.account_ids = account_ids
|
|
37
|
+
# The beginning of the time range to query. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
|
|
38
|
+
#
|
|
39
|
+
# This parameter is required.
|
|
40
|
+
self.begin_time = begin_time
|
|
41
|
+
# The local IP address.
|
|
42
|
+
self.cloud_ip = cloud_ip
|
|
43
|
+
# The local IP addresses for filtering.
|
|
44
|
+
self.cloud_ip_list = cloud_ip_list
|
|
45
|
+
# The local Internet service provider (ISP).
|
|
46
|
+
#
|
|
47
|
+
# > In most cases, the value is Alibaba or Alibaba Cloud.
|
|
48
|
+
self.cloud_isp = cloud_isp
|
|
49
|
+
# The local port.
|
|
50
|
+
#
|
|
51
|
+
# > This parameter is required only if you set GroupBy to CloudPort.
|
|
52
|
+
self.cloud_port = cloud_port
|
|
53
|
+
# The direction of the Internet traffic that you want to query. Valid values:
|
|
54
|
+
#
|
|
55
|
+
# * **in**: inbound
|
|
56
|
+
# * **out**: outbound
|
|
57
|
+
#
|
|
58
|
+
# This parameter is required.
|
|
59
|
+
self.direction = direction
|
|
60
|
+
# The end of the time range to query. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
|
|
61
|
+
#
|
|
62
|
+
# This parameter is required.
|
|
63
|
+
self.end_time = end_time
|
|
64
|
+
# The ID of the Alibaba Cloud instance.
|
|
65
|
+
self.instance_id = instance_id
|
|
66
|
+
# The instance IDs for filtering.
|
|
67
|
+
self.instance_list = instance_list
|
|
68
|
+
# The metric for data ranking. Default value: **ByteCount**. This value indicates that Internet traffic data is ranked by traffic volume.
|
|
69
|
+
#
|
|
70
|
+
# Valid values:
|
|
71
|
+
#
|
|
72
|
+
# * Rtt
|
|
73
|
+
# * ByteCount
|
|
74
|
+
# * PacketCount
|
|
75
|
+
# * RetransmitRate
|
|
76
|
+
self.order_by = order_by
|
|
77
|
+
# The remote city.
|
|
78
|
+
#
|
|
79
|
+
# > This parameter is required only if you set **TupleType** to **2** or **5**.
|
|
80
|
+
self.other_city = other_city
|
|
81
|
+
# The remote country.
|
|
82
|
+
#
|
|
83
|
+
# > This parameter is required only if you set **TupleType** to **2** or **5**.
|
|
84
|
+
self.other_country = other_country
|
|
85
|
+
# The remote IP address.
|
|
86
|
+
#
|
|
87
|
+
# > This parameter is required only when you set **TupleType** to **2** or **5**.
|
|
88
|
+
self.other_ip = other_ip
|
|
89
|
+
# The remote ISP.
|
|
90
|
+
#
|
|
91
|
+
# > This parameter is required if you want to view the information about the remote ISP.
|
|
92
|
+
self.other_isp = other_isp
|
|
93
|
+
# The remote port.
|
|
94
|
+
#
|
|
95
|
+
# > This parameter is required only when you set **TupleType** to **5**.
|
|
96
|
+
self.other_port = other_port
|
|
97
|
+
# The protocol number.
|
|
98
|
+
#
|
|
99
|
+
# > All protocols are supported. This parameter is required only when you set **TupleType** to **5**.
|
|
100
|
+
self.protocol = protocol
|
|
101
|
+
# The ID of the region for which you want to query the Internet traffic.
|
|
102
|
+
#
|
|
103
|
+
# This parameter is required.
|
|
104
|
+
self.region_id = region_id
|
|
105
|
+
# The order in which instances are ranked by Internet traffic. Valid values:
|
|
106
|
+
#
|
|
107
|
+
# * **desc**: the descending order
|
|
108
|
+
# * **asc**: the ascending order
|
|
109
|
+
self.sort = sort
|
|
110
|
+
# Specifies top-N traffic data to display. Default value: **10**. This value specifies to display top-10 traffic data by default. Max value: **100**.
|
|
111
|
+
self.top_n = top_n
|
|
112
|
+
# The type of the tuple. Valid values:
|
|
113
|
+
#
|
|
114
|
+
# * **1**: 1-tuple
|
|
115
|
+
# * **2**: 2-tuple
|
|
116
|
+
# * **5**: 5-tuple
|
|
117
|
+
#
|
|
118
|
+
# This parameter is required.
|
|
119
|
+
self.tuple_type = tuple_type
|
|
120
|
+
# Specifies whether to enable the multi-account management feature. Default value: **false**. This value specifies that the multi-account management feature is disabled.
|
|
121
|
+
#
|
|
122
|
+
# > By default, the multi-account management feature is not available. If you want to use this feature, contact your account manager to apply for permissions.
|
|
123
|
+
self.use_multi_account = use_multi_account
|
|
124
|
+
|
|
125
|
+
def validate(self):
|
|
126
|
+
pass
|
|
127
|
+
|
|
128
|
+
def to_map(self):
|
|
129
|
+
result = dict()
|
|
130
|
+
_map = super().to_map()
|
|
131
|
+
if _map is not None:
|
|
132
|
+
result = _map
|
|
133
|
+
if self.account_ids is not None:
|
|
134
|
+
result['AccountIds'] = self.account_ids
|
|
135
|
+
|
|
136
|
+
if self.begin_time is not None:
|
|
137
|
+
result['BeginTime'] = self.begin_time
|
|
138
|
+
|
|
139
|
+
if self.cloud_ip is not None:
|
|
140
|
+
result['CloudIp'] = self.cloud_ip
|
|
141
|
+
|
|
142
|
+
if self.cloud_ip_list is not None:
|
|
143
|
+
result['CloudIpList'] = self.cloud_ip_list
|
|
144
|
+
|
|
145
|
+
if self.cloud_isp is not None:
|
|
146
|
+
result['CloudIsp'] = self.cloud_isp
|
|
147
|
+
|
|
148
|
+
if self.cloud_port is not None:
|
|
149
|
+
result['CloudPort'] = self.cloud_port
|
|
150
|
+
|
|
151
|
+
if self.direction is not None:
|
|
152
|
+
result['Direction'] = self.direction
|
|
153
|
+
|
|
154
|
+
if self.end_time is not None:
|
|
155
|
+
result['EndTime'] = self.end_time
|
|
156
|
+
|
|
157
|
+
if self.instance_id is not None:
|
|
158
|
+
result['InstanceId'] = self.instance_id
|
|
159
|
+
|
|
160
|
+
if self.instance_list is not None:
|
|
161
|
+
result['InstanceList'] = self.instance_list
|
|
162
|
+
|
|
163
|
+
if self.order_by is not None:
|
|
164
|
+
result['OrderBy'] = self.order_by
|
|
165
|
+
|
|
166
|
+
if self.other_city is not None:
|
|
167
|
+
result['OtherCity'] = self.other_city
|
|
168
|
+
|
|
169
|
+
if self.other_country is not None:
|
|
170
|
+
result['OtherCountry'] = self.other_country
|
|
171
|
+
|
|
172
|
+
if self.other_ip is not None:
|
|
173
|
+
result['OtherIp'] = self.other_ip
|
|
174
|
+
|
|
175
|
+
if self.other_isp is not None:
|
|
176
|
+
result['OtherIsp'] = self.other_isp
|
|
177
|
+
|
|
178
|
+
if self.other_port is not None:
|
|
179
|
+
result['OtherPort'] = self.other_port
|
|
180
|
+
|
|
181
|
+
if self.protocol is not None:
|
|
182
|
+
result['Protocol'] = self.protocol
|
|
183
|
+
|
|
184
|
+
if self.region_id is not None:
|
|
185
|
+
result['RegionId'] = self.region_id
|
|
186
|
+
|
|
187
|
+
if self.sort is not None:
|
|
188
|
+
result['Sort'] = self.sort
|
|
189
|
+
|
|
190
|
+
if self.top_n is not None:
|
|
191
|
+
result['TopN'] = self.top_n
|
|
192
|
+
|
|
193
|
+
if self.tuple_type is not None:
|
|
194
|
+
result['TupleType'] = self.tuple_type
|
|
195
|
+
|
|
196
|
+
if self.use_multi_account is not None:
|
|
197
|
+
result['UseMultiAccount'] = self.use_multi_account
|
|
198
|
+
|
|
199
|
+
return result
|
|
200
|
+
|
|
201
|
+
def from_map(self, m: dict = None):
|
|
202
|
+
m = m or dict()
|
|
203
|
+
if m.get('AccountIds') is not None:
|
|
204
|
+
self.account_ids = m.get('AccountIds')
|
|
205
|
+
|
|
206
|
+
if m.get('BeginTime') is not None:
|
|
207
|
+
self.begin_time = m.get('BeginTime')
|
|
208
|
+
|
|
209
|
+
if m.get('CloudIp') is not None:
|
|
210
|
+
self.cloud_ip = m.get('CloudIp')
|
|
211
|
+
|
|
212
|
+
if m.get('CloudIpList') is not None:
|
|
213
|
+
self.cloud_ip_list = m.get('CloudIpList')
|
|
214
|
+
|
|
215
|
+
if m.get('CloudIsp') is not None:
|
|
216
|
+
self.cloud_isp = m.get('CloudIsp')
|
|
217
|
+
|
|
218
|
+
if m.get('CloudPort') is not None:
|
|
219
|
+
self.cloud_port = m.get('CloudPort')
|
|
220
|
+
|
|
221
|
+
if m.get('Direction') is not None:
|
|
222
|
+
self.direction = m.get('Direction')
|
|
223
|
+
|
|
224
|
+
if m.get('EndTime') is not None:
|
|
225
|
+
self.end_time = m.get('EndTime')
|
|
226
|
+
|
|
227
|
+
if m.get('InstanceId') is not None:
|
|
228
|
+
self.instance_id = m.get('InstanceId')
|
|
229
|
+
|
|
230
|
+
if m.get('InstanceList') is not None:
|
|
231
|
+
self.instance_list = m.get('InstanceList')
|
|
232
|
+
|
|
233
|
+
if m.get('OrderBy') is not None:
|
|
234
|
+
self.order_by = m.get('OrderBy')
|
|
235
|
+
|
|
236
|
+
if m.get('OtherCity') is not None:
|
|
237
|
+
self.other_city = m.get('OtherCity')
|
|
238
|
+
|
|
239
|
+
if m.get('OtherCountry') is not None:
|
|
240
|
+
self.other_country = m.get('OtherCountry')
|
|
241
|
+
|
|
242
|
+
if m.get('OtherIp') is not None:
|
|
243
|
+
self.other_ip = m.get('OtherIp')
|
|
244
|
+
|
|
245
|
+
if m.get('OtherIsp') is not None:
|
|
246
|
+
self.other_isp = m.get('OtherIsp')
|
|
247
|
+
|
|
248
|
+
if m.get('OtherPort') is not None:
|
|
249
|
+
self.other_port = m.get('OtherPort')
|
|
250
|
+
|
|
251
|
+
if m.get('Protocol') is not None:
|
|
252
|
+
self.protocol = m.get('Protocol')
|
|
253
|
+
|
|
254
|
+
if m.get('RegionId') is not None:
|
|
255
|
+
self.region_id = m.get('RegionId')
|
|
256
|
+
|
|
257
|
+
if m.get('Sort') is not None:
|
|
258
|
+
self.sort = m.get('Sort')
|
|
259
|
+
|
|
260
|
+
if m.get('TopN') is not None:
|
|
261
|
+
self.top_n = m.get('TopN')
|
|
262
|
+
|
|
263
|
+
if m.get('TupleType') is not None:
|
|
264
|
+
self.tuple_type = m.get('TupleType')
|
|
265
|
+
|
|
266
|
+
if m.get('UseMultiAccount') is not None:
|
|
267
|
+
self.use_multi_account = m.get('UseMultiAccount')
|
|
268
|
+
|
|
269
|
+
return self
|
|
270
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
|
|
7
|
+
from alibabacloud_nis20211216 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class GetInternetTupleResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.GetInternetTupleResponseBody = None,
|
|
16
|
+
):
|
|
17
|
+
self.headers = headers
|
|
18
|
+
self.status_code = status_code
|
|
19
|
+
self.body = body
|
|
20
|
+
|
|
21
|
+
def validate(self):
|
|
22
|
+
if self.body:
|
|
23
|
+
self.body.validate()
|
|
24
|
+
|
|
25
|
+
def to_map(self):
|
|
26
|
+
result = dict()
|
|
27
|
+
_map = super().to_map()
|
|
28
|
+
if _map is not None:
|
|
29
|
+
result = _map
|
|
30
|
+
if self.headers is not None:
|
|
31
|
+
result['headers'] = self.headers
|
|
32
|
+
|
|
33
|
+
if self.status_code is not None:
|
|
34
|
+
result['statusCode'] = self.status_code
|
|
35
|
+
|
|
36
|
+
if self.body is not None:
|
|
37
|
+
result['body'] = self.body.to_map()
|
|
38
|
+
|
|
39
|
+
return result
|
|
40
|
+
|
|
41
|
+
def from_map(self, m: dict = None):
|
|
42
|
+
m = m or dict()
|
|
43
|
+
if m.get('headers') is not None:
|
|
44
|
+
self.headers = m.get('headers')
|
|
45
|
+
|
|
46
|
+
if m.get('statusCode') is not None:
|
|
47
|
+
self.status_code = m.get('statusCode')
|
|
48
|
+
|
|
49
|
+
if m.get('body') is not None:
|
|
50
|
+
temp_model = main_models.GetInternetTupleResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from alibabacloud_nis20211216 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class GetInternetTupleResponseBody(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
data: List[main_models.GetInternetTupleResponseBodyData] = None,
|
|
14
|
+
request_id: str = None,
|
|
15
|
+
):
|
|
16
|
+
# The ranking result of Internet traffic data.
|
|
17
|
+
self.data = data
|
|
18
|
+
# The request ID.
|
|
19
|
+
self.request_id = request_id
|
|
20
|
+
|
|
21
|
+
def validate(self):
|
|
22
|
+
if self.data:
|
|
23
|
+
for v1 in self.data:
|
|
24
|
+
if v1:
|
|
25
|
+
v1.validate()
|
|
26
|
+
|
|
27
|
+
def to_map(self):
|
|
28
|
+
result = dict()
|
|
29
|
+
_map = super().to_map()
|
|
30
|
+
if _map is not None:
|
|
31
|
+
result = _map
|
|
32
|
+
result['Data'] = []
|
|
33
|
+
if self.data is not None:
|
|
34
|
+
for k1 in self.data:
|
|
35
|
+
result['Data'].append(k1.to_map() if k1 else None)
|
|
36
|
+
|
|
37
|
+
if self.request_id is not None:
|
|
38
|
+
result['RequestId'] = self.request_id
|
|
39
|
+
|
|
40
|
+
return result
|
|
41
|
+
|
|
42
|
+
def from_map(self, m: dict = None):
|
|
43
|
+
m = m or dict()
|
|
44
|
+
self.data = []
|
|
45
|
+
if m.get('Data') is not None:
|
|
46
|
+
for k1 in m.get('Data'):
|
|
47
|
+
temp_model = main_models.GetInternetTupleResponseBodyData()
|
|
48
|
+
self.data.append(temp_model.from_map(k1))
|
|
49
|
+
|
|
50
|
+
if m.get('RequestId') is not None:
|
|
51
|
+
self.request_id = m.get('RequestId')
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
55
|
+
class GetInternetTupleResponseBodyData(DaraModel):
|
|
56
|
+
def __init__(
|
|
57
|
+
self,
|
|
58
|
+
access_region: str = None,
|
|
59
|
+
begin_time: str = None,
|
|
60
|
+
byte_count: float = None,
|
|
61
|
+
cloud_city: str = None,
|
|
62
|
+
cloud_country: str = None,
|
|
63
|
+
cloud_ip: str = None,
|
|
64
|
+
cloud_isp: str = None,
|
|
65
|
+
cloud_port: str = None,
|
|
66
|
+
cloud_product: str = None,
|
|
67
|
+
cloud_province: str = None,
|
|
68
|
+
direction: str = None,
|
|
69
|
+
in_byte_count: float = None,
|
|
70
|
+
in_out_order_count: float = None,
|
|
71
|
+
in_packet_count: float = None,
|
|
72
|
+
in_retran_count: float = None,
|
|
73
|
+
instance_id: str = None,
|
|
74
|
+
other_city: str = None,
|
|
75
|
+
other_country: str = None,
|
|
76
|
+
other_ip: str = None,
|
|
77
|
+
other_isp: str = None,
|
|
78
|
+
other_port: str = None,
|
|
79
|
+
other_product: str = None,
|
|
80
|
+
other_province: str = None,
|
|
81
|
+
out_byte_count: float = None,
|
|
82
|
+
out_order_count: float = None,
|
|
83
|
+
out_out_order_count: float = None,
|
|
84
|
+
out_packet_count: float = None,
|
|
85
|
+
out_retran_count: float = None,
|
|
86
|
+
packet_count: float = None,
|
|
87
|
+
protocol: str = None,
|
|
88
|
+
retransmit_rate: float = None,
|
|
89
|
+
rtt: float = None,
|
|
90
|
+
):
|
|
91
|
+
# The access point of Alibaba Cloud.
|
|
92
|
+
#
|
|
93
|
+
# > This parameter is valid only if you set **InstanceId** to the instance ID of an Anycast elastic IP address (EIP).
|
|
94
|
+
self.access_region = access_region
|
|
95
|
+
# The beginning of the time range that you queried. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
|
|
96
|
+
self.begin_time = begin_time
|
|
97
|
+
# The traffic volume. Unit: bytes.
|
|
98
|
+
self.byte_count = byte_count
|
|
99
|
+
# The local city.
|
|
100
|
+
self.cloud_city = cloud_city
|
|
101
|
+
# The local country or region.
|
|
102
|
+
self.cloud_country = cloud_country
|
|
103
|
+
# The local IP address.
|
|
104
|
+
self.cloud_ip = cloud_ip
|
|
105
|
+
# The local ISP.
|
|
106
|
+
self.cloud_isp = cloud_isp
|
|
107
|
+
# The local port.
|
|
108
|
+
self.cloud_port = cloud_port
|
|
109
|
+
# The service code of the instance to which the local IP address belongs.
|
|
110
|
+
self.cloud_product = cloud_product
|
|
111
|
+
# The local province.
|
|
112
|
+
self.cloud_province = cloud_province
|
|
113
|
+
# The direction of Internet traffic. Valid values:
|
|
114
|
+
#
|
|
115
|
+
# * **in**: inbound
|
|
116
|
+
# * **out**: outbound
|
|
117
|
+
self.direction = direction
|
|
118
|
+
# The inbound traffic volume. Unit: bytes.
|
|
119
|
+
self.in_byte_count = in_byte_count
|
|
120
|
+
# The number of inbound disordered packets.
|
|
121
|
+
self.in_out_order_count = in_out_order_count
|
|
122
|
+
# The number of inbound packets.
|
|
123
|
+
self.in_packet_count = in_packet_count
|
|
124
|
+
# The number of inbound repeated packets.
|
|
125
|
+
self.in_retran_count = in_retran_count
|
|
126
|
+
# The ID of the instance to which the local IP address belongs.
|
|
127
|
+
self.instance_id = instance_id
|
|
128
|
+
# The remote city. In most cases, this parameter is empty if you set **OtherCountry** to a country except China.
|
|
129
|
+
self.other_city = other_city
|
|
130
|
+
# The remote country or region.
|
|
131
|
+
self.other_country = other_country
|
|
132
|
+
# The remote IP address.
|
|
133
|
+
self.other_ip = other_ip
|
|
134
|
+
# The remote ISP.
|
|
135
|
+
self.other_isp = other_isp
|
|
136
|
+
# The remote port.
|
|
137
|
+
self.other_port = other_port
|
|
138
|
+
# The service code of the instance to which the remote IP address belongs. If the IP address is not on the cloud, this parameter is empty.
|
|
139
|
+
self.other_product = other_product
|
|
140
|
+
# The remote province. In most cases, this parameter is empty if you set **OtherCountry** to a country except China.
|
|
141
|
+
self.other_province = other_province
|
|
142
|
+
# The outbound traffic volume. Unit: bytes.
|
|
143
|
+
self.out_byte_count = out_byte_count
|
|
144
|
+
# The number of disordered packets.
|
|
145
|
+
self.out_order_count = out_order_count
|
|
146
|
+
# The number of outbound disordered packets.
|
|
147
|
+
self.out_out_order_count = out_out_order_count
|
|
148
|
+
# The number of outbound packets.
|
|
149
|
+
self.out_packet_count = out_packet_count
|
|
150
|
+
# The number of outbound repeated packets.
|
|
151
|
+
self.out_retran_count = out_retran_count
|
|
152
|
+
# The number of packets.
|
|
153
|
+
self.packet_count = packet_count
|
|
154
|
+
# The protocol number.
|
|
155
|
+
self.protocol = protocol
|
|
156
|
+
# The retransmission rate of TCP packets.
|
|
157
|
+
self.retransmit_rate = retransmit_rate
|
|
158
|
+
# The round-trip time (RTT). Unit: milliseconds.
|
|
159
|
+
self.rtt = rtt
|
|
160
|
+
|
|
161
|
+
def validate(self):
|
|
162
|
+
pass
|
|
163
|
+
|
|
164
|
+
def to_map(self):
|
|
165
|
+
result = dict()
|
|
166
|
+
_map = super().to_map()
|
|
167
|
+
if _map is not None:
|
|
168
|
+
result = _map
|
|
169
|
+
if self.access_region is not None:
|
|
170
|
+
result['AccessRegion'] = self.access_region
|
|
171
|
+
|
|
172
|
+
if self.begin_time is not None:
|
|
173
|
+
result['BeginTime'] = self.begin_time
|
|
174
|
+
|
|
175
|
+
if self.byte_count is not None:
|
|
176
|
+
result['ByteCount'] = self.byte_count
|
|
177
|
+
|
|
178
|
+
if self.cloud_city is not None:
|
|
179
|
+
result['CloudCity'] = self.cloud_city
|
|
180
|
+
|
|
181
|
+
if self.cloud_country is not None:
|
|
182
|
+
result['CloudCountry'] = self.cloud_country
|
|
183
|
+
|
|
184
|
+
if self.cloud_ip is not None:
|
|
185
|
+
result['CloudIp'] = self.cloud_ip
|
|
186
|
+
|
|
187
|
+
if self.cloud_isp is not None:
|
|
188
|
+
result['CloudIsp'] = self.cloud_isp
|
|
189
|
+
|
|
190
|
+
if self.cloud_port is not None:
|
|
191
|
+
result['CloudPort'] = self.cloud_port
|
|
192
|
+
|
|
193
|
+
if self.cloud_product is not None:
|
|
194
|
+
result['CloudProduct'] = self.cloud_product
|
|
195
|
+
|
|
196
|
+
if self.cloud_province is not None:
|
|
197
|
+
result['CloudProvince'] = self.cloud_province
|
|
198
|
+
|
|
199
|
+
if self.direction is not None:
|
|
200
|
+
result['Direction'] = self.direction
|
|
201
|
+
|
|
202
|
+
if self.in_byte_count is not None:
|
|
203
|
+
result['InByteCount'] = self.in_byte_count
|
|
204
|
+
|
|
205
|
+
if self.in_out_order_count is not None:
|
|
206
|
+
result['InOutOrderCount'] = self.in_out_order_count
|
|
207
|
+
|
|
208
|
+
if self.in_packet_count is not None:
|
|
209
|
+
result['InPacketCount'] = self.in_packet_count
|
|
210
|
+
|
|
211
|
+
if self.in_retran_count is not None:
|
|
212
|
+
result['InRetranCount'] = self.in_retran_count
|
|
213
|
+
|
|
214
|
+
if self.instance_id is not None:
|
|
215
|
+
result['InstanceId'] = self.instance_id
|
|
216
|
+
|
|
217
|
+
if self.other_city is not None:
|
|
218
|
+
result['OtherCity'] = self.other_city
|
|
219
|
+
|
|
220
|
+
if self.other_country is not None:
|
|
221
|
+
result['OtherCountry'] = self.other_country
|
|
222
|
+
|
|
223
|
+
if self.other_ip is not None:
|
|
224
|
+
result['OtherIp'] = self.other_ip
|
|
225
|
+
|
|
226
|
+
if self.other_isp is not None:
|
|
227
|
+
result['OtherIsp'] = self.other_isp
|
|
228
|
+
|
|
229
|
+
if self.other_port is not None:
|
|
230
|
+
result['OtherPort'] = self.other_port
|
|
231
|
+
|
|
232
|
+
if self.other_product is not None:
|
|
233
|
+
result['OtherProduct'] = self.other_product
|
|
234
|
+
|
|
235
|
+
if self.other_province is not None:
|
|
236
|
+
result['OtherProvince'] = self.other_province
|
|
237
|
+
|
|
238
|
+
if self.out_byte_count is not None:
|
|
239
|
+
result['OutByteCount'] = self.out_byte_count
|
|
240
|
+
|
|
241
|
+
if self.out_order_count is not None:
|
|
242
|
+
result['OutOrderCount'] = self.out_order_count
|
|
243
|
+
|
|
244
|
+
if self.out_out_order_count is not None:
|
|
245
|
+
result['OutOutOrderCount'] = self.out_out_order_count
|
|
246
|
+
|
|
247
|
+
if self.out_packet_count is not None:
|
|
248
|
+
result['OutPacketCount'] = self.out_packet_count
|
|
249
|
+
|
|
250
|
+
if self.out_retran_count is not None:
|
|
251
|
+
result['OutRetranCount'] = self.out_retran_count
|
|
252
|
+
|
|
253
|
+
if self.packet_count is not None:
|
|
254
|
+
result['PacketCount'] = self.packet_count
|
|
255
|
+
|
|
256
|
+
if self.protocol is not None:
|
|
257
|
+
result['Protocol'] = self.protocol
|
|
258
|
+
|
|
259
|
+
if self.retransmit_rate is not None:
|
|
260
|
+
result['RetransmitRate'] = self.retransmit_rate
|
|
261
|
+
|
|
262
|
+
if self.rtt is not None:
|
|
263
|
+
result['Rtt'] = self.rtt
|
|
264
|
+
|
|
265
|
+
return result
|
|
266
|
+
|
|
267
|
+
def from_map(self, m: dict = None):
|
|
268
|
+
m = m or dict()
|
|
269
|
+
if m.get('AccessRegion') is not None:
|
|
270
|
+
self.access_region = m.get('AccessRegion')
|
|
271
|
+
|
|
272
|
+
if m.get('BeginTime') is not None:
|
|
273
|
+
self.begin_time = m.get('BeginTime')
|
|
274
|
+
|
|
275
|
+
if m.get('ByteCount') is not None:
|
|
276
|
+
self.byte_count = m.get('ByteCount')
|
|
277
|
+
|
|
278
|
+
if m.get('CloudCity') is not None:
|
|
279
|
+
self.cloud_city = m.get('CloudCity')
|
|
280
|
+
|
|
281
|
+
if m.get('CloudCountry') is not None:
|
|
282
|
+
self.cloud_country = m.get('CloudCountry')
|
|
283
|
+
|
|
284
|
+
if m.get('CloudIp') is not None:
|
|
285
|
+
self.cloud_ip = m.get('CloudIp')
|
|
286
|
+
|
|
287
|
+
if m.get('CloudIsp') is not None:
|
|
288
|
+
self.cloud_isp = m.get('CloudIsp')
|
|
289
|
+
|
|
290
|
+
if m.get('CloudPort') is not None:
|
|
291
|
+
self.cloud_port = m.get('CloudPort')
|
|
292
|
+
|
|
293
|
+
if m.get('CloudProduct') is not None:
|
|
294
|
+
self.cloud_product = m.get('CloudProduct')
|
|
295
|
+
|
|
296
|
+
if m.get('CloudProvince') is not None:
|
|
297
|
+
self.cloud_province = m.get('CloudProvince')
|
|
298
|
+
|
|
299
|
+
if m.get('Direction') is not None:
|
|
300
|
+
self.direction = m.get('Direction')
|
|
301
|
+
|
|
302
|
+
if m.get('InByteCount') is not None:
|
|
303
|
+
self.in_byte_count = m.get('InByteCount')
|
|
304
|
+
|
|
305
|
+
if m.get('InOutOrderCount') is not None:
|
|
306
|
+
self.in_out_order_count = m.get('InOutOrderCount')
|
|
307
|
+
|
|
308
|
+
if m.get('InPacketCount') is not None:
|
|
309
|
+
self.in_packet_count = m.get('InPacketCount')
|
|
310
|
+
|
|
311
|
+
if m.get('InRetranCount') is not None:
|
|
312
|
+
self.in_retran_count = m.get('InRetranCount')
|
|
313
|
+
|
|
314
|
+
if m.get('InstanceId') is not None:
|
|
315
|
+
self.instance_id = m.get('InstanceId')
|
|
316
|
+
|
|
317
|
+
if m.get('OtherCity') is not None:
|
|
318
|
+
self.other_city = m.get('OtherCity')
|
|
319
|
+
|
|
320
|
+
if m.get('OtherCountry') is not None:
|
|
321
|
+
self.other_country = m.get('OtherCountry')
|
|
322
|
+
|
|
323
|
+
if m.get('OtherIp') is not None:
|
|
324
|
+
self.other_ip = m.get('OtherIp')
|
|
325
|
+
|
|
326
|
+
if m.get('OtherIsp') is not None:
|
|
327
|
+
self.other_isp = m.get('OtherIsp')
|
|
328
|
+
|
|
329
|
+
if m.get('OtherPort') is not None:
|
|
330
|
+
self.other_port = m.get('OtherPort')
|
|
331
|
+
|
|
332
|
+
if m.get('OtherProduct') is not None:
|
|
333
|
+
self.other_product = m.get('OtherProduct')
|
|
334
|
+
|
|
335
|
+
if m.get('OtherProvince') is not None:
|
|
336
|
+
self.other_province = m.get('OtherProvince')
|
|
337
|
+
|
|
338
|
+
if m.get('OutByteCount') is not None:
|
|
339
|
+
self.out_byte_count = m.get('OutByteCount')
|
|
340
|
+
|
|
341
|
+
if m.get('OutOrderCount') is not None:
|
|
342
|
+
self.out_order_count = m.get('OutOrderCount')
|
|
343
|
+
|
|
344
|
+
if m.get('OutOutOrderCount') is not None:
|
|
345
|
+
self.out_out_order_count = m.get('OutOutOrderCount')
|
|
346
|
+
|
|
347
|
+
if m.get('OutPacketCount') is not None:
|
|
348
|
+
self.out_packet_count = m.get('OutPacketCount')
|
|
349
|
+
|
|
350
|
+
if m.get('OutRetranCount') is not None:
|
|
351
|
+
self.out_retran_count = m.get('OutRetranCount')
|
|
352
|
+
|
|
353
|
+
if m.get('PacketCount') is not None:
|
|
354
|
+
self.packet_count = m.get('PacketCount')
|
|
355
|
+
|
|
356
|
+
if m.get('Protocol') is not None:
|
|
357
|
+
self.protocol = m.get('Protocol')
|
|
358
|
+
|
|
359
|
+
if m.get('RetransmitRate') is not None:
|
|
360
|
+
self.retransmit_rate = m.get('RetransmitRate')
|
|
361
|
+
|
|
362
|
+
if m.get('Rtt') is not None:
|
|
363
|
+
self.rtt = m.get('Rtt')
|
|
364
|
+
|
|
365
|
+
return self
|
|
366
|
+
|