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.
Files changed (96) hide show
  1. alibabacloud_nis20211216/__init__.py +1 -1
  2. alibabacloud_nis20211216/client.py +1681 -2184
  3. alibabacloud_nis20211216/models/__init__.py +227 -0
  4. alibabacloud_nis20211216/models/_create_and_analyze_network_path_request.py +136 -0
  5. alibabacloud_nis20211216/models/_create_and_analyze_network_path_response.py +54 -0
  6. alibabacloud_nis20211216/models/_create_and_analyze_network_path_response_body.py +124 -0
  7. alibabacloud_nis20211216/models/_create_network_path_request.py +228 -0
  8. alibabacloud_nis20211216/models/_create_network_path_response.py +54 -0
  9. alibabacloud_nis20211216/models/_create_network_path_response_body.py +43 -0
  10. alibabacloud_nis20211216/models/_create_network_reachable_analysis_request.py +106 -0
  11. alibabacloud_nis20211216/models/_create_network_reachable_analysis_response.py +54 -0
  12. alibabacloud_nis20211216/models/_create_network_reachable_analysis_response_body.py +43 -0
  13. alibabacloud_nis20211216/models/_delete_network_path_request.py +47 -0
  14. alibabacloud_nis20211216/models/_delete_network_path_response.py +54 -0
  15. alibabacloud_nis20211216/models/_delete_network_path_response_body.py +46 -0
  16. alibabacloud_nis20211216/models/_delete_network_path_shrink_request.py +45 -0
  17. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_request.py +47 -0
  18. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_response.py +54 -0
  19. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_response_body.py +45 -0
  20. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_shrink_request.py +45 -0
  21. alibabacloud_nis20211216/models/_delete_nis_inspection_report_request.py +34 -0
  22. alibabacloud_nis20211216/models/_delete_nis_inspection_report_response.py +54 -0
  23. alibabacloud_nis20211216/models/_delete_nis_inspection_report_response_body.py +41 -0
  24. alibabacloud_nis20211216/models/_delete_nis_inspection_task_request.py +34 -0
  25. alibabacloud_nis20211216/models/_delete_nis_inspection_task_response.py +54 -0
  26. alibabacloud_nis20211216/models/_delete_nis_inspection_task_response_body.py +41 -0
  27. alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_request.py +67 -0
  28. alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_response.py +54 -0
  29. alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_response_body.py +127 -0
  30. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_request.py +84 -0
  31. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_response.py +54 -0
  32. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_response_body.py +302 -0
  33. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_shrink_request.py +82 -0
  34. alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_request.py +34 -0
  35. alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_response.py +54 -0
  36. alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_response_body.py +89 -0
  37. alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_request.py +34 -0
  38. alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_response.py +54 -0
  39. alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_response_body.py +240 -0
  40. alibabacloud_nis20211216/models/_describe_nis_inspection_task_request.py +34 -0
  41. alibabacloud_nis20211216/models/_describe_nis_inspection_task_response.py +54 -0
  42. alibabacloud_nis20211216/models/_describe_nis_inspection_task_response_body.py +159 -0
  43. alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_request.py +50 -0
  44. alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_response.py +54 -0
  45. alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_response_body.py +463 -0
  46. alibabacloud_nis20211216/models/_get_internet_tuple_request.py +270 -0
  47. alibabacloud_nis20211216/models/_get_internet_tuple_response.py +54 -0
  48. alibabacloud_nis20211216/models/_get_internet_tuple_response_body.py +366 -0
  49. alibabacloud_nis20211216/models/_get_internet_tuple_shrink_request.py +270 -0
  50. alibabacloud_nis20211216/models/_get_nat_top_nrequest.py +99 -0
  51. alibabacloud_nis20211216/models/_get_nat_top_nresponse.py +54 -0
  52. alibabacloud_nis20211216/models/_get_nat_top_nresponse_body.py +166 -0
  53. alibabacloud_nis20211216/models/_get_network_reachable_analysis_request.py +45 -0
  54. alibabacloud_nis20211216/models/_get_network_reachable_analysis_response.py +54 -0
  55. alibabacloud_nis20211216/models/_get_network_reachable_analysis_response_body.py +114 -0
  56. alibabacloud_nis20211216/models/_get_nis_network_metrics_request.py +155 -0
  57. alibabacloud_nis20211216/models/_get_nis_network_metrics_response.py +54 -0
  58. alibabacloud_nis20211216/models/_get_nis_network_metrics_response_body.py +124 -0
  59. alibabacloud_nis20211216/models/_get_nis_network_metrics_shrink_request.py +111 -0
  60. alibabacloud_nis20211216/models/_get_nis_network_ranking_request.py +172 -0
  61. alibabacloud_nis20211216/models/_get_nis_network_ranking_response.py +54 -0
  62. alibabacloud_nis20211216/models/_get_nis_network_ranking_response_body.py +319 -0
  63. alibabacloud_nis20211216/models/_get_nis_network_ranking_shrink_request.py +128 -0
  64. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nrequest.py +215 -0
  65. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nresponse.py +54 -0
  66. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nresponse_body.py +199 -0
  67. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nshrink_request.py +213 -0
  68. alibabacloud_nis20211216/models/_get_vbr_flow_top_nrequest.py +220 -0
  69. alibabacloud_nis20211216/models/_get_vbr_flow_top_nresponse.py +54 -0
  70. alibabacloud_nis20211216/models/_get_vbr_flow_top_nresponse_body.py +172 -0
  71. alibabacloud_nis20211216/models/_get_vbr_flow_top_nshrink_request.py +218 -0
  72. alibabacloud_nis20211216/models/_list_nis_inspection_resource_type_response.py +54 -0
  73. alibabacloud_nis20211216/models/_list_nis_inspection_resource_type_response_body.py +79 -0
  74. alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_request.py +50 -0
  75. alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_response.py +54 -0
  76. alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_response_body.py +103 -0
  77. alibabacloud_nis20211216/models/_list_nis_inspection_tasks_request.py +73 -0
  78. alibabacloud_nis20211216/models/_list_nis_inspection_tasks_response.py +54 -0
  79. alibabacloud_nis20211216/models/_list_nis_inspection_tasks_response_body.py +143 -0
  80. alibabacloud_nis20211216/models/_start_nis_inspection_task_request.py +34 -0
  81. alibabacloud_nis20211216/models/_start_nis_inspection_task_response.py +54 -0
  82. alibabacloud_nis20211216/models/_start_nis_inspection_task_response_body.py +41 -0
  83. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_request.py +214 -0
  84. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_response.py +54 -0
  85. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_response_body.py +41 -0
  86. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_shrink_request.py +160 -0
  87. alibabacloud_nis20211216/models/_update_nis_inspection_task_request.py +42 -0
  88. alibabacloud_nis20211216/models/_update_nis_inspection_task_response.py +54 -0
  89. alibabacloud_nis20211216/models/_update_nis_inspection_task_response_body.py +41 -0
  90. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/METADATA +7 -7
  91. alibabacloud_nis20211216-2.3.0.dist-info/RECORD +94 -0
  92. alibabacloud_nis20211216/models.py +0 -6298
  93. alibabacloud_nis20211216-2.2.2.dist-info/RECORD +0 -8
  94. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/LICENSE +0 -0
  95. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/WHEEL +0 -0
  96. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,215 @@
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 GetTransitRouterFlowTopNRequest(DaraModel):
10
+ def __init__(
11
+ self,
12
+ account_ids: List[int] = None,
13
+ bandwith_package_id: str = None,
14
+ begin_time: int = None,
15
+ cen_id: 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
+ other_region: str = None,
23
+ protocol: str = None,
24
+ sort: str = None,
25
+ this_ip: str = None,
26
+ this_port: str = None,
27
+ this_region: str = None,
28
+ top_n: int = None,
29
+ use_multi_account: bool = None,
30
+ ):
31
+ # The IDs of the member accounts.
32
+ self.account_ids = account_ids
33
+ # The ID of the CEN bandwidth plan.
34
+ self.bandwith_package_id = bandwith_package_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 direction of the inter-region traffic in the local regions or for the local IP addresses. Valid values:
42
+ #
43
+ # * **in**: inbound traffic
44
+ # * **out**: outbound traffic
45
+ #
46
+ # This parameter is required.
47
+ self.direction = direction
48
+ # 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.
49
+ #
50
+ # This parameter is required.
51
+ self.end_time = end_time
52
+ # The dimension for ranking inter-region traffic data. The value of this parameter is case-sensitive. Valid values:
53
+ #
54
+ # * **1Tuple**: queries the rankings of inter-region traffic data for the local regions, Cloud Enterprise Network (CEN) instances, and IP addresses.
55
+ # * **2Tuple**: queries the rankings of inter-region traffic data for the local and remote regions, and the local and remote IP addresses.
56
+ # * **5Tuple**: queries the rankings of inter-region traffic data for the local and remote IP addresses, local and remote ports, and protocols.
57
+ # * **Cen**: queries the rankings of inter-region traffic data for CEN instances.
58
+ # * **RegionPair**: queries the rankings of inter-region traffic data for the local and remote regions.
59
+ # * **Port**: queries the rankings of inter-region traffic data for the local and remote ports.
60
+ # * **Protocol**: queries the rankings of inter-region traffic data for the protocols.
61
+ #
62
+ # This parameter is required.
63
+ self.group_by = group_by
64
+ # The metric for ranking inter-region traffic data. Default value: Bytes. This value specifies that inter-region traffic data is ranked by traffic volume.
65
+ self.order_by = order_by
66
+ # The remote IP address.
67
+ self.other_ip = other_ip
68
+ # The remote port.
69
+ self.other_port = other_port
70
+ # The remote region.
71
+ self.other_region = other_region
72
+ # The protocol number.
73
+ #
74
+ # > All protocols are supported. This parameter is required only if you set **GroupBy** to **5Tuple** or **Protocol**.
75
+ self.protocol = protocol
76
+ # The order for ranking inter-region traffic data. Valid values:
77
+ #
78
+ # * **desc**: descending order
79
+ # * **asc**: ascending order
80
+ self.sort = sort
81
+ # The local IP address.
82
+ self.this_ip = this_ip
83
+ # The local port.
84
+ self.this_port = this_port
85
+ # The local region where the **local IP address** resides.
86
+ self.this_region = this_region
87
+ # Specifies the maximum number of data entries to display. Default value: **10**. Maximum value: 100.
88
+ self.top_n = top_n
89
+ # Specifies whether to enable the multi-account management feature. Default value: **false**. This value specifies that the multi-account management feature is disabled.
90
+ #
91
+ # > 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.
92
+ self.use_multi_account = use_multi_account
93
+
94
+ def validate(self):
95
+ pass
96
+
97
+ def to_map(self):
98
+ result = dict()
99
+ _map = super().to_map()
100
+ if _map is not None:
101
+ result = _map
102
+ if self.account_ids is not None:
103
+ result['AccountIds'] = self.account_ids
104
+
105
+ if self.bandwith_package_id is not None:
106
+ result['BandwithPackageId'] = self.bandwith_package_id
107
+
108
+ if self.begin_time is not None:
109
+ result['BeginTime'] = self.begin_time
110
+
111
+ if self.cen_id is not None:
112
+ result['CenId'] = self.cen_id
113
+
114
+ if self.direction is not None:
115
+ result['Direction'] = self.direction
116
+
117
+ if self.end_time is not None:
118
+ result['EndTime'] = self.end_time
119
+
120
+ if self.group_by is not None:
121
+ result['GroupBy'] = self.group_by
122
+
123
+ if self.order_by is not None:
124
+ result['OrderBy'] = self.order_by
125
+
126
+ if self.other_ip is not None:
127
+ result['OtherIp'] = self.other_ip
128
+
129
+ if self.other_port is not None:
130
+ result['OtherPort'] = self.other_port
131
+
132
+ if self.other_region is not None:
133
+ result['OtherRegion'] = self.other_region
134
+
135
+ if self.protocol is not None:
136
+ result['Protocol'] = self.protocol
137
+
138
+ if self.sort is not None:
139
+ result['Sort'] = self.sort
140
+
141
+ if self.this_ip is not None:
142
+ result['ThisIp'] = self.this_ip
143
+
144
+ if self.this_port is not None:
145
+ result['ThisPort'] = self.this_port
146
+
147
+ if self.this_region is not None:
148
+ result['ThisRegion'] = self.this_region
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
+ return result
157
+
158
+ def from_map(self, m: dict = None):
159
+ m = m or dict()
160
+ if m.get('AccountIds') is not None:
161
+ self.account_ids = m.get('AccountIds')
162
+
163
+ if m.get('BandwithPackageId') is not None:
164
+ self.bandwith_package_id = m.get('BandwithPackageId')
165
+
166
+ if m.get('BeginTime') is not None:
167
+ self.begin_time = m.get('BeginTime')
168
+
169
+ if m.get('CenId') is not None:
170
+ self.cen_id = m.get('CenId')
171
+
172
+ if m.get('Direction') is not None:
173
+ self.direction = m.get('Direction')
174
+
175
+ if m.get('EndTime') is not None:
176
+ self.end_time = m.get('EndTime')
177
+
178
+ if m.get('GroupBy') is not None:
179
+ self.group_by = m.get('GroupBy')
180
+
181
+ if m.get('OrderBy') is not None:
182
+ self.order_by = m.get('OrderBy')
183
+
184
+ if m.get('OtherIp') is not None:
185
+ self.other_ip = m.get('OtherIp')
186
+
187
+ if m.get('OtherPort') is not None:
188
+ self.other_port = m.get('OtherPort')
189
+
190
+ if m.get('OtherRegion') is not None:
191
+ self.other_region = m.get('OtherRegion')
192
+
193
+ if m.get('Protocol') is not None:
194
+ self.protocol = m.get('Protocol')
195
+
196
+ if m.get('Sort') is not None:
197
+ self.sort = m.get('Sort')
198
+
199
+ if m.get('ThisIp') is not None:
200
+ self.this_ip = m.get('ThisIp')
201
+
202
+ if m.get('ThisPort') is not None:
203
+ self.this_port = m.get('ThisPort')
204
+
205
+ if m.get('ThisRegion') is not None:
206
+ self.this_region = m.get('ThisRegion')
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
+ return self
215
+
@@ -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 GetTransitRouterFlowTopNResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.GetTransitRouterFlowTopNResponseBody = 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.GetTransitRouterFlowTopNResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,199 @@
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 GetTransitRouterFlowTopNResponseBody(DaraModel):
11
+ def __init__(
12
+ self,
13
+ request_id: str = None,
14
+ transit_router_flow_top_n: List[main_models.GetTransitRouterFlowTopNResponseBodyTransitRouterFlowTopN] = None,
15
+ ):
16
+ # The request ID.
17
+ self.request_id = request_id
18
+ # The ranking result of inter-region traffic data.
19
+ self.transit_router_flow_top_n = transit_router_flow_top_n
20
+
21
+ def validate(self):
22
+ if self.transit_router_flow_top_n:
23
+ for v1 in self.transit_router_flow_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['TransitRouterFlowTopN'] = []
36
+ if self.transit_router_flow_top_n is not None:
37
+ for k1 in self.transit_router_flow_top_n:
38
+ result['TransitRouterFlowTopN'].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.transit_router_flow_top_n = []
48
+ if m.get('TransitRouterFlowTopN') is not None:
49
+ for k1 in m.get('TransitRouterFlowTopN'):
50
+ temp_model = main_models.GetTransitRouterFlowTopNResponseBodyTransitRouterFlowTopN()
51
+ self.transit_router_flow_top_n.append(temp_model.from_map(k1))
52
+
53
+ return self
54
+
55
+ class GetTransitRouterFlowTopNResponseBodyTransitRouterFlowTopN(DaraModel):
56
+ def __init__(
57
+ self,
58
+ account_id: str = None,
59
+ bandwith_package_id: str = None,
60
+ bytes: float = None,
61
+ cen_id: str = None,
62
+ end_time: str = None,
63
+ other_ip: str = None,
64
+ other_port: str = None,
65
+ other_region: str = None,
66
+ packets: float = None,
67
+ protocol: str = None,
68
+ start_time: str = None,
69
+ this_ip: str = None,
70
+ this_port: str = None,
71
+ this_region: str = None,
72
+ ):
73
+ # The account ID.
74
+ self.account_id = account_id
75
+ # The ID of the CEN bandwidth plan.
76
+ self.bandwith_package_id = bandwith_package_id
77
+ # The total volume of traffic in the specified time range.
78
+ self.bytes = bytes
79
+ # The CEN instance ID.
80
+ self.cen_id = cen_id
81
+ # The end of the time range that you queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
82
+ self.end_time = end_time
83
+ # The remote IP address.
84
+ self.other_ip = other_ip
85
+ # The remote port.
86
+ self.other_port = other_port
87
+ # The remote region where the **remote IP address** resides.
88
+ self.other_region = other_region
89
+ # The total number of packets in the specified time range.
90
+ self.packets = packets
91
+ # The protocol number.
92
+ self.protocol = protocol
93
+ # The beginning of the time range that you queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
94
+ self.start_time = start_time
95
+ # The local IP address.
96
+ self.this_ip = this_ip
97
+ # The local port.
98
+ self.this_port = this_port
99
+ # The local region where the **local IP address** resides.
100
+ self.this_region = this_region
101
+
102
+ def validate(self):
103
+ pass
104
+
105
+ def to_map(self):
106
+ result = dict()
107
+ _map = super().to_map()
108
+ if _map is not None:
109
+ result = _map
110
+ if self.account_id is not None:
111
+ result['AccountId'] = self.account_id
112
+
113
+ if self.bandwith_package_id is not None:
114
+ result['BandwithPackageId'] = self.bandwith_package_id
115
+
116
+ if self.bytes is not None:
117
+ result['Bytes'] = self.bytes
118
+
119
+ if self.cen_id is not None:
120
+ result['CenId'] = self.cen_id
121
+
122
+ if self.end_time is not None:
123
+ result['EndTime'] = self.end_time
124
+
125
+ if self.other_ip is not None:
126
+ result['OtherIp'] = self.other_ip
127
+
128
+ if self.other_port is not None:
129
+ result['OtherPort'] = self.other_port
130
+
131
+ if self.other_region is not None:
132
+ result['OtherRegion'] = self.other_region
133
+
134
+ if self.packets is not None:
135
+ result['Packets'] = self.packets
136
+
137
+ if self.protocol is not None:
138
+ result['Protocol'] = self.protocol
139
+
140
+ if self.start_time is not None:
141
+ result['StartTime'] = self.start_time
142
+
143
+ if self.this_ip is not None:
144
+ result['ThisIp'] = self.this_ip
145
+
146
+ if self.this_port is not None:
147
+ result['ThisPort'] = self.this_port
148
+
149
+ if self.this_region is not None:
150
+ result['ThisRegion'] = self.this_region
151
+
152
+ return result
153
+
154
+ def from_map(self, m: dict = None):
155
+ m = m or dict()
156
+ if m.get('AccountId') is not None:
157
+ self.account_id = m.get('AccountId')
158
+
159
+ if m.get('BandwithPackageId') is not None:
160
+ self.bandwith_package_id = m.get('BandwithPackageId')
161
+
162
+ if m.get('Bytes') is not None:
163
+ self.bytes = m.get('Bytes')
164
+
165
+ if m.get('CenId') is not None:
166
+ self.cen_id = m.get('CenId')
167
+
168
+ if m.get('EndTime') is not None:
169
+ self.end_time = m.get('EndTime')
170
+
171
+ if m.get('OtherIp') is not None:
172
+ self.other_ip = m.get('OtherIp')
173
+
174
+ if m.get('OtherPort') is not None:
175
+ self.other_port = m.get('OtherPort')
176
+
177
+ if m.get('OtherRegion') is not None:
178
+ self.other_region = m.get('OtherRegion')
179
+
180
+ if m.get('Packets') is not None:
181
+ self.packets = m.get('Packets')
182
+
183
+ if m.get('Protocol') is not None:
184
+ self.protocol = m.get('Protocol')
185
+
186
+ if m.get('StartTime') is not None:
187
+ self.start_time = m.get('StartTime')
188
+
189
+ if m.get('ThisIp') is not None:
190
+ self.this_ip = m.get('ThisIp')
191
+
192
+ if m.get('ThisPort') is not None:
193
+ self.this_port = m.get('ThisPort')
194
+
195
+ if m.get('ThisRegion') is not None:
196
+ self.this_region = m.get('ThisRegion')
197
+
198
+ return self
199
+
@@ -0,0 +1,213 @@
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 GetTransitRouterFlowTopNShrinkRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ account_ids_shrink: str = None,
11
+ bandwith_package_id: str = None,
12
+ begin_time: int = None,
13
+ cen_id: str = None,
14
+ direction: str = None,
15
+ end_time: int = None,
16
+ group_by: str = None,
17
+ order_by: str = None,
18
+ other_ip: str = None,
19
+ other_port: str = None,
20
+ other_region: str = None,
21
+ protocol: str = None,
22
+ sort: str = None,
23
+ this_ip: str = None,
24
+ this_port: str = None,
25
+ this_region: str = None,
26
+ top_n: int = None,
27
+ use_multi_account: bool = None,
28
+ ):
29
+ # The IDs of the member accounts.
30
+ self.account_ids_shrink = account_ids_shrink
31
+ # The ID of the CEN bandwidth plan.
32
+ self.bandwith_package_id = bandwith_package_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 direction of the inter-region traffic in the local regions or for the local IP addresses. Valid values:
40
+ #
41
+ # * **in**: inbound traffic
42
+ # * **out**: outbound traffic
43
+ #
44
+ # This parameter is required.
45
+ self.direction = direction
46
+ # 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.
47
+ #
48
+ # This parameter is required.
49
+ self.end_time = end_time
50
+ # The dimension for ranking inter-region traffic data. The value of this parameter is case-sensitive. Valid values:
51
+ #
52
+ # * **1Tuple**: queries the rankings of inter-region traffic data for the local regions, Cloud Enterprise Network (CEN) instances, and IP addresses.
53
+ # * **2Tuple**: queries the rankings of inter-region traffic data for the local and remote regions, and the local and remote IP addresses.
54
+ # * **5Tuple**: queries the rankings of inter-region traffic data for the local and remote IP addresses, local and remote ports, and protocols.
55
+ # * **Cen**: queries the rankings of inter-region traffic data for CEN instances.
56
+ # * **RegionPair**: queries the rankings of inter-region traffic data for the local and remote regions.
57
+ # * **Port**: queries the rankings of inter-region traffic data for the local and remote ports.
58
+ # * **Protocol**: queries the rankings of inter-region traffic data for the protocols.
59
+ #
60
+ # This parameter is required.
61
+ self.group_by = group_by
62
+ # The metric for ranking inter-region traffic data. Default value: Bytes. This value specifies that inter-region traffic data is ranked by traffic volume.
63
+ self.order_by = order_by
64
+ # The remote IP address.
65
+ self.other_ip = other_ip
66
+ # The remote port.
67
+ self.other_port = other_port
68
+ # The remote region.
69
+ self.other_region = other_region
70
+ # The protocol number.
71
+ #
72
+ # > All protocols are supported. This parameter is required only if you set **GroupBy** to **5Tuple** or **Protocol**.
73
+ self.protocol = protocol
74
+ # The order for ranking inter-region traffic data. Valid values:
75
+ #
76
+ # * **desc**: descending order
77
+ # * **asc**: ascending order
78
+ self.sort = sort
79
+ # The local IP address.
80
+ self.this_ip = this_ip
81
+ # The local port.
82
+ self.this_port = this_port
83
+ # The local region where the **local IP address** resides.
84
+ self.this_region = this_region
85
+ # Specifies the maximum number of data entries to display. Default value: **10**. Maximum value: 100.
86
+ self.top_n = top_n
87
+ # Specifies whether to enable the multi-account management feature. Default value: **false**. This value specifies that the multi-account management feature is disabled.
88
+ #
89
+ # > 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.
90
+ self.use_multi_account = use_multi_account
91
+
92
+ def validate(self):
93
+ pass
94
+
95
+ def to_map(self):
96
+ result = dict()
97
+ _map = super().to_map()
98
+ if _map is not None:
99
+ result = _map
100
+ if self.account_ids_shrink is not None:
101
+ result['AccountIds'] = self.account_ids_shrink
102
+
103
+ if self.bandwith_package_id is not None:
104
+ result['BandwithPackageId'] = self.bandwith_package_id
105
+
106
+ if self.begin_time is not None:
107
+ result['BeginTime'] = self.begin_time
108
+
109
+ if self.cen_id is not None:
110
+ result['CenId'] = self.cen_id
111
+
112
+ if self.direction is not None:
113
+ result['Direction'] = self.direction
114
+
115
+ if self.end_time is not None:
116
+ result['EndTime'] = self.end_time
117
+
118
+ if self.group_by is not None:
119
+ result['GroupBy'] = self.group_by
120
+
121
+ if self.order_by is not None:
122
+ result['OrderBy'] = self.order_by
123
+
124
+ if self.other_ip is not None:
125
+ result['OtherIp'] = self.other_ip
126
+
127
+ if self.other_port is not None:
128
+ result['OtherPort'] = self.other_port
129
+
130
+ if self.other_region is not None:
131
+ result['OtherRegion'] = self.other_region
132
+
133
+ if self.protocol is not None:
134
+ result['Protocol'] = self.protocol
135
+
136
+ if self.sort is not None:
137
+ result['Sort'] = self.sort
138
+
139
+ if self.this_ip is not None:
140
+ result['ThisIp'] = self.this_ip
141
+
142
+ if self.this_port is not None:
143
+ result['ThisPort'] = self.this_port
144
+
145
+ if self.this_region is not None:
146
+ result['ThisRegion'] = self.this_region
147
+
148
+ if self.top_n is not None:
149
+ result['TopN'] = self.top_n
150
+
151
+ if self.use_multi_account is not None:
152
+ result['UseMultiAccount'] = self.use_multi_account
153
+
154
+ return result
155
+
156
+ def from_map(self, m: dict = None):
157
+ m = m or dict()
158
+ if m.get('AccountIds') is not None:
159
+ self.account_ids_shrink = m.get('AccountIds')
160
+
161
+ if m.get('BandwithPackageId') is not None:
162
+ self.bandwith_package_id = m.get('BandwithPackageId')
163
+
164
+ if m.get('BeginTime') is not None:
165
+ self.begin_time = m.get('BeginTime')
166
+
167
+ if m.get('CenId') is not None:
168
+ self.cen_id = m.get('CenId')
169
+
170
+ if m.get('Direction') is not None:
171
+ self.direction = m.get('Direction')
172
+
173
+ if m.get('EndTime') is not None:
174
+ self.end_time = m.get('EndTime')
175
+
176
+ if m.get('GroupBy') is not None:
177
+ self.group_by = m.get('GroupBy')
178
+
179
+ if m.get('OrderBy') is not None:
180
+ self.order_by = m.get('OrderBy')
181
+
182
+ if m.get('OtherIp') is not None:
183
+ self.other_ip = m.get('OtherIp')
184
+
185
+ if m.get('OtherPort') is not None:
186
+ self.other_port = m.get('OtherPort')
187
+
188
+ if m.get('OtherRegion') is not None:
189
+ self.other_region = m.get('OtherRegion')
190
+
191
+ if m.get('Protocol') is not None:
192
+ self.protocol = m.get('Protocol')
193
+
194
+ if m.get('Sort') is not None:
195
+ self.sort = m.get('Sort')
196
+
197
+ if m.get('ThisIp') is not None:
198
+ self.this_ip = m.get('ThisIp')
199
+
200
+ if m.get('ThisPort') is not None:
201
+ self.this_port = m.get('ThisPort')
202
+
203
+ if m.get('ThisRegion') is not None:
204
+ self.this_region = m.get('ThisRegion')
205
+
206
+ if m.get('TopN') is not None:
207
+ self.top_n = m.get('TopN')
208
+
209
+ if m.get('UseMultiAccount') is not None:
210
+ self.use_multi_account = m.get('UseMultiAccount')
211
+
212
+ return self
213
+