alibabacloud-nis20211216 1.1.0__py3-none-any.whl → 1.2.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 +296 -0
- alibabacloud_nis20211216/models.py +1027 -0
- {alibabacloud_nis20211216-1.1.0.dist-info → alibabacloud_nis20211216-1.2.0.dist-info}/METADATA +1 -1
- alibabacloud_nis20211216-1.2.0.dist-info/RECORD +8 -0
- alibabacloud_nis20211216-1.1.0.dist-info/RECORD +0 -8
- {alibabacloud_nis20211216-1.1.0.dist-info → alibabacloud_nis20211216-1.2.0.dist-info}/LICENSE +0 -0
- {alibabacloud_nis20211216-1.1.0.dist-info → alibabacloud_nis20211216-1.2.0.dist-info}/WHEEL +0 -0
- {alibabacloud_nis20211216-1.1.0.dist-info → alibabacloud_nis20211216-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.
|
|
1
|
+
__version__ = '1.2.0'
|
|
@@ -297,6 +297,8 @@ class Client(OpenApiClient):
|
|
|
297
297
|
"""
|
|
298
298
|
UtilClient.validate_model(request)
|
|
299
299
|
query = {}
|
|
300
|
+
if not UtilClient.is_unset(request.audit_param):
|
|
301
|
+
query['AuditParam'] = request.audit_param
|
|
300
302
|
if not UtilClient.is_unset(request.network_path_id):
|
|
301
303
|
query['NetworkPathId'] = request.network_path_id
|
|
302
304
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -338,6 +340,8 @@ class Client(OpenApiClient):
|
|
|
338
340
|
"""
|
|
339
341
|
UtilClient.validate_model(request)
|
|
340
342
|
query = {}
|
|
343
|
+
if not UtilClient.is_unset(request.audit_param):
|
|
344
|
+
query['AuditParam'] = request.audit_param
|
|
341
345
|
if not UtilClient.is_unset(request.network_path_id):
|
|
342
346
|
query['NetworkPathId'] = request.network_path_id
|
|
343
347
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -916,3 +920,295 @@ class Client(OpenApiClient):
|
|
|
916
920
|
"""
|
|
917
921
|
runtime = util_models.RuntimeOptions()
|
|
918
922
|
return await self.get_network_reachable_analysis_with_options_async(request, runtime)
|
|
923
|
+
|
|
924
|
+
def get_transit_router_flow_top_nwith_options(
|
|
925
|
+
self,
|
|
926
|
+
tmp_req: nis_20211216_models.GetTransitRouterFlowTopNRequest,
|
|
927
|
+
runtime: util_models.RuntimeOptions,
|
|
928
|
+
) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
|
|
929
|
+
UtilClient.validate_model(tmp_req)
|
|
930
|
+
request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
|
|
931
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
932
|
+
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
933
|
+
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
934
|
+
query = {}
|
|
935
|
+
if not UtilClient.is_unset(request.account_ids_shrink):
|
|
936
|
+
query['AccountIds'] = request.account_ids_shrink
|
|
937
|
+
if not UtilClient.is_unset(request.bandwith_package_id):
|
|
938
|
+
query['BandwithPackageId'] = request.bandwith_package_id
|
|
939
|
+
if not UtilClient.is_unset(request.begin_time):
|
|
940
|
+
query['BeginTime'] = request.begin_time
|
|
941
|
+
if not UtilClient.is_unset(request.cen_id):
|
|
942
|
+
query['CenId'] = request.cen_id
|
|
943
|
+
if not UtilClient.is_unset(request.direction):
|
|
944
|
+
query['Direction'] = request.direction
|
|
945
|
+
if not UtilClient.is_unset(request.end_time):
|
|
946
|
+
query['EndTime'] = request.end_time
|
|
947
|
+
if not UtilClient.is_unset(request.group_by):
|
|
948
|
+
query['GroupBy'] = request.group_by
|
|
949
|
+
if not UtilClient.is_unset(request.order_by):
|
|
950
|
+
query['OrderBy'] = request.order_by
|
|
951
|
+
if not UtilClient.is_unset(request.other_ip):
|
|
952
|
+
query['OtherIp'] = request.other_ip
|
|
953
|
+
if not UtilClient.is_unset(request.other_port):
|
|
954
|
+
query['OtherPort'] = request.other_port
|
|
955
|
+
if not UtilClient.is_unset(request.other_region):
|
|
956
|
+
query['OtherRegion'] = request.other_region
|
|
957
|
+
if not UtilClient.is_unset(request.protocol):
|
|
958
|
+
query['Protocol'] = request.protocol
|
|
959
|
+
if not UtilClient.is_unset(request.sort):
|
|
960
|
+
query['Sort'] = request.sort
|
|
961
|
+
if not UtilClient.is_unset(request.this_ip):
|
|
962
|
+
query['ThisIp'] = request.this_ip
|
|
963
|
+
if not UtilClient.is_unset(request.this_port):
|
|
964
|
+
query['ThisPort'] = request.this_port
|
|
965
|
+
if not UtilClient.is_unset(request.this_region):
|
|
966
|
+
query['ThisRegion'] = request.this_region
|
|
967
|
+
if not UtilClient.is_unset(request.top_n):
|
|
968
|
+
query['TopN'] = request.top_n
|
|
969
|
+
if not UtilClient.is_unset(request.use_multi_account):
|
|
970
|
+
query['UseMultiAccount'] = request.use_multi_account
|
|
971
|
+
req = open_api_models.OpenApiRequest(
|
|
972
|
+
query=OpenApiUtilClient.query(query)
|
|
973
|
+
)
|
|
974
|
+
params = open_api_models.Params(
|
|
975
|
+
action='GetTransitRouterFlowTopN',
|
|
976
|
+
version='2021-12-16',
|
|
977
|
+
protocol='HTTPS',
|
|
978
|
+
pathname='/',
|
|
979
|
+
method='POST',
|
|
980
|
+
auth_type='AK',
|
|
981
|
+
style='RPC',
|
|
982
|
+
req_body_type='formData',
|
|
983
|
+
body_type='json'
|
|
984
|
+
)
|
|
985
|
+
return TeaCore.from_map(
|
|
986
|
+
nis_20211216_models.GetTransitRouterFlowTopNResponse(),
|
|
987
|
+
self.call_api(params, req, runtime)
|
|
988
|
+
)
|
|
989
|
+
|
|
990
|
+
async def get_transit_router_flow_top_nwith_options_async(
|
|
991
|
+
self,
|
|
992
|
+
tmp_req: nis_20211216_models.GetTransitRouterFlowTopNRequest,
|
|
993
|
+
runtime: util_models.RuntimeOptions,
|
|
994
|
+
) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
|
|
995
|
+
UtilClient.validate_model(tmp_req)
|
|
996
|
+
request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
|
|
997
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
998
|
+
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
999
|
+
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
1000
|
+
query = {}
|
|
1001
|
+
if not UtilClient.is_unset(request.account_ids_shrink):
|
|
1002
|
+
query['AccountIds'] = request.account_ids_shrink
|
|
1003
|
+
if not UtilClient.is_unset(request.bandwith_package_id):
|
|
1004
|
+
query['BandwithPackageId'] = request.bandwith_package_id
|
|
1005
|
+
if not UtilClient.is_unset(request.begin_time):
|
|
1006
|
+
query['BeginTime'] = request.begin_time
|
|
1007
|
+
if not UtilClient.is_unset(request.cen_id):
|
|
1008
|
+
query['CenId'] = request.cen_id
|
|
1009
|
+
if not UtilClient.is_unset(request.direction):
|
|
1010
|
+
query['Direction'] = request.direction
|
|
1011
|
+
if not UtilClient.is_unset(request.end_time):
|
|
1012
|
+
query['EndTime'] = request.end_time
|
|
1013
|
+
if not UtilClient.is_unset(request.group_by):
|
|
1014
|
+
query['GroupBy'] = request.group_by
|
|
1015
|
+
if not UtilClient.is_unset(request.order_by):
|
|
1016
|
+
query['OrderBy'] = request.order_by
|
|
1017
|
+
if not UtilClient.is_unset(request.other_ip):
|
|
1018
|
+
query['OtherIp'] = request.other_ip
|
|
1019
|
+
if not UtilClient.is_unset(request.other_port):
|
|
1020
|
+
query['OtherPort'] = request.other_port
|
|
1021
|
+
if not UtilClient.is_unset(request.other_region):
|
|
1022
|
+
query['OtherRegion'] = request.other_region
|
|
1023
|
+
if not UtilClient.is_unset(request.protocol):
|
|
1024
|
+
query['Protocol'] = request.protocol
|
|
1025
|
+
if not UtilClient.is_unset(request.sort):
|
|
1026
|
+
query['Sort'] = request.sort
|
|
1027
|
+
if not UtilClient.is_unset(request.this_ip):
|
|
1028
|
+
query['ThisIp'] = request.this_ip
|
|
1029
|
+
if not UtilClient.is_unset(request.this_port):
|
|
1030
|
+
query['ThisPort'] = request.this_port
|
|
1031
|
+
if not UtilClient.is_unset(request.this_region):
|
|
1032
|
+
query['ThisRegion'] = request.this_region
|
|
1033
|
+
if not UtilClient.is_unset(request.top_n):
|
|
1034
|
+
query['TopN'] = request.top_n
|
|
1035
|
+
if not UtilClient.is_unset(request.use_multi_account):
|
|
1036
|
+
query['UseMultiAccount'] = request.use_multi_account
|
|
1037
|
+
req = open_api_models.OpenApiRequest(
|
|
1038
|
+
query=OpenApiUtilClient.query(query)
|
|
1039
|
+
)
|
|
1040
|
+
params = open_api_models.Params(
|
|
1041
|
+
action='GetTransitRouterFlowTopN',
|
|
1042
|
+
version='2021-12-16',
|
|
1043
|
+
protocol='HTTPS',
|
|
1044
|
+
pathname='/',
|
|
1045
|
+
method='POST',
|
|
1046
|
+
auth_type='AK',
|
|
1047
|
+
style='RPC',
|
|
1048
|
+
req_body_type='formData',
|
|
1049
|
+
body_type='json'
|
|
1050
|
+
)
|
|
1051
|
+
return TeaCore.from_map(
|
|
1052
|
+
nis_20211216_models.GetTransitRouterFlowTopNResponse(),
|
|
1053
|
+
await self.call_api_async(params, req, runtime)
|
|
1054
|
+
)
|
|
1055
|
+
|
|
1056
|
+
def get_transit_router_flow_top_n(
|
|
1057
|
+
self,
|
|
1058
|
+
request: nis_20211216_models.GetTransitRouterFlowTopNRequest,
|
|
1059
|
+
) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
|
|
1060
|
+
runtime = util_models.RuntimeOptions()
|
|
1061
|
+
return self.get_transit_router_flow_top_nwith_options(request, runtime)
|
|
1062
|
+
|
|
1063
|
+
async def get_transit_router_flow_top_n_async(
|
|
1064
|
+
self,
|
|
1065
|
+
request: nis_20211216_models.GetTransitRouterFlowTopNRequest,
|
|
1066
|
+
) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
|
|
1067
|
+
runtime = util_models.RuntimeOptions()
|
|
1068
|
+
return await self.get_transit_router_flow_top_nwith_options_async(request, runtime)
|
|
1069
|
+
|
|
1070
|
+
def get_vbr_flow_top_nwith_options(
|
|
1071
|
+
self,
|
|
1072
|
+
tmp_req: nis_20211216_models.GetVbrFlowTopNRequest,
|
|
1073
|
+
runtime: util_models.RuntimeOptions,
|
|
1074
|
+
) -> nis_20211216_models.GetVbrFlowTopNResponse:
|
|
1075
|
+
UtilClient.validate_model(tmp_req)
|
|
1076
|
+
request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
|
|
1077
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1078
|
+
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
1079
|
+
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
1080
|
+
query = {}
|
|
1081
|
+
if not UtilClient.is_unset(request.account_ids_shrink):
|
|
1082
|
+
query['AccountIds'] = request.account_ids_shrink
|
|
1083
|
+
if not UtilClient.is_unset(request.attachment_id):
|
|
1084
|
+
query['AttachmentId'] = request.attachment_id
|
|
1085
|
+
if not UtilClient.is_unset(request.begin_time):
|
|
1086
|
+
query['BeginTime'] = request.begin_time
|
|
1087
|
+
if not UtilClient.is_unset(request.cen_id):
|
|
1088
|
+
query['CenId'] = request.cen_id
|
|
1089
|
+
if not UtilClient.is_unset(request.cloud_ip):
|
|
1090
|
+
query['CloudIp'] = request.cloud_ip
|
|
1091
|
+
if not UtilClient.is_unset(request.cloud_port):
|
|
1092
|
+
query['CloudPort'] = request.cloud_port
|
|
1093
|
+
if not UtilClient.is_unset(request.direction):
|
|
1094
|
+
query['Direction'] = request.direction
|
|
1095
|
+
if not UtilClient.is_unset(request.end_time):
|
|
1096
|
+
query['EndTime'] = request.end_time
|
|
1097
|
+
if not UtilClient.is_unset(request.group_by):
|
|
1098
|
+
query['GroupBy'] = request.group_by
|
|
1099
|
+
if not UtilClient.is_unset(request.order_by):
|
|
1100
|
+
query['OrderBy'] = request.order_by
|
|
1101
|
+
if not UtilClient.is_unset(request.other_ip):
|
|
1102
|
+
query['OtherIp'] = request.other_ip
|
|
1103
|
+
if not UtilClient.is_unset(request.other_port):
|
|
1104
|
+
query['OtherPort'] = request.other_port
|
|
1105
|
+
if not UtilClient.is_unset(request.protocol):
|
|
1106
|
+
query['Protocol'] = request.protocol
|
|
1107
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1108
|
+
query['RegionId'] = request.region_id
|
|
1109
|
+
if not UtilClient.is_unset(request.sort):
|
|
1110
|
+
query['Sort'] = request.sort
|
|
1111
|
+
if not UtilClient.is_unset(request.top_n):
|
|
1112
|
+
query['TopN'] = request.top_n
|
|
1113
|
+
if not UtilClient.is_unset(request.use_multi_account):
|
|
1114
|
+
query['UseMultiAccount'] = request.use_multi_account
|
|
1115
|
+
if not UtilClient.is_unset(request.virtual_border_router_id):
|
|
1116
|
+
query['VirtualBorderRouterId'] = request.virtual_border_router_id
|
|
1117
|
+
req = open_api_models.OpenApiRequest(
|
|
1118
|
+
query=OpenApiUtilClient.query(query)
|
|
1119
|
+
)
|
|
1120
|
+
params = open_api_models.Params(
|
|
1121
|
+
action='GetVbrFlowTopN',
|
|
1122
|
+
version='2021-12-16',
|
|
1123
|
+
protocol='HTTPS',
|
|
1124
|
+
pathname='/',
|
|
1125
|
+
method='POST',
|
|
1126
|
+
auth_type='AK',
|
|
1127
|
+
style='RPC',
|
|
1128
|
+
req_body_type='formData',
|
|
1129
|
+
body_type='json'
|
|
1130
|
+
)
|
|
1131
|
+
return TeaCore.from_map(
|
|
1132
|
+
nis_20211216_models.GetVbrFlowTopNResponse(),
|
|
1133
|
+
self.call_api(params, req, runtime)
|
|
1134
|
+
)
|
|
1135
|
+
|
|
1136
|
+
async def get_vbr_flow_top_nwith_options_async(
|
|
1137
|
+
self,
|
|
1138
|
+
tmp_req: nis_20211216_models.GetVbrFlowTopNRequest,
|
|
1139
|
+
runtime: util_models.RuntimeOptions,
|
|
1140
|
+
) -> nis_20211216_models.GetVbrFlowTopNResponse:
|
|
1141
|
+
UtilClient.validate_model(tmp_req)
|
|
1142
|
+
request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
|
|
1143
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1144
|
+
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
1145
|
+
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
1146
|
+
query = {}
|
|
1147
|
+
if not UtilClient.is_unset(request.account_ids_shrink):
|
|
1148
|
+
query['AccountIds'] = request.account_ids_shrink
|
|
1149
|
+
if not UtilClient.is_unset(request.attachment_id):
|
|
1150
|
+
query['AttachmentId'] = request.attachment_id
|
|
1151
|
+
if not UtilClient.is_unset(request.begin_time):
|
|
1152
|
+
query['BeginTime'] = request.begin_time
|
|
1153
|
+
if not UtilClient.is_unset(request.cen_id):
|
|
1154
|
+
query['CenId'] = request.cen_id
|
|
1155
|
+
if not UtilClient.is_unset(request.cloud_ip):
|
|
1156
|
+
query['CloudIp'] = request.cloud_ip
|
|
1157
|
+
if not UtilClient.is_unset(request.cloud_port):
|
|
1158
|
+
query['CloudPort'] = request.cloud_port
|
|
1159
|
+
if not UtilClient.is_unset(request.direction):
|
|
1160
|
+
query['Direction'] = request.direction
|
|
1161
|
+
if not UtilClient.is_unset(request.end_time):
|
|
1162
|
+
query['EndTime'] = request.end_time
|
|
1163
|
+
if not UtilClient.is_unset(request.group_by):
|
|
1164
|
+
query['GroupBy'] = request.group_by
|
|
1165
|
+
if not UtilClient.is_unset(request.order_by):
|
|
1166
|
+
query['OrderBy'] = request.order_by
|
|
1167
|
+
if not UtilClient.is_unset(request.other_ip):
|
|
1168
|
+
query['OtherIp'] = request.other_ip
|
|
1169
|
+
if not UtilClient.is_unset(request.other_port):
|
|
1170
|
+
query['OtherPort'] = request.other_port
|
|
1171
|
+
if not UtilClient.is_unset(request.protocol):
|
|
1172
|
+
query['Protocol'] = request.protocol
|
|
1173
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1174
|
+
query['RegionId'] = request.region_id
|
|
1175
|
+
if not UtilClient.is_unset(request.sort):
|
|
1176
|
+
query['Sort'] = request.sort
|
|
1177
|
+
if not UtilClient.is_unset(request.top_n):
|
|
1178
|
+
query['TopN'] = request.top_n
|
|
1179
|
+
if not UtilClient.is_unset(request.use_multi_account):
|
|
1180
|
+
query['UseMultiAccount'] = request.use_multi_account
|
|
1181
|
+
if not UtilClient.is_unset(request.virtual_border_router_id):
|
|
1182
|
+
query['VirtualBorderRouterId'] = request.virtual_border_router_id
|
|
1183
|
+
req = open_api_models.OpenApiRequest(
|
|
1184
|
+
query=OpenApiUtilClient.query(query)
|
|
1185
|
+
)
|
|
1186
|
+
params = open_api_models.Params(
|
|
1187
|
+
action='GetVbrFlowTopN',
|
|
1188
|
+
version='2021-12-16',
|
|
1189
|
+
protocol='HTTPS',
|
|
1190
|
+
pathname='/',
|
|
1191
|
+
method='POST',
|
|
1192
|
+
auth_type='AK',
|
|
1193
|
+
style='RPC',
|
|
1194
|
+
req_body_type='formData',
|
|
1195
|
+
body_type='json'
|
|
1196
|
+
)
|
|
1197
|
+
return TeaCore.from_map(
|
|
1198
|
+
nis_20211216_models.GetVbrFlowTopNResponse(),
|
|
1199
|
+
await self.call_api_async(params, req, runtime)
|
|
1200
|
+
)
|
|
1201
|
+
|
|
1202
|
+
def get_vbr_flow_top_n(
|
|
1203
|
+
self,
|
|
1204
|
+
request: nis_20211216_models.GetVbrFlowTopNRequest,
|
|
1205
|
+
) -> nis_20211216_models.GetVbrFlowTopNResponse:
|
|
1206
|
+
runtime = util_models.RuntimeOptions()
|
|
1207
|
+
return self.get_vbr_flow_top_nwith_options(request, runtime)
|
|
1208
|
+
|
|
1209
|
+
async def get_vbr_flow_top_n_async(
|
|
1210
|
+
self,
|
|
1211
|
+
request: nis_20211216_models.GetVbrFlowTopNRequest,
|
|
1212
|
+
) -> nis_20211216_models.GetVbrFlowTopNResponse:
|
|
1213
|
+
runtime = util_models.RuntimeOptions()
|
|
1214
|
+
return await self.get_vbr_flow_top_nwith_options_async(request, runtime)
|