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,220 @@
|
|
|
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 GetVbrFlowTopNRequest(DaraModel):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
account_ids: List[int] = None,
|
|
13
|
+
attachment_id: str = None,
|
|
14
|
+
begin_time: int = None,
|
|
15
|
+
cen_id: str = None,
|
|
16
|
+
cloud_ip: str = None,
|
|
17
|
+
cloud_port: str = None,
|
|
18
|
+
direction: str = None,
|
|
19
|
+
end_time: int = None,
|
|
20
|
+
group_by: str = None,
|
|
21
|
+
order_by: str = None,
|
|
22
|
+
other_ip: str = None,
|
|
23
|
+
other_port: str = None,
|
|
24
|
+
protocol: str = None,
|
|
25
|
+
region_id: str = None,
|
|
26
|
+
sort: str = None,
|
|
27
|
+
top_n: int = None,
|
|
28
|
+
use_multi_account: bool = None,
|
|
29
|
+
virtual_border_router_id: str = None,
|
|
30
|
+
):
|
|
31
|
+
# The IDs of member accounts.
|
|
32
|
+
self.account_ids = account_ids
|
|
33
|
+
# The CEN connection ID.
|
|
34
|
+
self.attachment_id = attachment_id
|
|
35
|
+
# 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. The maximum time range that you can query is 24 hours.
|
|
36
|
+
#
|
|
37
|
+
# This parameter is required.
|
|
38
|
+
self.begin_time = begin_time
|
|
39
|
+
# The CEN instance ID.
|
|
40
|
+
self.cen_id = cen_id
|
|
41
|
+
# The local IP address.
|
|
42
|
+
self.cloud_ip = cloud_ip
|
|
43
|
+
# The local port.
|
|
44
|
+
#
|
|
45
|
+
# > This parameter is required only if you set **GroupBy** to **CloudPort**.
|
|
46
|
+
self.cloud_port = cloud_port
|
|
47
|
+
# The direction of the hybrid cloud traffic in the local regions or for the local IP addresses. Valid values:
|
|
48
|
+
#
|
|
49
|
+
# * **in**: traffic from a data center to Alibaba Cloud
|
|
50
|
+
# * **out**: traffic from Alibaba Cloud to a data center
|
|
51
|
+
#
|
|
52
|
+
# This parameter is required.
|
|
53
|
+
self.direction = direction
|
|
54
|
+
# 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. The maximum time range that you can query is 24 hours.
|
|
55
|
+
#
|
|
56
|
+
# This parameter is required.
|
|
57
|
+
self.end_time = end_time
|
|
58
|
+
# The dimension for ranking hybrid cloud traffic data. The value of this parameter is case-sensitive. Valid values:
|
|
59
|
+
#
|
|
60
|
+
# * **1Tuple**: queries the rankings of hybrid cloud traffic data for the Cloud Enterprise Network (CEN) instances, CEN connections, virtual border routers (VBRs), and IP addresses.
|
|
61
|
+
# * **2Tuple**: queries the rankings of hybrid cloud traffic data for the local and remote IP addresses.
|
|
62
|
+
# * **5Tuple**: queries the rankings of hybrid cloud traffic data for the local and remote IP addresses, local and remote ports, and protocols.
|
|
63
|
+
# * **CloudPort**: queries the rankings of hybrid cloud traffic data for the local ports.
|
|
64
|
+
# * **OtherPort**: queries the rankings of hybrid cloud traffic data for the remote ports.
|
|
65
|
+
# * **Protocol**: queries the rankings of hybrid cloud traffic data for the protocols.
|
|
66
|
+
#
|
|
67
|
+
# This parameter is required.
|
|
68
|
+
self.group_by = group_by
|
|
69
|
+
# The metric for ranking hybrid cloud traffic data. Default value: Bytes. This value specifies that hybrid cloud traffic data is ranked by traffic volumes.
|
|
70
|
+
self.order_by = order_by
|
|
71
|
+
# The remote IP address.
|
|
72
|
+
self.other_ip = other_ip
|
|
73
|
+
# The remote port.
|
|
74
|
+
#
|
|
75
|
+
# > This parameter is required only if you set **GroupBy** to **OtherPort**.
|
|
76
|
+
self.other_port = other_port
|
|
77
|
+
# The protocol number.
|
|
78
|
+
#
|
|
79
|
+
# > All protocols are supported. This parameter is required only if you set **GroupBy** to **5Tuple** or **Protocol**.
|
|
80
|
+
self.protocol = protocol
|
|
81
|
+
# The local region.
|
|
82
|
+
#
|
|
83
|
+
# This parameter is required.
|
|
84
|
+
self.region_id = region_id
|
|
85
|
+
# The order for ranking hybrid cloud traffic data. Valid values:
|
|
86
|
+
#
|
|
87
|
+
# * **desc**: descending order
|
|
88
|
+
# * **asc**: ascending order
|
|
89
|
+
self.sort = sort
|
|
90
|
+
# Specifies top-N traffic data to display. Default value: **10**. This value specifies that top-10 traffic data is displayed by default. Maximum value: **100**.
|
|
91
|
+
self.top_n = top_n
|
|
92
|
+
# Specifies whether to enable the multi-account management feature. Default value: **false**. This value specifies that the multi-account management feature is disabled.
|
|
93
|
+
#
|
|
94
|
+
# > 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.
|
|
95
|
+
self.use_multi_account = use_multi_account
|
|
96
|
+
# The ID of the VBR that is associated with the Express Connect circuit.
|
|
97
|
+
self.virtual_border_router_id = virtual_border_router_id
|
|
98
|
+
|
|
99
|
+
def validate(self):
|
|
100
|
+
pass
|
|
101
|
+
|
|
102
|
+
def to_map(self):
|
|
103
|
+
result = dict()
|
|
104
|
+
_map = super().to_map()
|
|
105
|
+
if _map is not None:
|
|
106
|
+
result = _map
|
|
107
|
+
if self.account_ids is not None:
|
|
108
|
+
result['AccountIds'] = self.account_ids
|
|
109
|
+
|
|
110
|
+
if self.attachment_id is not None:
|
|
111
|
+
result['AttachmentId'] = self.attachment_id
|
|
112
|
+
|
|
113
|
+
if self.begin_time is not None:
|
|
114
|
+
result['BeginTime'] = self.begin_time
|
|
115
|
+
|
|
116
|
+
if self.cen_id is not None:
|
|
117
|
+
result['CenId'] = self.cen_id
|
|
118
|
+
|
|
119
|
+
if self.cloud_ip is not None:
|
|
120
|
+
result['CloudIp'] = self.cloud_ip
|
|
121
|
+
|
|
122
|
+
if self.cloud_port is not None:
|
|
123
|
+
result['CloudPort'] = self.cloud_port
|
|
124
|
+
|
|
125
|
+
if self.direction is not None:
|
|
126
|
+
result['Direction'] = self.direction
|
|
127
|
+
|
|
128
|
+
if self.end_time is not None:
|
|
129
|
+
result['EndTime'] = self.end_time
|
|
130
|
+
|
|
131
|
+
if self.group_by is not None:
|
|
132
|
+
result['GroupBy'] = self.group_by
|
|
133
|
+
|
|
134
|
+
if self.order_by is not None:
|
|
135
|
+
result['OrderBy'] = self.order_by
|
|
136
|
+
|
|
137
|
+
if self.other_ip is not None:
|
|
138
|
+
result['OtherIp'] = self.other_ip
|
|
139
|
+
|
|
140
|
+
if self.other_port is not None:
|
|
141
|
+
result['OtherPort'] = self.other_port
|
|
142
|
+
|
|
143
|
+
if self.protocol is not None:
|
|
144
|
+
result['Protocol'] = self.protocol
|
|
145
|
+
|
|
146
|
+
if self.region_id is not None:
|
|
147
|
+
result['RegionId'] = self.region_id
|
|
148
|
+
|
|
149
|
+
if self.sort is not None:
|
|
150
|
+
result['Sort'] = self.sort
|
|
151
|
+
|
|
152
|
+
if self.top_n is not None:
|
|
153
|
+
result['TopN'] = self.top_n
|
|
154
|
+
|
|
155
|
+
if self.use_multi_account is not None:
|
|
156
|
+
result['UseMultiAccount'] = self.use_multi_account
|
|
157
|
+
|
|
158
|
+
if self.virtual_border_router_id is not None:
|
|
159
|
+
result['VirtualBorderRouterId'] = self.virtual_border_router_id
|
|
160
|
+
|
|
161
|
+
return result
|
|
162
|
+
|
|
163
|
+
def from_map(self, m: dict = None):
|
|
164
|
+
m = m or dict()
|
|
165
|
+
if m.get('AccountIds') is not None:
|
|
166
|
+
self.account_ids = m.get('AccountIds')
|
|
167
|
+
|
|
168
|
+
if m.get('AttachmentId') is not None:
|
|
169
|
+
self.attachment_id = m.get('AttachmentId')
|
|
170
|
+
|
|
171
|
+
if m.get('BeginTime') is not None:
|
|
172
|
+
self.begin_time = m.get('BeginTime')
|
|
173
|
+
|
|
174
|
+
if m.get('CenId') is not None:
|
|
175
|
+
self.cen_id = m.get('CenId')
|
|
176
|
+
|
|
177
|
+
if m.get('CloudIp') is not None:
|
|
178
|
+
self.cloud_ip = m.get('CloudIp')
|
|
179
|
+
|
|
180
|
+
if m.get('CloudPort') is not None:
|
|
181
|
+
self.cloud_port = m.get('CloudPort')
|
|
182
|
+
|
|
183
|
+
if m.get('Direction') is not None:
|
|
184
|
+
self.direction = m.get('Direction')
|
|
185
|
+
|
|
186
|
+
if m.get('EndTime') is not None:
|
|
187
|
+
self.end_time = m.get('EndTime')
|
|
188
|
+
|
|
189
|
+
if m.get('GroupBy') is not None:
|
|
190
|
+
self.group_by = m.get('GroupBy')
|
|
191
|
+
|
|
192
|
+
if m.get('OrderBy') is not None:
|
|
193
|
+
self.order_by = m.get('OrderBy')
|
|
194
|
+
|
|
195
|
+
if m.get('OtherIp') is not None:
|
|
196
|
+
self.other_ip = m.get('OtherIp')
|
|
197
|
+
|
|
198
|
+
if m.get('OtherPort') is not None:
|
|
199
|
+
self.other_port = m.get('OtherPort')
|
|
200
|
+
|
|
201
|
+
if m.get('Protocol') is not None:
|
|
202
|
+
self.protocol = m.get('Protocol')
|
|
203
|
+
|
|
204
|
+
if m.get('RegionId') is not None:
|
|
205
|
+
self.region_id = m.get('RegionId')
|
|
206
|
+
|
|
207
|
+
if m.get('Sort') is not None:
|
|
208
|
+
self.sort = m.get('Sort')
|
|
209
|
+
|
|
210
|
+
if m.get('TopN') is not None:
|
|
211
|
+
self.top_n = m.get('TopN')
|
|
212
|
+
|
|
213
|
+
if m.get('UseMultiAccount') is not None:
|
|
214
|
+
self.use_multi_account = m.get('UseMultiAccount')
|
|
215
|
+
|
|
216
|
+
if m.get('VirtualBorderRouterId') is not None:
|
|
217
|
+
self.virtual_border_router_id = m.get('VirtualBorderRouterId')
|
|
218
|
+
|
|
219
|
+
return self
|
|
220
|
+
|
|
@@ -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 GetVbrFlowTopNResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.GetVbrFlowTopNResponseBody = 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.GetVbrFlowTopNResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
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 GetVbrFlowTopNResponseBody(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
request_id: str = None,
|
|
14
|
+
virtual_border_router_flowlog_top_n: List[main_models.GetVbrFlowTopNResponseBodyVirtualBorderRouterFlowlogTopN] = None,
|
|
15
|
+
):
|
|
16
|
+
# The request ID.
|
|
17
|
+
self.request_id = request_id
|
|
18
|
+
# The ranking result of hybrid cloud traffic data.
|
|
19
|
+
self.virtual_border_router_flowlog_top_n = virtual_border_router_flowlog_top_n
|
|
20
|
+
|
|
21
|
+
def validate(self):
|
|
22
|
+
if self.virtual_border_router_flowlog_top_n:
|
|
23
|
+
for v1 in self.virtual_border_router_flowlog_top_n:
|
|
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
|
+
if self.request_id is not None:
|
|
33
|
+
result['RequestId'] = self.request_id
|
|
34
|
+
|
|
35
|
+
result['VirtualBorderRouterFlowlogTopN'] = []
|
|
36
|
+
if self.virtual_border_router_flowlog_top_n is not None:
|
|
37
|
+
for k1 in self.virtual_border_router_flowlog_top_n:
|
|
38
|
+
result['VirtualBorderRouterFlowlogTopN'].append(k1.to_map() if k1 else None)
|
|
39
|
+
|
|
40
|
+
return result
|
|
41
|
+
|
|
42
|
+
def from_map(self, m: dict = None):
|
|
43
|
+
m = m or dict()
|
|
44
|
+
if m.get('RequestId') is not None:
|
|
45
|
+
self.request_id = m.get('RequestId')
|
|
46
|
+
|
|
47
|
+
self.virtual_border_router_flowlog_top_n = []
|
|
48
|
+
if m.get('VirtualBorderRouterFlowlogTopN') is not None:
|
|
49
|
+
for k1 in m.get('VirtualBorderRouterFlowlogTopN'):
|
|
50
|
+
temp_model = main_models.GetVbrFlowTopNResponseBodyVirtualBorderRouterFlowlogTopN()
|
|
51
|
+
self.virtual_border_router_flowlog_top_n.append(temp_model.from_map(k1))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
55
|
+
class GetVbrFlowTopNResponseBodyVirtualBorderRouterFlowlogTopN(DaraModel):
|
|
56
|
+
def __init__(
|
|
57
|
+
self,
|
|
58
|
+
account_id: str = None,
|
|
59
|
+
attachment_id: str = None,
|
|
60
|
+
bytes: float = None,
|
|
61
|
+
cloud_ip: str = None,
|
|
62
|
+
cloud_port: str = None,
|
|
63
|
+
cloud_region: str = None,
|
|
64
|
+
other_ip: str = None,
|
|
65
|
+
other_port: str = None,
|
|
66
|
+
packets: float = None,
|
|
67
|
+
protocol: str = None,
|
|
68
|
+
virtual_border_router_id: str = None,
|
|
69
|
+
):
|
|
70
|
+
# The account ID.
|
|
71
|
+
self.account_id = account_id
|
|
72
|
+
# The CEN connection ID.
|
|
73
|
+
self.attachment_id = attachment_id
|
|
74
|
+
# The total volume of traffic in the specified time range.
|
|
75
|
+
self.bytes = bytes
|
|
76
|
+
# The local IP address.
|
|
77
|
+
self.cloud_ip = cloud_ip
|
|
78
|
+
# The local port.
|
|
79
|
+
self.cloud_port = cloud_port
|
|
80
|
+
# The local region where the local IP address resides.
|
|
81
|
+
self.cloud_region = cloud_region
|
|
82
|
+
# The remote IP address.
|
|
83
|
+
self.other_ip = other_ip
|
|
84
|
+
# The remote port.
|
|
85
|
+
self.other_port = other_port
|
|
86
|
+
# The total number of packets in the specified time range.
|
|
87
|
+
self.packets = packets
|
|
88
|
+
# The protocol number.
|
|
89
|
+
self.protocol = protocol
|
|
90
|
+
# The ID of the VBR that is associated with the Express Connect circuit.
|
|
91
|
+
self.virtual_border_router_id = virtual_border_router_id
|
|
92
|
+
|
|
93
|
+
def validate(self):
|
|
94
|
+
pass
|
|
95
|
+
|
|
96
|
+
def to_map(self):
|
|
97
|
+
result = dict()
|
|
98
|
+
_map = super().to_map()
|
|
99
|
+
if _map is not None:
|
|
100
|
+
result = _map
|
|
101
|
+
if self.account_id is not None:
|
|
102
|
+
result['AccountId'] = self.account_id
|
|
103
|
+
|
|
104
|
+
if self.attachment_id is not None:
|
|
105
|
+
result['AttachmentId'] = self.attachment_id
|
|
106
|
+
|
|
107
|
+
if self.bytes is not None:
|
|
108
|
+
result['Bytes'] = self.bytes
|
|
109
|
+
|
|
110
|
+
if self.cloud_ip is not None:
|
|
111
|
+
result['CloudIp'] = self.cloud_ip
|
|
112
|
+
|
|
113
|
+
if self.cloud_port is not None:
|
|
114
|
+
result['CloudPort'] = self.cloud_port
|
|
115
|
+
|
|
116
|
+
if self.cloud_region is not None:
|
|
117
|
+
result['CloudRegion'] = self.cloud_region
|
|
118
|
+
|
|
119
|
+
if self.other_ip is not None:
|
|
120
|
+
result['OtherIp'] = self.other_ip
|
|
121
|
+
|
|
122
|
+
if self.other_port is not None:
|
|
123
|
+
result['OtherPort'] = self.other_port
|
|
124
|
+
|
|
125
|
+
if self.packets is not None:
|
|
126
|
+
result['Packets'] = self.packets
|
|
127
|
+
|
|
128
|
+
if self.protocol is not None:
|
|
129
|
+
result['Protocol'] = self.protocol
|
|
130
|
+
|
|
131
|
+
if self.virtual_border_router_id is not None:
|
|
132
|
+
result['VirtualBorderRouterId'] = self.virtual_border_router_id
|
|
133
|
+
|
|
134
|
+
return result
|
|
135
|
+
|
|
136
|
+
def from_map(self, m: dict = None):
|
|
137
|
+
m = m or dict()
|
|
138
|
+
if m.get('AccountId') is not None:
|
|
139
|
+
self.account_id = m.get('AccountId')
|
|
140
|
+
|
|
141
|
+
if m.get('AttachmentId') is not None:
|
|
142
|
+
self.attachment_id = m.get('AttachmentId')
|
|
143
|
+
|
|
144
|
+
if m.get('Bytes') is not None:
|
|
145
|
+
self.bytes = m.get('Bytes')
|
|
146
|
+
|
|
147
|
+
if m.get('CloudIp') is not None:
|
|
148
|
+
self.cloud_ip = m.get('CloudIp')
|
|
149
|
+
|
|
150
|
+
if m.get('CloudPort') is not None:
|
|
151
|
+
self.cloud_port = m.get('CloudPort')
|
|
152
|
+
|
|
153
|
+
if m.get('CloudRegion') is not None:
|
|
154
|
+
self.cloud_region = m.get('CloudRegion')
|
|
155
|
+
|
|
156
|
+
if m.get('OtherIp') is not None:
|
|
157
|
+
self.other_ip = m.get('OtherIp')
|
|
158
|
+
|
|
159
|
+
if m.get('OtherPort') is not None:
|
|
160
|
+
self.other_port = m.get('OtherPort')
|
|
161
|
+
|
|
162
|
+
if m.get('Packets') is not None:
|
|
163
|
+
self.packets = m.get('Packets')
|
|
164
|
+
|
|
165
|
+
if m.get('Protocol') is not None:
|
|
166
|
+
self.protocol = m.get('Protocol')
|
|
167
|
+
|
|
168
|
+
if m.get('VirtualBorderRouterId') is not None:
|
|
169
|
+
self.virtual_border_router_id = m.get('VirtualBorderRouterId')
|
|
170
|
+
|
|
171
|
+
return self
|
|
172
|
+
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class GetVbrFlowTopNShrinkRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
account_ids_shrink: str = None,
|
|
11
|
+
attachment_id: str = None,
|
|
12
|
+
begin_time: int = None,
|
|
13
|
+
cen_id: str = None,
|
|
14
|
+
cloud_ip: str = None,
|
|
15
|
+
cloud_port: str = None,
|
|
16
|
+
direction: str = None,
|
|
17
|
+
end_time: int = None,
|
|
18
|
+
group_by: str = None,
|
|
19
|
+
order_by: str = None,
|
|
20
|
+
other_ip: str = None,
|
|
21
|
+
other_port: str = None,
|
|
22
|
+
protocol: str = None,
|
|
23
|
+
region_id: str = None,
|
|
24
|
+
sort: str = None,
|
|
25
|
+
top_n: int = None,
|
|
26
|
+
use_multi_account: bool = None,
|
|
27
|
+
virtual_border_router_id: str = None,
|
|
28
|
+
):
|
|
29
|
+
# The IDs of member accounts.
|
|
30
|
+
self.account_ids_shrink = account_ids_shrink
|
|
31
|
+
# The CEN connection ID.
|
|
32
|
+
self.attachment_id = attachment_id
|
|
33
|
+
# 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. The maximum time range that you can query is 24 hours.
|
|
34
|
+
#
|
|
35
|
+
# This parameter is required.
|
|
36
|
+
self.begin_time = begin_time
|
|
37
|
+
# The CEN instance ID.
|
|
38
|
+
self.cen_id = cen_id
|
|
39
|
+
# The local IP address.
|
|
40
|
+
self.cloud_ip = cloud_ip
|
|
41
|
+
# The local port.
|
|
42
|
+
#
|
|
43
|
+
# > This parameter is required only if you set **GroupBy** to **CloudPort**.
|
|
44
|
+
self.cloud_port = cloud_port
|
|
45
|
+
# The direction of the hybrid cloud traffic in the local regions or for the local IP addresses. Valid values:
|
|
46
|
+
#
|
|
47
|
+
# * **in**: traffic from a data center to Alibaba Cloud
|
|
48
|
+
# * **out**: traffic from Alibaba Cloud to a data center
|
|
49
|
+
#
|
|
50
|
+
# This parameter is required.
|
|
51
|
+
self.direction = direction
|
|
52
|
+
# 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. The maximum time range that you can query is 24 hours.
|
|
53
|
+
#
|
|
54
|
+
# This parameter is required.
|
|
55
|
+
self.end_time = end_time
|
|
56
|
+
# The dimension for ranking hybrid cloud traffic data. The value of this parameter is case-sensitive. Valid values:
|
|
57
|
+
#
|
|
58
|
+
# * **1Tuple**: queries the rankings of hybrid cloud traffic data for the Cloud Enterprise Network (CEN) instances, CEN connections, virtual border routers (VBRs), and IP addresses.
|
|
59
|
+
# * **2Tuple**: queries the rankings of hybrid cloud traffic data for the local and remote IP addresses.
|
|
60
|
+
# * **5Tuple**: queries the rankings of hybrid cloud traffic data for the local and remote IP addresses, local and remote ports, and protocols.
|
|
61
|
+
# * **CloudPort**: queries the rankings of hybrid cloud traffic data for the local ports.
|
|
62
|
+
# * **OtherPort**: queries the rankings of hybrid cloud traffic data for the remote ports.
|
|
63
|
+
# * **Protocol**: queries the rankings of hybrid cloud traffic data for the protocols.
|
|
64
|
+
#
|
|
65
|
+
# This parameter is required.
|
|
66
|
+
self.group_by = group_by
|
|
67
|
+
# The metric for ranking hybrid cloud traffic data. Default value: Bytes. This value specifies that hybrid cloud traffic data is ranked by traffic volumes.
|
|
68
|
+
self.order_by = order_by
|
|
69
|
+
# The remote IP address.
|
|
70
|
+
self.other_ip = other_ip
|
|
71
|
+
# The remote port.
|
|
72
|
+
#
|
|
73
|
+
# > This parameter is required only if you set **GroupBy** to **OtherPort**.
|
|
74
|
+
self.other_port = other_port
|
|
75
|
+
# The protocol number.
|
|
76
|
+
#
|
|
77
|
+
# > All protocols are supported. This parameter is required only if you set **GroupBy** to **5Tuple** or **Protocol**.
|
|
78
|
+
self.protocol = protocol
|
|
79
|
+
# The local region.
|
|
80
|
+
#
|
|
81
|
+
# This parameter is required.
|
|
82
|
+
self.region_id = region_id
|
|
83
|
+
# The order for ranking hybrid cloud traffic data. Valid values:
|
|
84
|
+
#
|
|
85
|
+
# * **desc**: descending order
|
|
86
|
+
# * **asc**: ascending order
|
|
87
|
+
self.sort = sort
|
|
88
|
+
# Specifies top-N traffic data to display. Default value: **10**. This value specifies that top-10 traffic data is displayed by default. Maximum value: **100**.
|
|
89
|
+
self.top_n = top_n
|
|
90
|
+
# Specifies whether to enable the multi-account management feature. Default value: **false**. This value specifies that the multi-account management feature is disabled.
|
|
91
|
+
#
|
|
92
|
+
# > 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.
|
|
93
|
+
self.use_multi_account = use_multi_account
|
|
94
|
+
# The ID of the VBR that is associated with the Express Connect circuit.
|
|
95
|
+
self.virtual_border_router_id = virtual_border_router_id
|
|
96
|
+
|
|
97
|
+
def validate(self):
|
|
98
|
+
pass
|
|
99
|
+
|
|
100
|
+
def to_map(self):
|
|
101
|
+
result = dict()
|
|
102
|
+
_map = super().to_map()
|
|
103
|
+
if _map is not None:
|
|
104
|
+
result = _map
|
|
105
|
+
if self.account_ids_shrink is not None:
|
|
106
|
+
result['AccountIds'] = self.account_ids_shrink
|
|
107
|
+
|
|
108
|
+
if self.attachment_id is not None:
|
|
109
|
+
result['AttachmentId'] = self.attachment_id
|
|
110
|
+
|
|
111
|
+
if self.begin_time is not None:
|
|
112
|
+
result['BeginTime'] = self.begin_time
|
|
113
|
+
|
|
114
|
+
if self.cen_id is not None:
|
|
115
|
+
result['CenId'] = self.cen_id
|
|
116
|
+
|
|
117
|
+
if self.cloud_ip is not None:
|
|
118
|
+
result['CloudIp'] = self.cloud_ip
|
|
119
|
+
|
|
120
|
+
if self.cloud_port is not None:
|
|
121
|
+
result['CloudPort'] = self.cloud_port
|
|
122
|
+
|
|
123
|
+
if self.direction is not None:
|
|
124
|
+
result['Direction'] = self.direction
|
|
125
|
+
|
|
126
|
+
if self.end_time is not None:
|
|
127
|
+
result['EndTime'] = self.end_time
|
|
128
|
+
|
|
129
|
+
if self.group_by is not None:
|
|
130
|
+
result['GroupBy'] = self.group_by
|
|
131
|
+
|
|
132
|
+
if self.order_by is not None:
|
|
133
|
+
result['OrderBy'] = self.order_by
|
|
134
|
+
|
|
135
|
+
if self.other_ip is not None:
|
|
136
|
+
result['OtherIp'] = self.other_ip
|
|
137
|
+
|
|
138
|
+
if self.other_port is not None:
|
|
139
|
+
result['OtherPort'] = self.other_port
|
|
140
|
+
|
|
141
|
+
if self.protocol is not None:
|
|
142
|
+
result['Protocol'] = self.protocol
|
|
143
|
+
|
|
144
|
+
if self.region_id is not None:
|
|
145
|
+
result['RegionId'] = self.region_id
|
|
146
|
+
|
|
147
|
+
if self.sort is not None:
|
|
148
|
+
result['Sort'] = self.sort
|
|
149
|
+
|
|
150
|
+
if self.top_n is not None:
|
|
151
|
+
result['TopN'] = self.top_n
|
|
152
|
+
|
|
153
|
+
if self.use_multi_account is not None:
|
|
154
|
+
result['UseMultiAccount'] = self.use_multi_account
|
|
155
|
+
|
|
156
|
+
if self.virtual_border_router_id is not None:
|
|
157
|
+
result['VirtualBorderRouterId'] = self.virtual_border_router_id
|
|
158
|
+
|
|
159
|
+
return result
|
|
160
|
+
|
|
161
|
+
def from_map(self, m: dict = None):
|
|
162
|
+
m = m or dict()
|
|
163
|
+
if m.get('AccountIds') is not None:
|
|
164
|
+
self.account_ids_shrink = m.get('AccountIds')
|
|
165
|
+
|
|
166
|
+
if m.get('AttachmentId') is not None:
|
|
167
|
+
self.attachment_id = m.get('AttachmentId')
|
|
168
|
+
|
|
169
|
+
if m.get('BeginTime') is not None:
|
|
170
|
+
self.begin_time = m.get('BeginTime')
|
|
171
|
+
|
|
172
|
+
if m.get('CenId') is not None:
|
|
173
|
+
self.cen_id = m.get('CenId')
|
|
174
|
+
|
|
175
|
+
if m.get('CloudIp') is not None:
|
|
176
|
+
self.cloud_ip = m.get('CloudIp')
|
|
177
|
+
|
|
178
|
+
if m.get('CloudPort') is not None:
|
|
179
|
+
self.cloud_port = m.get('CloudPort')
|
|
180
|
+
|
|
181
|
+
if m.get('Direction') is not None:
|
|
182
|
+
self.direction = m.get('Direction')
|
|
183
|
+
|
|
184
|
+
if m.get('EndTime') is not None:
|
|
185
|
+
self.end_time = m.get('EndTime')
|
|
186
|
+
|
|
187
|
+
if m.get('GroupBy') is not None:
|
|
188
|
+
self.group_by = m.get('GroupBy')
|
|
189
|
+
|
|
190
|
+
if m.get('OrderBy') is not None:
|
|
191
|
+
self.order_by = m.get('OrderBy')
|
|
192
|
+
|
|
193
|
+
if m.get('OtherIp') is not None:
|
|
194
|
+
self.other_ip = m.get('OtherIp')
|
|
195
|
+
|
|
196
|
+
if m.get('OtherPort') is not None:
|
|
197
|
+
self.other_port = m.get('OtherPort')
|
|
198
|
+
|
|
199
|
+
if m.get('Protocol') is not None:
|
|
200
|
+
self.protocol = m.get('Protocol')
|
|
201
|
+
|
|
202
|
+
if m.get('RegionId') is not None:
|
|
203
|
+
self.region_id = m.get('RegionId')
|
|
204
|
+
|
|
205
|
+
if m.get('Sort') is not None:
|
|
206
|
+
self.sort = m.get('Sort')
|
|
207
|
+
|
|
208
|
+
if m.get('TopN') is not None:
|
|
209
|
+
self.top_n = m.get('TopN')
|
|
210
|
+
|
|
211
|
+
if m.get('UseMultiAccount') is not None:
|
|
212
|
+
self.use_multi_account = m.get('UseMultiAccount')
|
|
213
|
+
|
|
214
|
+
if m.get('VirtualBorderRouterId') is not None:
|
|
215
|
+
self.virtual_border_router_id = m.get('VirtualBorderRouterId')
|
|
216
|
+
|
|
217
|
+
return self
|
|
218
|
+
|