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
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
3
5
|
from typing import Dict
|
|
4
|
-
from Tea.core import TeaCore
|
|
5
6
|
|
|
7
|
+
from alibabacloud_nis20211216 import models as main_models
|
|
8
|
+
from alibabacloud_tea_openapi import utils_models as open_api_util_models
|
|
6
9
|
from alibabacloud_tea_openapi.client import Client as OpenApiClient
|
|
7
|
-
from alibabacloud_tea_openapi import
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from alibabacloud_nis20211216 import models as nis_20211216_models
|
|
11
|
-
from alibabacloud_tea_util import models as util_models
|
|
12
|
-
from alibabacloud_openapi_util.client import Client as OpenApiUtilClient
|
|
13
|
-
|
|
10
|
+
from alibabacloud_tea_openapi.utils import Utils
|
|
11
|
+
from darabonba.core import DaraCore as DaraCore
|
|
12
|
+
from darabonba.runtime import RuntimeOptions
|
|
14
13
|
|
|
14
|
+
"""
|
|
15
|
+
"""
|
|
15
16
|
class Client(OpenApiClient):
|
|
16
|
-
|
|
17
|
-
*\
|
|
18
|
-
"""
|
|
17
|
+
|
|
19
18
|
def __init__(
|
|
20
|
-
self,
|
|
21
|
-
config:
|
|
19
|
+
self,
|
|
20
|
+
config: open_api_util_models.Config,
|
|
22
21
|
):
|
|
23
22
|
super().__init__(config)
|
|
24
23
|
self._endpoint_rule = ''
|
|
@@ -35,2926 +34,2424 @@ class Client(OpenApiClient):
|
|
|
35
34
|
endpoint_map: Dict[str, str],
|
|
36
35
|
endpoint: str,
|
|
37
36
|
) -> str:
|
|
38
|
-
if not
|
|
37
|
+
if not DaraCore.is_null(endpoint):
|
|
39
38
|
return endpoint
|
|
40
|
-
if not
|
|
39
|
+
if not DaraCore.is_null(endpoint_map) and not DaraCore.is_null(endpoint_map.get(region_id)):
|
|
41
40
|
return endpoint_map.get(region_id)
|
|
42
|
-
return
|
|
41
|
+
return Utils.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
|
|
43
42
|
|
|
44
43
|
def create_and_analyze_network_path_with_options(
|
|
45
44
|
self,
|
|
46
|
-
request:
|
|
47
|
-
runtime:
|
|
48
|
-
) ->
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
pathname='/',
|
|
68
|
-
method='GET',
|
|
69
|
-
auth_type='AK',
|
|
70
|
-
style='RPC',
|
|
71
|
-
req_body_type='formData',
|
|
72
|
-
body_type='json'
|
|
73
|
-
)
|
|
74
|
-
return TeaCore.from_map(
|
|
75
|
-
nis_20211216_models.CreateAndAnalyzeNetworkPathResponse(),
|
|
45
|
+
request: main_models.CreateAndAnalyzeNetworkPathRequest,
|
|
46
|
+
runtime: RuntimeOptions,
|
|
47
|
+
) -> main_models.CreateAndAnalyzeNetworkPathResponse:
|
|
48
|
+
request.validate()
|
|
49
|
+
query = Utils.query(request.to_map())
|
|
50
|
+
req = open_api_util_models.OpenApiRequest(
|
|
51
|
+
query = Utils.query(query)
|
|
52
|
+
)
|
|
53
|
+
params = open_api_util_models.Params(
|
|
54
|
+
action = 'CreateAndAnalyzeNetworkPath',
|
|
55
|
+
version = '2021-12-16',
|
|
56
|
+
protocol = 'HTTPS',
|
|
57
|
+
pathname = '/',
|
|
58
|
+
method = 'GET',
|
|
59
|
+
auth_type = 'AK',
|
|
60
|
+
style = 'RPC',
|
|
61
|
+
req_body_type = 'formData',
|
|
62
|
+
body_type = 'json'
|
|
63
|
+
)
|
|
64
|
+
return DaraCore.from_map(
|
|
65
|
+
main_models.CreateAndAnalyzeNetworkPathResponse(),
|
|
76
66
|
self.call_api(params, req, runtime)
|
|
77
67
|
)
|
|
78
68
|
|
|
79
69
|
async def create_and_analyze_network_path_with_options_async(
|
|
80
70
|
self,
|
|
81
|
-
request:
|
|
82
|
-
runtime:
|
|
83
|
-
) ->
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
pathname='/',
|
|
103
|
-
method='GET',
|
|
104
|
-
auth_type='AK',
|
|
105
|
-
style='RPC',
|
|
106
|
-
req_body_type='formData',
|
|
107
|
-
body_type='json'
|
|
108
|
-
)
|
|
109
|
-
return TeaCore.from_map(
|
|
110
|
-
nis_20211216_models.CreateAndAnalyzeNetworkPathResponse(),
|
|
71
|
+
request: main_models.CreateAndAnalyzeNetworkPathRequest,
|
|
72
|
+
runtime: RuntimeOptions,
|
|
73
|
+
) -> main_models.CreateAndAnalyzeNetworkPathResponse:
|
|
74
|
+
request.validate()
|
|
75
|
+
query = Utils.query(request.to_map())
|
|
76
|
+
req = open_api_util_models.OpenApiRequest(
|
|
77
|
+
query = Utils.query(query)
|
|
78
|
+
)
|
|
79
|
+
params = open_api_util_models.Params(
|
|
80
|
+
action = 'CreateAndAnalyzeNetworkPath',
|
|
81
|
+
version = '2021-12-16',
|
|
82
|
+
protocol = 'HTTPS',
|
|
83
|
+
pathname = '/',
|
|
84
|
+
method = 'GET',
|
|
85
|
+
auth_type = 'AK',
|
|
86
|
+
style = 'RPC',
|
|
87
|
+
req_body_type = 'formData',
|
|
88
|
+
body_type = 'json'
|
|
89
|
+
)
|
|
90
|
+
return DaraCore.from_map(
|
|
91
|
+
main_models.CreateAndAnalyzeNetworkPathResponse(),
|
|
111
92
|
await self.call_api_async(params, req, runtime)
|
|
112
93
|
)
|
|
113
94
|
|
|
114
95
|
def create_and_analyze_network_path(
|
|
115
96
|
self,
|
|
116
|
-
request:
|
|
117
|
-
) ->
|
|
118
|
-
|
|
119
|
-
@summary Initiates a task for analyzing network reachability.
|
|
120
|
-
|
|
121
|
-
@description You can call this operation to initiate a task for analyzing network reachability by specifying only the information about the source and destination. You do not need to create a network path for reachability analysis. The analysis result is not recorded in the system. If you want to record the path parameters and analysis result in the Network Intelligence Service (NIS) console, we recommend that you call the *createNetworkReachableAnalysis** operation.
|
|
122
|
-
|
|
123
|
-
@param request: CreateAndAnalyzeNetworkPathRequest
|
|
124
|
-
@return: CreateAndAnalyzeNetworkPathResponse
|
|
125
|
-
"""
|
|
126
|
-
runtime = util_models.RuntimeOptions()
|
|
97
|
+
request: main_models.CreateAndAnalyzeNetworkPathRequest,
|
|
98
|
+
) -> main_models.CreateAndAnalyzeNetworkPathResponse:
|
|
99
|
+
runtime = RuntimeOptions()
|
|
127
100
|
return self.create_and_analyze_network_path_with_options(request, runtime)
|
|
128
101
|
|
|
129
102
|
async def create_and_analyze_network_path_async(
|
|
130
103
|
self,
|
|
131
|
-
request:
|
|
132
|
-
) ->
|
|
133
|
-
|
|
134
|
-
@summary Initiates a task for analyzing network reachability.
|
|
135
|
-
|
|
136
|
-
@description You can call this operation to initiate a task for analyzing network reachability by specifying only the information about the source and destination. You do not need to create a network path for reachability analysis. The analysis result is not recorded in the system. If you want to record the path parameters and analysis result in the Network Intelligence Service (NIS) console, we recommend that you call the *createNetworkReachableAnalysis** operation.
|
|
137
|
-
|
|
138
|
-
@param request: CreateAndAnalyzeNetworkPathRequest
|
|
139
|
-
@return: CreateAndAnalyzeNetworkPathResponse
|
|
140
|
-
"""
|
|
141
|
-
runtime = util_models.RuntimeOptions()
|
|
104
|
+
request: main_models.CreateAndAnalyzeNetworkPathRequest,
|
|
105
|
+
) -> main_models.CreateAndAnalyzeNetworkPathResponse:
|
|
106
|
+
runtime = RuntimeOptions()
|
|
142
107
|
return await self.create_and_analyze_network_path_with_options_async(request, runtime)
|
|
143
108
|
|
|
144
109
|
def create_network_path_with_options(
|
|
145
110
|
self,
|
|
146
|
-
request:
|
|
147
|
-
runtime:
|
|
148
|
-
) ->
|
|
149
|
-
|
|
150
|
-
@summary Creates a network path in the cloud for reachability analysis.
|
|
151
|
-
|
|
152
|
-
@description You can call the **CreateNetworkPath** operation to create network paths in multiple networking scenarios and between multiple resources. After a path is created, the path parameters are saved for repeated analysis.
|
|
153
|
-
You can create up to 100 network paths within one Alibaba Cloud account.
|
|
154
|
-
|
|
155
|
-
@param request: CreateNetworkPathRequest
|
|
156
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
157
|
-
@return: CreateNetworkPathResponse
|
|
158
|
-
"""
|
|
159
|
-
UtilClient.validate_model(request)
|
|
111
|
+
request: main_models.CreateNetworkPathRequest,
|
|
112
|
+
runtime: RuntimeOptions,
|
|
113
|
+
) -> main_models.CreateNetworkPathResponse:
|
|
114
|
+
request.validate()
|
|
160
115
|
query = {}
|
|
161
|
-
if not
|
|
116
|
+
if not DaraCore.is_null(request.network_path_description):
|
|
162
117
|
query['NetworkPathDescription'] = request.network_path_description
|
|
163
|
-
if not
|
|
118
|
+
if not DaraCore.is_null(request.network_path_name):
|
|
164
119
|
query['NetworkPathName'] = request.network_path_name
|
|
165
|
-
if not
|
|
120
|
+
if not DaraCore.is_null(request.protocol):
|
|
166
121
|
query['Protocol'] = request.protocol
|
|
167
|
-
if not
|
|
122
|
+
if not DaraCore.is_null(request.region_id):
|
|
168
123
|
query['RegionId'] = request.region_id
|
|
169
|
-
if not
|
|
124
|
+
if not DaraCore.is_null(request.resource_group_id):
|
|
170
125
|
query['ResourceGroupId'] = request.resource_group_id
|
|
171
|
-
if not
|
|
126
|
+
if not DaraCore.is_null(request.source_id):
|
|
172
127
|
query['SourceId'] = request.source_id
|
|
173
|
-
if not
|
|
128
|
+
if not DaraCore.is_null(request.source_ip_address):
|
|
174
129
|
query['SourceIpAddress'] = request.source_ip_address
|
|
175
|
-
if not
|
|
130
|
+
if not DaraCore.is_null(request.source_port):
|
|
176
131
|
query['SourcePort'] = request.source_port
|
|
177
|
-
if not
|
|
132
|
+
if not DaraCore.is_null(request.source_type):
|
|
178
133
|
query['SourceType'] = request.source_type
|
|
179
|
-
if not
|
|
134
|
+
if not DaraCore.is_null(request.tag):
|
|
180
135
|
query['Tag'] = request.tag
|
|
181
|
-
if not
|
|
136
|
+
if not DaraCore.is_null(request.target_id):
|
|
182
137
|
query['TargetId'] = request.target_id
|
|
183
|
-
if not
|
|
138
|
+
if not DaraCore.is_null(request.target_ip_address):
|
|
184
139
|
query['TargetIpAddress'] = request.target_ip_address
|
|
185
|
-
if not
|
|
140
|
+
if not DaraCore.is_null(request.target_port):
|
|
186
141
|
query['TargetPort'] = request.target_port
|
|
187
|
-
if not
|
|
142
|
+
if not DaraCore.is_null(request.target_type):
|
|
188
143
|
query['TargetType'] = request.target_type
|
|
189
|
-
req =
|
|
190
|
-
query=
|
|
191
|
-
)
|
|
192
|
-
params =
|
|
193
|
-
action='CreateNetworkPath',
|
|
194
|
-
version='2021-12-16',
|
|
195
|
-
protocol='HTTPS',
|
|
196
|
-
pathname='/',
|
|
197
|
-
method='POST',
|
|
198
|
-
auth_type='AK',
|
|
199
|
-
style='RPC',
|
|
200
|
-
req_body_type='formData',
|
|
201
|
-
body_type='json'
|
|
202
|
-
)
|
|
203
|
-
return
|
|
204
|
-
|
|
144
|
+
req = open_api_util_models.OpenApiRequest(
|
|
145
|
+
query = Utils.query(query)
|
|
146
|
+
)
|
|
147
|
+
params = open_api_util_models.Params(
|
|
148
|
+
action = 'CreateNetworkPath',
|
|
149
|
+
version = '2021-12-16',
|
|
150
|
+
protocol = 'HTTPS',
|
|
151
|
+
pathname = '/',
|
|
152
|
+
method = 'POST',
|
|
153
|
+
auth_type = 'AK',
|
|
154
|
+
style = 'RPC',
|
|
155
|
+
req_body_type = 'formData',
|
|
156
|
+
body_type = 'json'
|
|
157
|
+
)
|
|
158
|
+
return DaraCore.from_map(
|
|
159
|
+
main_models.CreateNetworkPathResponse(),
|
|
205
160
|
self.call_api(params, req, runtime)
|
|
206
161
|
)
|
|
207
162
|
|
|
208
163
|
async def create_network_path_with_options_async(
|
|
209
164
|
self,
|
|
210
|
-
request:
|
|
211
|
-
runtime:
|
|
212
|
-
) ->
|
|
213
|
-
|
|
214
|
-
@summary Creates a network path in the cloud for reachability analysis.
|
|
215
|
-
|
|
216
|
-
@description You can call the **CreateNetworkPath** operation to create network paths in multiple networking scenarios and between multiple resources. After a path is created, the path parameters are saved for repeated analysis.
|
|
217
|
-
You can create up to 100 network paths within one Alibaba Cloud account.
|
|
218
|
-
|
|
219
|
-
@param request: CreateNetworkPathRequest
|
|
220
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
221
|
-
@return: CreateNetworkPathResponse
|
|
222
|
-
"""
|
|
223
|
-
UtilClient.validate_model(request)
|
|
165
|
+
request: main_models.CreateNetworkPathRequest,
|
|
166
|
+
runtime: RuntimeOptions,
|
|
167
|
+
) -> main_models.CreateNetworkPathResponse:
|
|
168
|
+
request.validate()
|
|
224
169
|
query = {}
|
|
225
|
-
if not
|
|
170
|
+
if not DaraCore.is_null(request.network_path_description):
|
|
226
171
|
query['NetworkPathDescription'] = request.network_path_description
|
|
227
|
-
if not
|
|
172
|
+
if not DaraCore.is_null(request.network_path_name):
|
|
228
173
|
query['NetworkPathName'] = request.network_path_name
|
|
229
|
-
if not
|
|
174
|
+
if not DaraCore.is_null(request.protocol):
|
|
230
175
|
query['Protocol'] = request.protocol
|
|
231
|
-
if not
|
|
176
|
+
if not DaraCore.is_null(request.region_id):
|
|
232
177
|
query['RegionId'] = request.region_id
|
|
233
|
-
if not
|
|
178
|
+
if not DaraCore.is_null(request.resource_group_id):
|
|
234
179
|
query['ResourceGroupId'] = request.resource_group_id
|
|
235
|
-
if not
|
|
180
|
+
if not DaraCore.is_null(request.source_id):
|
|
236
181
|
query['SourceId'] = request.source_id
|
|
237
|
-
if not
|
|
182
|
+
if not DaraCore.is_null(request.source_ip_address):
|
|
238
183
|
query['SourceIpAddress'] = request.source_ip_address
|
|
239
|
-
if not
|
|
184
|
+
if not DaraCore.is_null(request.source_port):
|
|
240
185
|
query['SourcePort'] = request.source_port
|
|
241
|
-
if not
|
|
186
|
+
if not DaraCore.is_null(request.source_type):
|
|
242
187
|
query['SourceType'] = request.source_type
|
|
243
|
-
if not
|
|
188
|
+
if not DaraCore.is_null(request.tag):
|
|
244
189
|
query['Tag'] = request.tag
|
|
245
|
-
if not
|
|
190
|
+
if not DaraCore.is_null(request.target_id):
|
|
246
191
|
query['TargetId'] = request.target_id
|
|
247
|
-
if not
|
|
192
|
+
if not DaraCore.is_null(request.target_ip_address):
|
|
248
193
|
query['TargetIpAddress'] = request.target_ip_address
|
|
249
|
-
if not
|
|
194
|
+
if not DaraCore.is_null(request.target_port):
|
|
250
195
|
query['TargetPort'] = request.target_port
|
|
251
|
-
if not
|
|
196
|
+
if not DaraCore.is_null(request.target_type):
|
|
252
197
|
query['TargetType'] = request.target_type
|
|
253
|
-
req =
|
|
254
|
-
query=
|
|
255
|
-
)
|
|
256
|
-
params =
|
|
257
|
-
action='CreateNetworkPath',
|
|
258
|
-
version='2021-12-16',
|
|
259
|
-
protocol='HTTPS',
|
|
260
|
-
pathname='/',
|
|
261
|
-
method='POST',
|
|
262
|
-
auth_type='AK',
|
|
263
|
-
style='RPC',
|
|
264
|
-
req_body_type='formData',
|
|
265
|
-
body_type='json'
|
|
266
|
-
)
|
|
267
|
-
return
|
|
268
|
-
|
|
198
|
+
req = open_api_util_models.OpenApiRequest(
|
|
199
|
+
query = Utils.query(query)
|
|
200
|
+
)
|
|
201
|
+
params = open_api_util_models.Params(
|
|
202
|
+
action = 'CreateNetworkPath',
|
|
203
|
+
version = '2021-12-16',
|
|
204
|
+
protocol = 'HTTPS',
|
|
205
|
+
pathname = '/',
|
|
206
|
+
method = 'POST',
|
|
207
|
+
auth_type = 'AK',
|
|
208
|
+
style = 'RPC',
|
|
209
|
+
req_body_type = 'formData',
|
|
210
|
+
body_type = 'json'
|
|
211
|
+
)
|
|
212
|
+
return DaraCore.from_map(
|
|
213
|
+
main_models.CreateNetworkPathResponse(),
|
|
269
214
|
await self.call_api_async(params, req, runtime)
|
|
270
215
|
)
|
|
271
216
|
|
|
272
217
|
def create_network_path(
|
|
273
218
|
self,
|
|
274
|
-
request:
|
|
275
|
-
) ->
|
|
276
|
-
|
|
277
|
-
@summary Creates a network path in the cloud for reachability analysis.
|
|
278
|
-
|
|
279
|
-
@description You can call the **CreateNetworkPath** operation to create network paths in multiple networking scenarios and between multiple resources. After a path is created, the path parameters are saved for repeated analysis.
|
|
280
|
-
You can create up to 100 network paths within one Alibaba Cloud account.
|
|
281
|
-
|
|
282
|
-
@param request: CreateNetworkPathRequest
|
|
283
|
-
@return: CreateNetworkPathResponse
|
|
284
|
-
"""
|
|
285
|
-
runtime = util_models.RuntimeOptions()
|
|
219
|
+
request: main_models.CreateNetworkPathRequest,
|
|
220
|
+
) -> main_models.CreateNetworkPathResponse:
|
|
221
|
+
runtime = RuntimeOptions()
|
|
286
222
|
return self.create_network_path_with_options(request, runtime)
|
|
287
223
|
|
|
288
224
|
async def create_network_path_async(
|
|
289
225
|
self,
|
|
290
|
-
request:
|
|
291
|
-
) ->
|
|
292
|
-
|
|
293
|
-
@summary Creates a network path in the cloud for reachability analysis.
|
|
294
|
-
|
|
295
|
-
@description You can call the **CreateNetworkPath** operation to create network paths in multiple networking scenarios and between multiple resources. After a path is created, the path parameters are saved for repeated analysis.
|
|
296
|
-
You can create up to 100 network paths within one Alibaba Cloud account.
|
|
297
|
-
|
|
298
|
-
@param request: CreateNetworkPathRequest
|
|
299
|
-
@return: CreateNetworkPathResponse
|
|
300
|
-
"""
|
|
301
|
-
runtime = util_models.RuntimeOptions()
|
|
226
|
+
request: main_models.CreateNetworkPathRequest,
|
|
227
|
+
) -> main_models.CreateNetworkPathResponse:
|
|
228
|
+
runtime = RuntimeOptions()
|
|
302
229
|
return await self.create_network_path_with_options_async(request, runtime)
|
|
303
230
|
|
|
304
231
|
def create_network_reachable_analysis_with_options(
|
|
305
232
|
self,
|
|
306
|
-
request:
|
|
307
|
-
runtime:
|
|
308
|
-
) ->
|
|
309
|
-
|
|
310
|
-
@summary Creates a task for analyzing network reachability.
|
|
311
|
-
|
|
312
|
-
@description The **CreateNetworkReachableAnalysis** operation is used to create a task for analyzing the reachability of the network path that is created by calling the **CreateNetworkPath** operation and record the analysis results.
|
|
313
|
-
The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
|
|
314
|
-
You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
|
|
315
|
-
|
|
316
|
-
@param request: CreateNetworkReachableAnalysisRequest
|
|
317
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
318
|
-
@return: CreateNetworkReachableAnalysisResponse
|
|
319
|
-
"""
|
|
320
|
-
UtilClient.validate_model(request)
|
|
233
|
+
request: main_models.CreateNetworkReachableAnalysisRequest,
|
|
234
|
+
runtime: RuntimeOptions,
|
|
235
|
+
) -> main_models.CreateNetworkReachableAnalysisResponse:
|
|
236
|
+
request.validate()
|
|
321
237
|
query = {}
|
|
322
|
-
if not
|
|
238
|
+
if not DaraCore.is_null(request.network_path_id):
|
|
323
239
|
query['NetworkPathId'] = request.network_path_id
|
|
324
|
-
if not
|
|
240
|
+
if not DaraCore.is_null(request.region_id):
|
|
325
241
|
query['RegionId'] = request.region_id
|
|
326
|
-
if not
|
|
242
|
+
if not DaraCore.is_null(request.tag):
|
|
327
243
|
query['Tag'] = request.tag
|
|
328
|
-
req =
|
|
329
|
-
query=
|
|
330
|
-
)
|
|
331
|
-
params =
|
|
332
|
-
action='CreateNetworkReachableAnalysis',
|
|
333
|
-
version='2021-12-16',
|
|
334
|
-
protocol='HTTPS',
|
|
335
|
-
pathname='/',
|
|
336
|
-
method='POST',
|
|
337
|
-
auth_type='AK',
|
|
338
|
-
style='RPC',
|
|
339
|
-
req_body_type='formData',
|
|
340
|
-
body_type='json'
|
|
341
|
-
)
|
|
342
|
-
return
|
|
343
|
-
|
|
244
|
+
req = open_api_util_models.OpenApiRequest(
|
|
245
|
+
query = Utils.query(query)
|
|
246
|
+
)
|
|
247
|
+
params = open_api_util_models.Params(
|
|
248
|
+
action = 'CreateNetworkReachableAnalysis',
|
|
249
|
+
version = '2021-12-16',
|
|
250
|
+
protocol = 'HTTPS',
|
|
251
|
+
pathname = '/',
|
|
252
|
+
method = 'POST',
|
|
253
|
+
auth_type = 'AK',
|
|
254
|
+
style = 'RPC',
|
|
255
|
+
req_body_type = 'formData',
|
|
256
|
+
body_type = 'json'
|
|
257
|
+
)
|
|
258
|
+
return DaraCore.from_map(
|
|
259
|
+
main_models.CreateNetworkReachableAnalysisResponse(),
|
|
344
260
|
self.call_api(params, req, runtime)
|
|
345
261
|
)
|
|
346
262
|
|
|
347
263
|
async def create_network_reachable_analysis_with_options_async(
|
|
348
264
|
self,
|
|
349
|
-
request:
|
|
350
|
-
runtime:
|
|
351
|
-
) ->
|
|
352
|
-
|
|
353
|
-
@summary Creates a task for analyzing network reachability.
|
|
354
|
-
|
|
355
|
-
@description The **CreateNetworkReachableAnalysis** operation is used to create a task for analyzing the reachability of the network path that is created by calling the **CreateNetworkPath** operation and record the analysis results.
|
|
356
|
-
The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
|
|
357
|
-
You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
|
|
358
|
-
|
|
359
|
-
@param request: CreateNetworkReachableAnalysisRequest
|
|
360
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
361
|
-
@return: CreateNetworkReachableAnalysisResponse
|
|
362
|
-
"""
|
|
363
|
-
UtilClient.validate_model(request)
|
|
265
|
+
request: main_models.CreateNetworkReachableAnalysisRequest,
|
|
266
|
+
runtime: RuntimeOptions,
|
|
267
|
+
) -> main_models.CreateNetworkReachableAnalysisResponse:
|
|
268
|
+
request.validate()
|
|
364
269
|
query = {}
|
|
365
|
-
if not
|
|
270
|
+
if not DaraCore.is_null(request.network_path_id):
|
|
366
271
|
query['NetworkPathId'] = request.network_path_id
|
|
367
|
-
if not
|
|
272
|
+
if not DaraCore.is_null(request.region_id):
|
|
368
273
|
query['RegionId'] = request.region_id
|
|
369
|
-
if not
|
|
274
|
+
if not DaraCore.is_null(request.tag):
|
|
370
275
|
query['Tag'] = request.tag
|
|
371
|
-
req =
|
|
372
|
-
query=
|
|
373
|
-
)
|
|
374
|
-
params =
|
|
375
|
-
action='CreateNetworkReachableAnalysis',
|
|
376
|
-
version='2021-12-16',
|
|
377
|
-
protocol='HTTPS',
|
|
378
|
-
pathname='/',
|
|
379
|
-
method='POST',
|
|
380
|
-
auth_type='AK',
|
|
381
|
-
style='RPC',
|
|
382
|
-
req_body_type='formData',
|
|
383
|
-
body_type='json'
|
|
384
|
-
)
|
|
385
|
-
return
|
|
386
|
-
|
|
276
|
+
req = open_api_util_models.OpenApiRequest(
|
|
277
|
+
query = Utils.query(query)
|
|
278
|
+
)
|
|
279
|
+
params = open_api_util_models.Params(
|
|
280
|
+
action = 'CreateNetworkReachableAnalysis',
|
|
281
|
+
version = '2021-12-16',
|
|
282
|
+
protocol = 'HTTPS',
|
|
283
|
+
pathname = '/',
|
|
284
|
+
method = 'POST',
|
|
285
|
+
auth_type = 'AK',
|
|
286
|
+
style = 'RPC',
|
|
287
|
+
req_body_type = 'formData',
|
|
288
|
+
body_type = 'json'
|
|
289
|
+
)
|
|
290
|
+
return DaraCore.from_map(
|
|
291
|
+
main_models.CreateNetworkReachableAnalysisResponse(),
|
|
387
292
|
await self.call_api_async(params, req, runtime)
|
|
388
293
|
)
|
|
389
294
|
|
|
390
295
|
def create_network_reachable_analysis(
|
|
391
296
|
self,
|
|
392
|
-
request:
|
|
393
|
-
) ->
|
|
394
|
-
|
|
395
|
-
@summary Creates a task for analyzing network reachability.
|
|
396
|
-
|
|
397
|
-
@description The **CreateNetworkReachableAnalysis** operation is used to create a task for analyzing the reachability of the network path that is created by calling the **CreateNetworkPath** operation and record the analysis results.
|
|
398
|
-
The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
|
|
399
|
-
You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
|
|
400
|
-
|
|
401
|
-
@param request: CreateNetworkReachableAnalysisRequest
|
|
402
|
-
@return: CreateNetworkReachableAnalysisResponse
|
|
403
|
-
"""
|
|
404
|
-
runtime = util_models.RuntimeOptions()
|
|
297
|
+
request: main_models.CreateNetworkReachableAnalysisRequest,
|
|
298
|
+
) -> main_models.CreateNetworkReachableAnalysisResponse:
|
|
299
|
+
runtime = RuntimeOptions()
|
|
405
300
|
return self.create_network_reachable_analysis_with_options(request, runtime)
|
|
406
301
|
|
|
407
302
|
async def create_network_reachable_analysis_async(
|
|
408
303
|
self,
|
|
409
|
-
request:
|
|
410
|
-
) ->
|
|
411
|
-
|
|
412
|
-
@summary Creates a task for analyzing network reachability.
|
|
413
|
-
|
|
414
|
-
@description The **CreateNetworkReachableAnalysis** operation is used to create a task for analyzing the reachability of the network path that is created by calling the **CreateNetworkPath** operation and record the analysis results.
|
|
415
|
-
The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
|
|
416
|
-
You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
|
|
417
|
-
|
|
418
|
-
@param request: CreateNetworkReachableAnalysisRequest
|
|
419
|
-
@return: CreateNetworkReachableAnalysisResponse
|
|
420
|
-
"""
|
|
421
|
-
runtime = util_models.RuntimeOptions()
|
|
304
|
+
request: main_models.CreateNetworkReachableAnalysisRequest,
|
|
305
|
+
) -> main_models.CreateNetworkReachableAnalysisResponse:
|
|
306
|
+
runtime = RuntimeOptions()
|
|
422
307
|
return await self.create_network_reachable_analysis_with_options_async(request, runtime)
|
|
423
308
|
|
|
424
309
|
def delete_network_path_with_options(
|
|
425
310
|
self,
|
|
426
|
-
tmp_req:
|
|
427
|
-
runtime:
|
|
428
|
-
) ->
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
@return: DeleteNetworkPathResponse
|
|
435
|
-
"""
|
|
436
|
-
UtilClient.validate_model(tmp_req)
|
|
437
|
-
request = nis_20211216_models.DeleteNetworkPathShrinkRequest()
|
|
438
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
439
|
-
if not UtilClient.is_unset(tmp_req.network_path_ids):
|
|
440
|
-
request.network_path_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.network_path_ids, 'NetworkPathIds', 'json')
|
|
311
|
+
tmp_req: main_models.DeleteNetworkPathRequest,
|
|
312
|
+
runtime: RuntimeOptions,
|
|
313
|
+
) -> main_models.DeleteNetworkPathResponse:
|
|
314
|
+
tmp_req.validate()
|
|
315
|
+
request = main_models.DeleteNetworkPathShrinkRequest()
|
|
316
|
+
Utils.convert(tmp_req, request)
|
|
317
|
+
if not DaraCore.is_null(tmp_req.network_path_ids):
|
|
318
|
+
request.network_path_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.network_path_ids, 'NetworkPathIds', 'json')
|
|
441
319
|
query = {}
|
|
442
|
-
if not
|
|
320
|
+
if not DaraCore.is_null(request.network_path_ids_shrink):
|
|
443
321
|
query['NetworkPathIds'] = request.network_path_ids_shrink
|
|
444
|
-
if not
|
|
322
|
+
if not DaraCore.is_null(request.region_id):
|
|
445
323
|
query['RegionId'] = request.region_id
|
|
446
|
-
req =
|
|
447
|
-
query=
|
|
448
|
-
)
|
|
449
|
-
params =
|
|
450
|
-
action='DeleteNetworkPath',
|
|
451
|
-
version='2021-12-16',
|
|
452
|
-
protocol='HTTPS',
|
|
453
|
-
pathname='/',
|
|
454
|
-
method='POST',
|
|
455
|
-
auth_type='AK',
|
|
456
|
-
style='RPC',
|
|
457
|
-
req_body_type='formData',
|
|
458
|
-
body_type='json'
|
|
459
|
-
)
|
|
460
|
-
return
|
|
461
|
-
|
|
324
|
+
req = open_api_util_models.OpenApiRequest(
|
|
325
|
+
query = Utils.query(query)
|
|
326
|
+
)
|
|
327
|
+
params = open_api_util_models.Params(
|
|
328
|
+
action = 'DeleteNetworkPath',
|
|
329
|
+
version = '2021-12-16',
|
|
330
|
+
protocol = 'HTTPS',
|
|
331
|
+
pathname = '/',
|
|
332
|
+
method = 'POST',
|
|
333
|
+
auth_type = 'AK',
|
|
334
|
+
style = 'RPC',
|
|
335
|
+
req_body_type = 'formData',
|
|
336
|
+
body_type = 'json'
|
|
337
|
+
)
|
|
338
|
+
return DaraCore.from_map(
|
|
339
|
+
main_models.DeleteNetworkPathResponse(),
|
|
462
340
|
self.call_api(params, req, runtime)
|
|
463
341
|
)
|
|
464
342
|
|
|
465
343
|
async def delete_network_path_with_options_async(
|
|
466
344
|
self,
|
|
467
|
-
tmp_req:
|
|
468
|
-
runtime:
|
|
469
|
-
) ->
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
@return: DeleteNetworkPathResponse
|
|
476
|
-
"""
|
|
477
|
-
UtilClient.validate_model(tmp_req)
|
|
478
|
-
request = nis_20211216_models.DeleteNetworkPathShrinkRequest()
|
|
479
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
480
|
-
if not UtilClient.is_unset(tmp_req.network_path_ids):
|
|
481
|
-
request.network_path_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.network_path_ids, 'NetworkPathIds', 'json')
|
|
345
|
+
tmp_req: main_models.DeleteNetworkPathRequest,
|
|
346
|
+
runtime: RuntimeOptions,
|
|
347
|
+
) -> main_models.DeleteNetworkPathResponse:
|
|
348
|
+
tmp_req.validate()
|
|
349
|
+
request = main_models.DeleteNetworkPathShrinkRequest()
|
|
350
|
+
Utils.convert(tmp_req, request)
|
|
351
|
+
if not DaraCore.is_null(tmp_req.network_path_ids):
|
|
352
|
+
request.network_path_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.network_path_ids, 'NetworkPathIds', 'json')
|
|
482
353
|
query = {}
|
|
483
|
-
if not
|
|
354
|
+
if not DaraCore.is_null(request.network_path_ids_shrink):
|
|
484
355
|
query['NetworkPathIds'] = request.network_path_ids_shrink
|
|
485
|
-
if not
|
|
356
|
+
if not DaraCore.is_null(request.region_id):
|
|
486
357
|
query['RegionId'] = request.region_id
|
|
487
|
-
req =
|
|
488
|
-
query=
|
|
489
|
-
)
|
|
490
|
-
params =
|
|
491
|
-
action='DeleteNetworkPath',
|
|
492
|
-
version='2021-12-16',
|
|
493
|
-
protocol='HTTPS',
|
|
494
|
-
pathname='/',
|
|
495
|
-
method='POST',
|
|
496
|
-
auth_type='AK',
|
|
497
|
-
style='RPC',
|
|
498
|
-
req_body_type='formData',
|
|
499
|
-
body_type='json'
|
|
500
|
-
)
|
|
501
|
-
return
|
|
502
|
-
|
|
358
|
+
req = open_api_util_models.OpenApiRequest(
|
|
359
|
+
query = Utils.query(query)
|
|
360
|
+
)
|
|
361
|
+
params = open_api_util_models.Params(
|
|
362
|
+
action = 'DeleteNetworkPath',
|
|
363
|
+
version = '2021-12-16',
|
|
364
|
+
protocol = 'HTTPS',
|
|
365
|
+
pathname = '/',
|
|
366
|
+
method = 'POST',
|
|
367
|
+
auth_type = 'AK',
|
|
368
|
+
style = 'RPC',
|
|
369
|
+
req_body_type = 'formData',
|
|
370
|
+
body_type = 'json'
|
|
371
|
+
)
|
|
372
|
+
return DaraCore.from_map(
|
|
373
|
+
main_models.DeleteNetworkPathResponse(),
|
|
503
374
|
await self.call_api_async(params, req, runtime)
|
|
504
375
|
)
|
|
505
376
|
|
|
506
377
|
def delete_network_path(
|
|
507
378
|
self,
|
|
508
|
-
request:
|
|
509
|
-
) ->
|
|
510
|
-
|
|
511
|
-
@summary Deletes a network path.
|
|
512
|
-
|
|
513
|
-
@param request: DeleteNetworkPathRequest
|
|
514
|
-
@return: DeleteNetworkPathResponse
|
|
515
|
-
"""
|
|
516
|
-
runtime = util_models.RuntimeOptions()
|
|
379
|
+
request: main_models.DeleteNetworkPathRequest,
|
|
380
|
+
) -> main_models.DeleteNetworkPathResponse:
|
|
381
|
+
runtime = RuntimeOptions()
|
|
517
382
|
return self.delete_network_path_with_options(request, runtime)
|
|
518
383
|
|
|
519
384
|
async def delete_network_path_async(
|
|
520
385
|
self,
|
|
521
|
-
request:
|
|
522
|
-
) ->
|
|
523
|
-
|
|
524
|
-
@summary Deletes a network path.
|
|
525
|
-
|
|
526
|
-
@param request: DeleteNetworkPathRequest
|
|
527
|
-
@return: DeleteNetworkPathResponse
|
|
528
|
-
"""
|
|
529
|
-
runtime = util_models.RuntimeOptions()
|
|
386
|
+
request: main_models.DeleteNetworkPathRequest,
|
|
387
|
+
) -> main_models.DeleteNetworkPathResponse:
|
|
388
|
+
runtime = RuntimeOptions()
|
|
530
389
|
return await self.delete_network_path_with_options_async(request, runtime)
|
|
531
390
|
|
|
532
391
|
def delete_network_reachable_analysis_with_options(
|
|
533
392
|
self,
|
|
534
|
-
tmp_req:
|
|
535
|
-
runtime:
|
|
536
|
-
) ->
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
@return: DeleteNetworkReachableAnalysisResponse
|
|
543
|
-
"""
|
|
544
|
-
UtilClient.validate_model(tmp_req)
|
|
545
|
-
request = nis_20211216_models.DeleteNetworkReachableAnalysisShrinkRequest()
|
|
546
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
547
|
-
if not UtilClient.is_unset(tmp_req.network_reachable_analysis_ids):
|
|
548
|
-
request.network_reachable_analysis_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.network_reachable_analysis_ids, 'NetworkReachableAnalysisIds', 'json')
|
|
393
|
+
tmp_req: main_models.DeleteNetworkReachableAnalysisRequest,
|
|
394
|
+
runtime: RuntimeOptions,
|
|
395
|
+
) -> main_models.DeleteNetworkReachableAnalysisResponse:
|
|
396
|
+
tmp_req.validate()
|
|
397
|
+
request = main_models.DeleteNetworkReachableAnalysisShrinkRequest()
|
|
398
|
+
Utils.convert(tmp_req, request)
|
|
399
|
+
if not DaraCore.is_null(tmp_req.network_reachable_analysis_ids):
|
|
400
|
+
request.network_reachable_analysis_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.network_reachable_analysis_ids, 'NetworkReachableAnalysisIds', 'json')
|
|
549
401
|
query = {}
|
|
550
|
-
if not
|
|
402
|
+
if not DaraCore.is_null(request.network_reachable_analysis_ids_shrink):
|
|
551
403
|
query['NetworkReachableAnalysisIds'] = request.network_reachable_analysis_ids_shrink
|
|
552
|
-
if not
|
|
404
|
+
if not DaraCore.is_null(request.region_id):
|
|
553
405
|
query['RegionId'] = request.region_id
|
|
554
|
-
req =
|
|
555
|
-
query=
|
|
556
|
-
)
|
|
557
|
-
params =
|
|
558
|
-
action='DeleteNetworkReachableAnalysis',
|
|
559
|
-
version='2021-12-16',
|
|
560
|
-
protocol='HTTPS',
|
|
561
|
-
pathname='/',
|
|
562
|
-
method='POST',
|
|
563
|
-
auth_type='AK',
|
|
564
|
-
style='RPC',
|
|
565
|
-
req_body_type='formData',
|
|
566
|
-
body_type='json'
|
|
567
|
-
)
|
|
568
|
-
return
|
|
569
|
-
|
|
406
|
+
req = open_api_util_models.OpenApiRequest(
|
|
407
|
+
query = Utils.query(query)
|
|
408
|
+
)
|
|
409
|
+
params = open_api_util_models.Params(
|
|
410
|
+
action = 'DeleteNetworkReachableAnalysis',
|
|
411
|
+
version = '2021-12-16',
|
|
412
|
+
protocol = 'HTTPS',
|
|
413
|
+
pathname = '/',
|
|
414
|
+
method = 'POST',
|
|
415
|
+
auth_type = 'AK',
|
|
416
|
+
style = 'RPC',
|
|
417
|
+
req_body_type = 'formData',
|
|
418
|
+
body_type = 'json'
|
|
419
|
+
)
|
|
420
|
+
return DaraCore.from_map(
|
|
421
|
+
main_models.DeleteNetworkReachableAnalysisResponse(),
|
|
570
422
|
self.call_api(params, req, runtime)
|
|
571
423
|
)
|
|
572
424
|
|
|
573
425
|
async def delete_network_reachable_analysis_with_options_async(
|
|
574
426
|
self,
|
|
575
|
-
tmp_req:
|
|
576
|
-
runtime:
|
|
577
|
-
) ->
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
@return: DeleteNetworkReachableAnalysisResponse
|
|
584
|
-
"""
|
|
585
|
-
UtilClient.validate_model(tmp_req)
|
|
586
|
-
request = nis_20211216_models.DeleteNetworkReachableAnalysisShrinkRequest()
|
|
587
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
588
|
-
if not UtilClient.is_unset(tmp_req.network_reachable_analysis_ids):
|
|
589
|
-
request.network_reachable_analysis_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.network_reachable_analysis_ids, 'NetworkReachableAnalysisIds', 'json')
|
|
427
|
+
tmp_req: main_models.DeleteNetworkReachableAnalysisRequest,
|
|
428
|
+
runtime: RuntimeOptions,
|
|
429
|
+
) -> main_models.DeleteNetworkReachableAnalysisResponse:
|
|
430
|
+
tmp_req.validate()
|
|
431
|
+
request = main_models.DeleteNetworkReachableAnalysisShrinkRequest()
|
|
432
|
+
Utils.convert(tmp_req, request)
|
|
433
|
+
if not DaraCore.is_null(tmp_req.network_reachable_analysis_ids):
|
|
434
|
+
request.network_reachable_analysis_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.network_reachable_analysis_ids, 'NetworkReachableAnalysisIds', 'json')
|
|
590
435
|
query = {}
|
|
591
|
-
if not
|
|
436
|
+
if not DaraCore.is_null(request.network_reachable_analysis_ids_shrink):
|
|
592
437
|
query['NetworkReachableAnalysisIds'] = request.network_reachable_analysis_ids_shrink
|
|
593
|
-
if not
|
|
438
|
+
if not DaraCore.is_null(request.region_id):
|
|
594
439
|
query['RegionId'] = request.region_id
|
|
595
|
-
req =
|
|
596
|
-
query=
|
|
597
|
-
)
|
|
598
|
-
params =
|
|
599
|
-
action='DeleteNetworkReachableAnalysis',
|
|
600
|
-
version='2021-12-16',
|
|
601
|
-
protocol='HTTPS',
|
|
602
|
-
pathname='/',
|
|
603
|
-
method='POST',
|
|
604
|
-
auth_type='AK',
|
|
605
|
-
style='RPC',
|
|
606
|
-
req_body_type='formData',
|
|
607
|
-
body_type='json'
|
|
608
|
-
)
|
|
609
|
-
return
|
|
610
|
-
|
|
440
|
+
req = open_api_util_models.OpenApiRequest(
|
|
441
|
+
query = Utils.query(query)
|
|
442
|
+
)
|
|
443
|
+
params = open_api_util_models.Params(
|
|
444
|
+
action = 'DeleteNetworkReachableAnalysis',
|
|
445
|
+
version = '2021-12-16',
|
|
446
|
+
protocol = 'HTTPS',
|
|
447
|
+
pathname = '/',
|
|
448
|
+
method = 'POST',
|
|
449
|
+
auth_type = 'AK',
|
|
450
|
+
style = 'RPC',
|
|
451
|
+
req_body_type = 'formData',
|
|
452
|
+
body_type = 'json'
|
|
453
|
+
)
|
|
454
|
+
return DaraCore.from_map(
|
|
455
|
+
main_models.DeleteNetworkReachableAnalysisResponse(),
|
|
611
456
|
await self.call_api_async(params, req, runtime)
|
|
612
457
|
)
|
|
613
458
|
|
|
614
459
|
def delete_network_reachable_analysis(
|
|
615
460
|
self,
|
|
616
|
-
request:
|
|
617
|
-
) ->
|
|
618
|
-
|
|
619
|
-
@summary Deletes a task for analyzing network reachability.
|
|
620
|
-
|
|
621
|
-
@param request: DeleteNetworkReachableAnalysisRequest
|
|
622
|
-
@return: DeleteNetworkReachableAnalysisResponse
|
|
623
|
-
"""
|
|
624
|
-
runtime = util_models.RuntimeOptions()
|
|
461
|
+
request: main_models.DeleteNetworkReachableAnalysisRequest,
|
|
462
|
+
) -> main_models.DeleteNetworkReachableAnalysisResponse:
|
|
463
|
+
runtime = RuntimeOptions()
|
|
625
464
|
return self.delete_network_reachable_analysis_with_options(request, runtime)
|
|
626
465
|
|
|
627
466
|
async def delete_network_reachable_analysis_async(
|
|
628
467
|
self,
|
|
629
|
-
request:
|
|
630
|
-
) ->
|
|
631
|
-
|
|
632
|
-
@summary Deletes a task for analyzing network reachability.
|
|
633
|
-
|
|
634
|
-
@param request: DeleteNetworkReachableAnalysisRequest
|
|
635
|
-
@return: DeleteNetworkReachableAnalysisResponse
|
|
636
|
-
"""
|
|
637
|
-
runtime = util_models.RuntimeOptions()
|
|
468
|
+
request: main_models.DeleteNetworkReachableAnalysisRequest,
|
|
469
|
+
) -> main_models.DeleteNetworkReachableAnalysisResponse:
|
|
470
|
+
runtime = RuntimeOptions()
|
|
638
471
|
return await self.delete_network_reachable_analysis_with_options_async(request, runtime)
|
|
639
472
|
|
|
640
473
|
def delete_nis_inspection_report_with_options(
|
|
641
474
|
self,
|
|
642
|
-
request:
|
|
643
|
-
runtime:
|
|
644
|
-
) ->
|
|
645
|
-
|
|
646
|
-
@summary 删除报告
|
|
647
|
-
|
|
648
|
-
@param request: DeleteNisInspectionReportRequest
|
|
649
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
650
|
-
@return: DeleteNisInspectionReportResponse
|
|
651
|
-
"""
|
|
652
|
-
UtilClient.validate_model(request)
|
|
475
|
+
request: main_models.DeleteNisInspectionReportRequest,
|
|
476
|
+
runtime: RuntimeOptions,
|
|
477
|
+
) -> main_models.DeleteNisInspectionReportResponse:
|
|
478
|
+
request.validate()
|
|
653
479
|
query = {}
|
|
654
|
-
if not
|
|
480
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
655
481
|
query['InspectionReportId'] = request.inspection_report_id
|
|
656
|
-
req =
|
|
657
|
-
query=
|
|
658
|
-
)
|
|
659
|
-
params =
|
|
660
|
-
action='DeleteNisInspectionReport',
|
|
661
|
-
version='2021-12-16',
|
|
662
|
-
protocol='HTTPS',
|
|
663
|
-
pathname='/',
|
|
664
|
-
method='POST',
|
|
665
|
-
auth_type='AK',
|
|
666
|
-
style='RPC',
|
|
667
|
-
req_body_type='formData',
|
|
668
|
-
body_type='json'
|
|
669
|
-
)
|
|
670
|
-
return
|
|
671
|
-
|
|
482
|
+
req = open_api_util_models.OpenApiRequest(
|
|
483
|
+
query = Utils.query(query)
|
|
484
|
+
)
|
|
485
|
+
params = open_api_util_models.Params(
|
|
486
|
+
action = 'DeleteNisInspectionReport',
|
|
487
|
+
version = '2021-12-16',
|
|
488
|
+
protocol = 'HTTPS',
|
|
489
|
+
pathname = '/',
|
|
490
|
+
method = 'POST',
|
|
491
|
+
auth_type = 'AK',
|
|
492
|
+
style = 'RPC',
|
|
493
|
+
req_body_type = 'formData',
|
|
494
|
+
body_type = 'json'
|
|
495
|
+
)
|
|
496
|
+
return DaraCore.from_map(
|
|
497
|
+
main_models.DeleteNisInspectionReportResponse(),
|
|
672
498
|
self.call_api(params, req, runtime)
|
|
673
499
|
)
|
|
674
500
|
|
|
675
501
|
async def delete_nis_inspection_report_with_options_async(
|
|
676
502
|
self,
|
|
677
|
-
request:
|
|
678
|
-
runtime:
|
|
679
|
-
) ->
|
|
680
|
-
|
|
681
|
-
@summary 删除报告
|
|
682
|
-
|
|
683
|
-
@param request: DeleteNisInspectionReportRequest
|
|
684
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
685
|
-
@return: DeleteNisInspectionReportResponse
|
|
686
|
-
"""
|
|
687
|
-
UtilClient.validate_model(request)
|
|
503
|
+
request: main_models.DeleteNisInspectionReportRequest,
|
|
504
|
+
runtime: RuntimeOptions,
|
|
505
|
+
) -> main_models.DeleteNisInspectionReportResponse:
|
|
506
|
+
request.validate()
|
|
688
507
|
query = {}
|
|
689
|
-
if not
|
|
508
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
690
509
|
query['InspectionReportId'] = request.inspection_report_id
|
|
691
|
-
req =
|
|
692
|
-
query=
|
|
693
|
-
)
|
|
694
|
-
params =
|
|
695
|
-
action='DeleteNisInspectionReport',
|
|
696
|
-
version='2021-12-16',
|
|
697
|
-
protocol='HTTPS',
|
|
698
|
-
pathname='/',
|
|
699
|
-
method='POST',
|
|
700
|
-
auth_type='AK',
|
|
701
|
-
style='RPC',
|
|
702
|
-
req_body_type='formData',
|
|
703
|
-
body_type='json'
|
|
704
|
-
)
|
|
705
|
-
return
|
|
706
|
-
|
|
510
|
+
req = open_api_util_models.OpenApiRequest(
|
|
511
|
+
query = Utils.query(query)
|
|
512
|
+
)
|
|
513
|
+
params = open_api_util_models.Params(
|
|
514
|
+
action = 'DeleteNisInspectionReport',
|
|
515
|
+
version = '2021-12-16',
|
|
516
|
+
protocol = 'HTTPS',
|
|
517
|
+
pathname = '/',
|
|
518
|
+
method = 'POST',
|
|
519
|
+
auth_type = 'AK',
|
|
520
|
+
style = 'RPC',
|
|
521
|
+
req_body_type = 'formData',
|
|
522
|
+
body_type = 'json'
|
|
523
|
+
)
|
|
524
|
+
return DaraCore.from_map(
|
|
525
|
+
main_models.DeleteNisInspectionReportResponse(),
|
|
707
526
|
await self.call_api_async(params, req, runtime)
|
|
708
527
|
)
|
|
709
528
|
|
|
710
529
|
def delete_nis_inspection_report(
|
|
711
530
|
self,
|
|
712
|
-
request:
|
|
713
|
-
) ->
|
|
714
|
-
|
|
715
|
-
@summary 删除报告
|
|
716
|
-
|
|
717
|
-
@param request: DeleteNisInspectionReportRequest
|
|
718
|
-
@return: DeleteNisInspectionReportResponse
|
|
719
|
-
"""
|
|
720
|
-
runtime = util_models.RuntimeOptions()
|
|
531
|
+
request: main_models.DeleteNisInspectionReportRequest,
|
|
532
|
+
) -> main_models.DeleteNisInspectionReportResponse:
|
|
533
|
+
runtime = RuntimeOptions()
|
|
721
534
|
return self.delete_nis_inspection_report_with_options(request, runtime)
|
|
722
535
|
|
|
723
536
|
async def delete_nis_inspection_report_async(
|
|
724
537
|
self,
|
|
725
|
-
request:
|
|
726
|
-
) ->
|
|
727
|
-
|
|
728
|
-
@summary 删除报告
|
|
729
|
-
|
|
730
|
-
@param request: DeleteNisInspectionReportRequest
|
|
731
|
-
@return: DeleteNisInspectionReportResponse
|
|
732
|
-
"""
|
|
733
|
-
runtime = util_models.RuntimeOptions()
|
|
538
|
+
request: main_models.DeleteNisInspectionReportRequest,
|
|
539
|
+
) -> main_models.DeleteNisInspectionReportResponse:
|
|
540
|
+
runtime = RuntimeOptions()
|
|
734
541
|
return await self.delete_nis_inspection_report_with_options_async(request, runtime)
|
|
735
542
|
|
|
736
543
|
def delete_nis_inspection_task_with_options(
|
|
737
544
|
self,
|
|
738
|
-
request:
|
|
739
|
-
runtime:
|
|
740
|
-
) ->
|
|
741
|
-
|
|
742
|
-
@summary 删除巡检任务
|
|
743
|
-
|
|
744
|
-
@param request: DeleteNisInspectionTaskRequest
|
|
745
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
746
|
-
@return: DeleteNisInspectionTaskResponse
|
|
747
|
-
"""
|
|
748
|
-
UtilClient.validate_model(request)
|
|
545
|
+
request: main_models.DeleteNisInspectionTaskRequest,
|
|
546
|
+
runtime: RuntimeOptions,
|
|
547
|
+
) -> main_models.DeleteNisInspectionTaskResponse:
|
|
548
|
+
request.validate()
|
|
749
549
|
query = {}
|
|
750
|
-
if not
|
|
550
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
751
551
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
752
|
-
req =
|
|
753
|
-
query=
|
|
754
|
-
)
|
|
755
|
-
params =
|
|
756
|
-
action='DeleteNisInspectionTask',
|
|
757
|
-
version='2021-12-16',
|
|
758
|
-
protocol='HTTPS',
|
|
759
|
-
pathname='/',
|
|
760
|
-
method='POST',
|
|
761
|
-
auth_type='AK',
|
|
762
|
-
style='RPC',
|
|
763
|
-
req_body_type='formData',
|
|
764
|
-
body_type='json'
|
|
765
|
-
)
|
|
766
|
-
return
|
|
767
|
-
|
|
552
|
+
req = open_api_util_models.OpenApiRequest(
|
|
553
|
+
query = Utils.query(query)
|
|
554
|
+
)
|
|
555
|
+
params = open_api_util_models.Params(
|
|
556
|
+
action = 'DeleteNisInspectionTask',
|
|
557
|
+
version = '2021-12-16',
|
|
558
|
+
protocol = 'HTTPS',
|
|
559
|
+
pathname = '/',
|
|
560
|
+
method = 'POST',
|
|
561
|
+
auth_type = 'AK',
|
|
562
|
+
style = 'RPC',
|
|
563
|
+
req_body_type = 'formData',
|
|
564
|
+
body_type = 'json'
|
|
565
|
+
)
|
|
566
|
+
return DaraCore.from_map(
|
|
567
|
+
main_models.DeleteNisInspectionTaskResponse(),
|
|
768
568
|
self.call_api(params, req, runtime)
|
|
769
569
|
)
|
|
770
570
|
|
|
771
571
|
async def delete_nis_inspection_task_with_options_async(
|
|
772
572
|
self,
|
|
773
|
-
request:
|
|
774
|
-
runtime:
|
|
775
|
-
) ->
|
|
776
|
-
|
|
777
|
-
@summary 删除巡检任务
|
|
778
|
-
|
|
779
|
-
@param request: DeleteNisInspectionTaskRequest
|
|
780
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
781
|
-
@return: DeleteNisInspectionTaskResponse
|
|
782
|
-
"""
|
|
783
|
-
UtilClient.validate_model(request)
|
|
573
|
+
request: main_models.DeleteNisInspectionTaskRequest,
|
|
574
|
+
runtime: RuntimeOptions,
|
|
575
|
+
) -> main_models.DeleteNisInspectionTaskResponse:
|
|
576
|
+
request.validate()
|
|
784
577
|
query = {}
|
|
785
|
-
if not
|
|
578
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
786
579
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
787
|
-
req =
|
|
788
|
-
query=
|
|
789
|
-
)
|
|
790
|
-
params =
|
|
791
|
-
action='DeleteNisInspectionTask',
|
|
792
|
-
version='2021-12-16',
|
|
793
|
-
protocol='HTTPS',
|
|
794
|
-
pathname='/',
|
|
795
|
-
method='POST',
|
|
796
|
-
auth_type='AK',
|
|
797
|
-
style='RPC',
|
|
798
|
-
req_body_type='formData',
|
|
799
|
-
body_type='json'
|
|
800
|
-
)
|
|
801
|
-
return
|
|
802
|
-
|
|
580
|
+
req = open_api_util_models.OpenApiRequest(
|
|
581
|
+
query = Utils.query(query)
|
|
582
|
+
)
|
|
583
|
+
params = open_api_util_models.Params(
|
|
584
|
+
action = 'DeleteNisInspectionTask',
|
|
585
|
+
version = '2021-12-16',
|
|
586
|
+
protocol = 'HTTPS',
|
|
587
|
+
pathname = '/',
|
|
588
|
+
method = 'POST',
|
|
589
|
+
auth_type = 'AK',
|
|
590
|
+
style = 'RPC',
|
|
591
|
+
req_body_type = 'formData',
|
|
592
|
+
body_type = 'json'
|
|
593
|
+
)
|
|
594
|
+
return DaraCore.from_map(
|
|
595
|
+
main_models.DeleteNisInspectionTaskResponse(),
|
|
803
596
|
await self.call_api_async(params, req, runtime)
|
|
804
597
|
)
|
|
805
598
|
|
|
806
599
|
def delete_nis_inspection_task(
|
|
807
600
|
self,
|
|
808
|
-
request:
|
|
809
|
-
) ->
|
|
810
|
-
|
|
811
|
-
@summary 删除巡检任务
|
|
812
|
-
|
|
813
|
-
@param request: DeleteNisInspectionTaskRequest
|
|
814
|
-
@return: DeleteNisInspectionTaskResponse
|
|
815
|
-
"""
|
|
816
|
-
runtime = util_models.RuntimeOptions()
|
|
601
|
+
request: main_models.DeleteNisInspectionTaskRequest,
|
|
602
|
+
) -> main_models.DeleteNisInspectionTaskResponse:
|
|
603
|
+
runtime = RuntimeOptions()
|
|
817
604
|
return self.delete_nis_inspection_task_with_options(request, runtime)
|
|
818
605
|
|
|
819
606
|
async def delete_nis_inspection_task_async(
|
|
820
607
|
self,
|
|
821
|
-
request:
|
|
822
|
-
) ->
|
|
823
|
-
|
|
824
|
-
@summary 删除巡检任务
|
|
825
|
-
|
|
826
|
-
@param request: DeleteNisInspectionTaskRequest
|
|
827
|
-
@return: DeleteNisInspectionTaskResponse
|
|
828
|
-
"""
|
|
829
|
-
runtime = util_models.RuntimeOptions()
|
|
608
|
+
request: main_models.DeleteNisInspectionTaskRequest,
|
|
609
|
+
) -> main_models.DeleteNisInspectionTaskResponse:
|
|
610
|
+
runtime = RuntimeOptions()
|
|
830
611
|
return await self.delete_nis_inspection_task_with_options_async(request, runtime)
|
|
831
612
|
|
|
832
613
|
def describe_nis_inspection_recommendation_resources_with_options(
|
|
833
614
|
self,
|
|
834
|
-
request:
|
|
835
|
-
runtime:
|
|
836
|
-
) ->
|
|
837
|
-
|
|
838
|
-
@summary 受影响资源列表
|
|
839
|
-
|
|
840
|
-
@param request: DescribeNisInspectionRecommendationResourcesRequest
|
|
841
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
842
|
-
@return: DescribeNisInspectionRecommendationResourcesResponse
|
|
843
|
-
"""
|
|
844
|
-
UtilClient.validate_model(request)
|
|
615
|
+
request: main_models.DescribeNisInspectionRecommendationResourcesRequest,
|
|
616
|
+
runtime: RuntimeOptions,
|
|
617
|
+
) -> main_models.DescribeNisInspectionRecommendationResourcesResponse:
|
|
618
|
+
request.validate()
|
|
845
619
|
query = {}
|
|
846
|
-
if not
|
|
620
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
847
621
|
query['InspectionReportId'] = request.inspection_report_id
|
|
848
|
-
if not
|
|
622
|
+
if not DaraCore.is_null(request.language):
|
|
849
623
|
query['Language'] = request.language
|
|
850
|
-
if not
|
|
624
|
+
if not DaraCore.is_null(request.max_results):
|
|
851
625
|
query['MaxResults'] = request.max_results
|
|
852
|
-
if not
|
|
626
|
+
if not DaraCore.is_null(request.next_token):
|
|
853
627
|
query['NextToken'] = request.next_token
|
|
854
|
-
if not
|
|
628
|
+
if not DaraCore.is_null(request.recommendation_code):
|
|
855
629
|
query['RecommendationCode'] = request.recommendation_code
|
|
856
|
-
req =
|
|
857
|
-
query=
|
|
858
|
-
)
|
|
859
|
-
params =
|
|
860
|
-
action='DescribeNisInspectionRecommendationResources',
|
|
861
|
-
version='2021-12-16',
|
|
862
|
-
protocol='HTTPS',
|
|
863
|
-
pathname='/',
|
|
864
|
-
method='POST',
|
|
865
|
-
auth_type='AK',
|
|
866
|
-
style='RPC',
|
|
867
|
-
req_body_type='formData',
|
|
868
|
-
body_type='json'
|
|
869
|
-
)
|
|
870
|
-
return
|
|
871
|
-
|
|
630
|
+
req = open_api_util_models.OpenApiRequest(
|
|
631
|
+
query = Utils.query(query)
|
|
632
|
+
)
|
|
633
|
+
params = open_api_util_models.Params(
|
|
634
|
+
action = 'DescribeNisInspectionRecommendationResources',
|
|
635
|
+
version = '2021-12-16',
|
|
636
|
+
protocol = 'HTTPS',
|
|
637
|
+
pathname = '/',
|
|
638
|
+
method = 'POST',
|
|
639
|
+
auth_type = 'AK',
|
|
640
|
+
style = 'RPC',
|
|
641
|
+
req_body_type = 'formData',
|
|
642
|
+
body_type = 'json'
|
|
643
|
+
)
|
|
644
|
+
return DaraCore.from_map(
|
|
645
|
+
main_models.DescribeNisInspectionRecommendationResourcesResponse(),
|
|
872
646
|
self.call_api(params, req, runtime)
|
|
873
647
|
)
|
|
874
648
|
|
|
875
649
|
async def describe_nis_inspection_recommendation_resources_with_options_async(
|
|
876
650
|
self,
|
|
877
|
-
request:
|
|
878
|
-
runtime:
|
|
879
|
-
) ->
|
|
880
|
-
|
|
881
|
-
@summary 受影响资源列表
|
|
882
|
-
|
|
883
|
-
@param request: DescribeNisInspectionRecommendationResourcesRequest
|
|
884
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
885
|
-
@return: DescribeNisInspectionRecommendationResourcesResponse
|
|
886
|
-
"""
|
|
887
|
-
UtilClient.validate_model(request)
|
|
651
|
+
request: main_models.DescribeNisInspectionRecommendationResourcesRequest,
|
|
652
|
+
runtime: RuntimeOptions,
|
|
653
|
+
) -> main_models.DescribeNisInspectionRecommendationResourcesResponse:
|
|
654
|
+
request.validate()
|
|
888
655
|
query = {}
|
|
889
|
-
if not
|
|
656
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
890
657
|
query['InspectionReportId'] = request.inspection_report_id
|
|
891
|
-
if not
|
|
658
|
+
if not DaraCore.is_null(request.language):
|
|
892
659
|
query['Language'] = request.language
|
|
893
|
-
if not
|
|
660
|
+
if not DaraCore.is_null(request.max_results):
|
|
894
661
|
query['MaxResults'] = request.max_results
|
|
895
|
-
if not
|
|
662
|
+
if not DaraCore.is_null(request.next_token):
|
|
896
663
|
query['NextToken'] = request.next_token
|
|
897
|
-
if not
|
|
664
|
+
if not DaraCore.is_null(request.recommendation_code):
|
|
898
665
|
query['RecommendationCode'] = request.recommendation_code
|
|
899
|
-
req =
|
|
900
|
-
query=
|
|
901
|
-
)
|
|
902
|
-
params =
|
|
903
|
-
action='DescribeNisInspectionRecommendationResources',
|
|
904
|
-
version='2021-12-16',
|
|
905
|
-
protocol='HTTPS',
|
|
906
|
-
pathname='/',
|
|
907
|
-
method='POST',
|
|
908
|
-
auth_type='AK',
|
|
909
|
-
style='RPC',
|
|
910
|
-
req_body_type='formData',
|
|
911
|
-
body_type='json'
|
|
912
|
-
)
|
|
913
|
-
return
|
|
914
|
-
|
|
666
|
+
req = open_api_util_models.OpenApiRequest(
|
|
667
|
+
query = Utils.query(query)
|
|
668
|
+
)
|
|
669
|
+
params = open_api_util_models.Params(
|
|
670
|
+
action = 'DescribeNisInspectionRecommendationResources',
|
|
671
|
+
version = '2021-12-16',
|
|
672
|
+
protocol = 'HTTPS',
|
|
673
|
+
pathname = '/',
|
|
674
|
+
method = 'POST',
|
|
675
|
+
auth_type = 'AK',
|
|
676
|
+
style = 'RPC',
|
|
677
|
+
req_body_type = 'formData',
|
|
678
|
+
body_type = 'json'
|
|
679
|
+
)
|
|
680
|
+
return DaraCore.from_map(
|
|
681
|
+
main_models.DescribeNisInspectionRecommendationResourcesResponse(),
|
|
915
682
|
await self.call_api_async(params, req, runtime)
|
|
916
683
|
)
|
|
917
684
|
|
|
918
685
|
def describe_nis_inspection_recommendation_resources(
|
|
919
686
|
self,
|
|
920
|
-
request:
|
|
921
|
-
) ->
|
|
922
|
-
|
|
923
|
-
@summary 受影响资源列表
|
|
924
|
-
|
|
925
|
-
@param request: DescribeNisInspectionRecommendationResourcesRequest
|
|
926
|
-
@return: DescribeNisInspectionRecommendationResourcesResponse
|
|
927
|
-
"""
|
|
928
|
-
runtime = util_models.RuntimeOptions()
|
|
687
|
+
request: main_models.DescribeNisInspectionRecommendationResourcesRequest,
|
|
688
|
+
) -> main_models.DescribeNisInspectionRecommendationResourcesResponse:
|
|
689
|
+
runtime = RuntimeOptions()
|
|
929
690
|
return self.describe_nis_inspection_recommendation_resources_with_options(request, runtime)
|
|
930
691
|
|
|
931
692
|
async def describe_nis_inspection_recommendation_resources_async(
|
|
932
693
|
self,
|
|
933
|
-
request:
|
|
934
|
-
) ->
|
|
935
|
-
|
|
936
|
-
@summary 受影响资源列表
|
|
937
|
-
|
|
938
|
-
@param request: DescribeNisInspectionRecommendationResourcesRequest
|
|
939
|
-
@return: DescribeNisInspectionRecommendationResourcesResponse
|
|
940
|
-
"""
|
|
941
|
-
runtime = util_models.RuntimeOptions()
|
|
694
|
+
request: main_models.DescribeNisInspectionRecommendationResourcesRequest,
|
|
695
|
+
) -> main_models.DescribeNisInspectionRecommendationResourcesResponse:
|
|
696
|
+
runtime = RuntimeOptions()
|
|
942
697
|
return await self.describe_nis_inspection_recommendation_resources_with_options_async(request, runtime)
|
|
943
698
|
|
|
944
699
|
def describe_nis_inspection_report_check_items_with_options(
|
|
945
700
|
self,
|
|
946
|
-
tmp_req:
|
|
947
|
-
runtime:
|
|
948
|
-
) ->
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
UtilClient.validate_model(tmp_req)
|
|
957
|
-
request = nis_20211216_models.DescribeNisInspectionReportCheckItemsShrinkRequest()
|
|
958
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
959
|
-
if not UtilClient.is_unset(tmp_req.resource_type):
|
|
960
|
-
request.resource_type_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_type, 'ResourceType', 'json')
|
|
961
|
-
if not UtilClient.is_unset(tmp_req.risk_level):
|
|
962
|
-
request.risk_level_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.risk_level, 'RiskLevel', 'json')
|
|
701
|
+
tmp_req: main_models.DescribeNisInspectionReportCheckItemsRequest,
|
|
702
|
+
runtime: RuntimeOptions,
|
|
703
|
+
) -> main_models.DescribeNisInspectionReportCheckItemsResponse:
|
|
704
|
+
tmp_req.validate()
|
|
705
|
+
request = main_models.DescribeNisInspectionReportCheckItemsShrinkRequest()
|
|
706
|
+
Utils.convert(tmp_req, request)
|
|
707
|
+
if not DaraCore.is_null(tmp_req.resource_type):
|
|
708
|
+
request.resource_type_shrink = Utils.array_to_string_with_specified_style(tmp_req.resource_type, 'ResourceType', 'json')
|
|
709
|
+
if not DaraCore.is_null(tmp_req.risk_level):
|
|
710
|
+
request.risk_level_shrink = Utils.array_to_string_with_specified_style(tmp_req.risk_level, 'RiskLevel', 'json')
|
|
963
711
|
query = {}
|
|
964
|
-
if not
|
|
712
|
+
if not DaraCore.is_null(request.category_code):
|
|
965
713
|
query['CategoryCode'] = request.category_code
|
|
966
|
-
if not
|
|
714
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
967
715
|
query['InspectionReportId'] = request.inspection_report_id
|
|
968
|
-
if not
|
|
716
|
+
if not DaraCore.is_null(request.language):
|
|
969
717
|
query['Language'] = request.language
|
|
970
|
-
if not
|
|
718
|
+
if not DaraCore.is_null(request.max_results):
|
|
971
719
|
query['MaxResults'] = request.max_results
|
|
972
|
-
if not
|
|
720
|
+
if not DaraCore.is_null(request.next_token):
|
|
973
721
|
query['NextToken'] = request.next_token
|
|
974
|
-
if not
|
|
722
|
+
if not DaraCore.is_null(request.resource_type_shrink):
|
|
975
723
|
query['ResourceType'] = request.resource_type_shrink
|
|
976
|
-
if not
|
|
724
|
+
if not DaraCore.is_null(request.risk_level_shrink):
|
|
977
725
|
query['RiskLevel'] = request.risk_level_shrink
|
|
978
|
-
req =
|
|
979
|
-
query=
|
|
980
|
-
)
|
|
981
|
-
params =
|
|
982
|
-
action='DescribeNisInspectionReportCheckItems',
|
|
983
|
-
version='2021-12-16',
|
|
984
|
-
protocol='HTTPS',
|
|
985
|
-
pathname='/',
|
|
986
|
-
method='POST',
|
|
987
|
-
auth_type='AK',
|
|
988
|
-
style='RPC',
|
|
989
|
-
req_body_type='formData',
|
|
990
|
-
body_type='json'
|
|
991
|
-
)
|
|
992
|
-
return
|
|
993
|
-
|
|
726
|
+
req = open_api_util_models.OpenApiRequest(
|
|
727
|
+
query = Utils.query(query)
|
|
728
|
+
)
|
|
729
|
+
params = open_api_util_models.Params(
|
|
730
|
+
action = 'DescribeNisInspectionReportCheckItems',
|
|
731
|
+
version = '2021-12-16',
|
|
732
|
+
protocol = 'HTTPS',
|
|
733
|
+
pathname = '/',
|
|
734
|
+
method = 'POST',
|
|
735
|
+
auth_type = 'AK',
|
|
736
|
+
style = 'RPC',
|
|
737
|
+
req_body_type = 'formData',
|
|
738
|
+
body_type = 'json'
|
|
739
|
+
)
|
|
740
|
+
return DaraCore.from_map(
|
|
741
|
+
main_models.DescribeNisInspectionReportCheckItemsResponse(),
|
|
994
742
|
self.call_api(params, req, runtime)
|
|
995
743
|
)
|
|
996
744
|
|
|
997
745
|
async def describe_nis_inspection_report_check_items_with_options_async(
|
|
998
746
|
self,
|
|
999
|
-
tmp_req:
|
|
1000
|
-
runtime:
|
|
1001
|
-
) ->
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
UtilClient.validate_model(tmp_req)
|
|
1010
|
-
request = nis_20211216_models.DescribeNisInspectionReportCheckItemsShrinkRequest()
|
|
1011
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
1012
|
-
if not UtilClient.is_unset(tmp_req.resource_type):
|
|
1013
|
-
request.resource_type_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_type, 'ResourceType', 'json')
|
|
1014
|
-
if not UtilClient.is_unset(tmp_req.risk_level):
|
|
1015
|
-
request.risk_level_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.risk_level, 'RiskLevel', 'json')
|
|
747
|
+
tmp_req: main_models.DescribeNisInspectionReportCheckItemsRequest,
|
|
748
|
+
runtime: RuntimeOptions,
|
|
749
|
+
) -> main_models.DescribeNisInspectionReportCheckItemsResponse:
|
|
750
|
+
tmp_req.validate()
|
|
751
|
+
request = main_models.DescribeNisInspectionReportCheckItemsShrinkRequest()
|
|
752
|
+
Utils.convert(tmp_req, request)
|
|
753
|
+
if not DaraCore.is_null(tmp_req.resource_type):
|
|
754
|
+
request.resource_type_shrink = Utils.array_to_string_with_specified_style(tmp_req.resource_type, 'ResourceType', 'json')
|
|
755
|
+
if not DaraCore.is_null(tmp_req.risk_level):
|
|
756
|
+
request.risk_level_shrink = Utils.array_to_string_with_specified_style(tmp_req.risk_level, 'RiskLevel', 'json')
|
|
1016
757
|
query = {}
|
|
1017
|
-
if not
|
|
758
|
+
if not DaraCore.is_null(request.category_code):
|
|
1018
759
|
query['CategoryCode'] = request.category_code
|
|
1019
|
-
if not
|
|
760
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
1020
761
|
query['InspectionReportId'] = request.inspection_report_id
|
|
1021
|
-
if not
|
|
762
|
+
if not DaraCore.is_null(request.language):
|
|
1022
763
|
query['Language'] = request.language
|
|
1023
|
-
if not
|
|
764
|
+
if not DaraCore.is_null(request.max_results):
|
|
1024
765
|
query['MaxResults'] = request.max_results
|
|
1025
|
-
if not
|
|
766
|
+
if not DaraCore.is_null(request.next_token):
|
|
1026
767
|
query['NextToken'] = request.next_token
|
|
1027
|
-
if not
|
|
768
|
+
if not DaraCore.is_null(request.resource_type_shrink):
|
|
1028
769
|
query['ResourceType'] = request.resource_type_shrink
|
|
1029
|
-
if not
|
|
770
|
+
if not DaraCore.is_null(request.risk_level_shrink):
|
|
1030
771
|
query['RiskLevel'] = request.risk_level_shrink
|
|
1031
|
-
req =
|
|
1032
|
-
query=
|
|
1033
|
-
)
|
|
1034
|
-
params =
|
|
1035
|
-
action='DescribeNisInspectionReportCheckItems',
|
|
1036
|
-
version='2021-12-16',
|
|
1037
|
-
protocol='HTTPS',
|
|
1038
|
-
pathname='/',
|
|
1039
|
-
method='POST',
|
|
1040
|
-
auth_type='AK',
|
|
1041
|
-
style='RPC',
|
|
1042
|
-
req_body_type='formData',
|
|
1043
|
-
body_type='json'
|
|
1044
|
-
)
|
|
1045
|
-
return
|
|
1046
|
-
|
|
772
|
+
req = open_api_util_models.OpenApiRequest(
|
|
773
|
+
query = Utils.query(query)
|
|
774
|
+
)
|
|
775
|
+
params = open_api_util_models.Params(
|
|
776
|
+
action = 'DescribeNisInspectionReportCheckItems',
|
|
777
|
+
version = '2021-12-16',
|
|
778
|
+
protocol = 'HTTPS',
|
|
779
|
+
pathname = '/',
|
|
780
|
+
method = 'POST',
|
|
781
|
+
auth_type = 'AK',
|
|
782
|
+
style = 'RPC',
|
|
783
|
+
req_body_type = 'formData',
|
|
784
|
+
body_type = 'json'
|
|
785
|
+
)
|
|
786
|
+
return DaraCore.from_map(
|
|
787
|
+
main_models.DescribeNisInspectionReportCheckItemsResponse(),
|
|
1047
788
|
await self.call_api_async(params, req, runtime)
|
|
1048
789
|
)
|
|
1049
790
|
|
|
1050
791
|
def describe_nis_inspection_report_check_items(
|
|
1051
792
|
self,
|
|
1052
|
-
request:
|
|
1053
|
-
) ->
|
|
1054
|
-
|
|
1055
|
-
@summary 报告巡检项列表
|
|
1056
|
-
|
|
1057
|
-
@param request: DescribeNisInspectionReportCheckItemsRequest
|
|
1058
|
-
@return: DescribeNisInspectionReportCheckItemsResponse
|
|
1059
|
-
"""
|
|
1060
|
-
runtime = util_models.RuntimeOptions()
|
|
793
|
+
request: main_models.DescribeNisInspectionReportCheckItemsRequest,
|
|
794
|
+
) -> main_models.DescribeNisInspectionReportCheckItemsResponse:
|
|
795
|
+
runtime = RuntimeOptions()
|
|
1061
796
|
return self.describe_nis_inspection_report_check_items_with_options(request, runtime)
|
|
1062
797
|
|
|
1063
798
|
async def describe_nis_inspection_report_check_items_async(
|
|
1064
799
|
self,
|
|
1065
|
-
request:
|
|
1066
|
-
) ->
|
|
1067
|
-
|
|
1068
|
-
@summary 报告巡检项列表
|
|
1069
|
-
|
|
1070
|
-
@param request: DescribeNisInspectionReportCheckItemsRequest
|
|
1071
|
-
@return: DescribeNisInspectionReportCheckItemsResponse
|
|
1072
|
-
"""
|
|
1073
|
-
runtime = util_models.RuntimeOptions()
|
|
800
|
+
request: main_models.DescribeNisInspectionReportCheckItemsRequest,
|
|
801
|
+
) -> main_models.DescribeNisInspectionReportCheckItemsResponse:
|
|
802
|
+
runtime = RuntimeOptions()
|
|
1074
803
|
return await self.describe_nis_inspection_report_check_items_with_options_async(request, runtime)
|
|
1075
804
|
|
|
1076
805
|
def describe_nis_inspection_report_status_with_options(
|
|
1077
806
|
self,
|
|
1078
|
-
request:
|
|
1079
|
-
runtime:
|
|
1080
|
-
) ->
|
|
1081
|
-
|
|
1082
|
-
@summary 查询报告状态
|
|
1083
|
-
|
|
1084
|
-
@param request: DescribeNisInspectionReportStatusRequest
|
|
1085
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1086
|
-
@return: DescribeNisInspectionReportStatusResponse
|
|
1087
|
-
"""
|
|
1088
|
-
UtilClient.validate_model(request)
|
|
807
|
+
request: main_models.DescribeNisInspectionReportStatusRequest,
|
|
808
|
+
runtime: RuntimeOptions,
|
|
809
|
+
) -> main_models.DescribeNisInspectionReportStatusResponse:
|
|
810
|
+
request.validate()
|
|
1089
811
|
query = {}
|
|
1090
|
-
if not
|
|
812
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
1091
813
|
query['InspectionReportId'] = request.inspection_report_id
|
|
1092
|
-
req =
|
|
1093
|
-
query=
|
|
1094
|
-
)
|
|
1095
|
-
params =
|
|
1096
|
-
action='DescribeNisInspectionReportStatus',
|
|
1097
|
-
version='2021-12-16',
|
|
1098
|
-
protocol='HTTPS',
|
|
1099
|
-
pathname='/',
|
|
1100
|
-
method='POST',
|
|
1101
|
-
auth_type='AK',
|
|
1102
|
-
style='RPC',
|
|
1103
|
-
req_body_type='formData',
|
|
1104
|
-
body_type='json'
|
|
1105
|
-
)
|
|
1106
|
-
return
|
|
1107
|
-
|
|
814
|
+
req = open_api_util_models.OpenApiRequest(
|
|
815
|
+
query = Utils.query(query)
|
|
816
|
+
)
|
|
817
|
+
params = open_api_util_models.Params(
|
|
818
|
+
action = 'DescribeNisInspectionReportStatus',
|
|
819
|
+
version = '2021-12-16',
|
|
820
|
+
protocol = 'HTTPS',
|
|
821
|
+
pathname = '/',
|
|
822
|
+
method = 'POST',
|
|
823
|
+
auth_type = 'AK',
|
|
824
|
+
style = 'RPC',
|
|
825
|
+
req_body_type = 'formData',
|
|
826
|
+
body_type = 'json'
|
|
827
|
+
)
|
|
828
|
+
return DaraCore.from_map(
|
|
829
|
+
main_models.DescribeNisInspectionReportStatusResponse(),
|
|
1108
830
|
self.call_api(params, req, runtime)
|
|
1109
831
|
)
|
|
1110
832
|
|
|
1111
833
|
async def describe_nis_inspection_report_status_with_options_async(
|
|
1112
834
|
self,
|
|
1113
|
-
request:
|
|
1114
|
-
runtime:
|
|
1115
|
-
) ->
|
|
1116
|
-
|
|
1117
|
-
@summary 查询报告状态
|
|
1118
|
-
|
|
1119
|
-
@param request: DescribeNisInspectionReportStatusRequest
|
|
1120
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1121
|
-
@return: DescribeNisInspectionReportStatusResponse
|
|
1122
|
-
"""
|
|
1123
|
-
UtilClient.validate_model(request)
|
|
835
|
+
request: main_models.DescribeNisInspectionReportStatusRequest,
|
|
836
|
+
runtime: RuntimeOptions,
|
|
837
|
+
) -> main_models.DescribeNisInspectionReportStatusResponse:
|
|
838
|
+
request.validate()
|
|
1124
839
|
query = {}
|
|
1125
|
-
if not
|
|
840
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
1126
841
|
query['InspectionReportId'] = request.inspection_report_id
|
|
1127
|
-
req =
|
|
1128
|
-
query=
|
|
1129
|
-
)
|
|
1130
|
-
params =
|
|
1131
|
-
action='DescribeNisInspectionReportStatus',
|
|
1132
|
-
version='2021-12-16',
|
|
1133
|
-
protocol='HTTPS',
|
|
1134
|
-
pathname='/',
|
|
1135
|
-
method='POST',
|
|
1136
|
-
auth_type='AK',
|
|
1137
|
-
style='RPC',
|
|
1138
|
-
req_body_type='formData',
|
|
1139
|
-
body_type='json'
|
|
1140
|
-
)
|
|
1141
|
-
return
|
|
1142
|
-
|
|
842
|
+
req = open_api_util_models.OpenApiRequest(
|
|
843
|
+
query = Utils.query(query)
|
|
844
|
+
)
|
|
845
|
+
params = open_api_util_models.Params(
|
|
846
|
+
action = 'DescribeNisInspectionReportStatus',
|
|
847
|
+
version = '2021-12-16',
|
|
848
|
+
protocol = 'HTTPS',
|
|
849
|
+
pathname = '/',
|
|
850
|
+
method = 'POST',
|
|
851
|
+
auth_type = 'AK',
|
|
852
|
+
style = 'RPC',
|
|
853
|
+
req_body_type = 'formData',
|
|
854
|
+
body_type = 'json'
|
|
855
|
+
)
|
|
856
|
+
return DaraCore.from_map(
|
|
857
|
+
main_models.DescribeNisInspectionReportStatusResponse(),
|
|
1143
858
|
await self.call_api_async(params, req, runtime)
|
|
1144
859
|
)
|
|
1145
860
|
|
|
1146
861
|
def describe_nis_inspection_report_status(
|
|
1147
862
|
self,
|
|
1148
|
-
request:
|
|
1149
|
-
) ->
|
|
1150
|
-
|
|
1151
|
-
@summary 查询报告状态
|
|
1152
|
-
|
|
1153
|
-
@param request: DescribeNisInspectionReportStatusRequest
|
|
1154
|
-
@return: DescribeNisInspectionReportStatusResponse
|
|
1155
|
-
"""
|
|
1156
|
-
runtime = util_models.RuntimeOptions()
|
|
863
|
+
request: main_models.DescribeNisInspectionReportStatusRequest,
|
|
864
|
+
) -> main_models.DescribeNisInspectionReportStatusResponse:
|
|
865
|
+
runtime = RuntimeOptions()
|
|
1157
866
|
return self.describe_nis_inspection_report_status_with_options(request, runtime)
|
|
1158
867
|
|
|
1159
868
|
async def describe_nis_inspection_report_status_async(
|
|
1160
869
|
self,
|
|
1161
|
-
request:
|
|
1162
|
-
) ->
|
|
1163
|
-
|
|
1164
|
-
@summary 查询报告状态
|
|
1165
|
-
|
|
1166
|
-
@param request: DescribeNisInspectionReportStatusRequest
|
|
1167
|
-
@return: DescribeNisInspectionReportStatusResponse
|
|
1168
|
-
"""
|
|
1169
|
-
runtime = util_models.RuntimeOptions()
|
|
870
|
+
request: main_models.DescribeNisInspectionReportStatusRequest,
|
|
871
|
+
) -> main_models.DescribeNisInspectionReportStatusResponse:
|
|
872
|
+
runtime = RuntimeOptions()
|
|
1170
873
|
return await self.describe_nis_inspection_report_status_with_options_async(request, runtime)
|
|
1171
874
|
|
|
1172
875
|
def describe_nis_inspection_report_summary_with_options(
|
|
1173
876
|
self,
|
|
1174
|
-
request:
|
|
1175
|
-
runtime:
|
|
1176
|
-
) ->
|
|
1177
|
-
|
|
1178
|
-
@summary 报告总结信息
|
|
1179
|
-
|
|
1180
|
-
@param request: DescribeNisInspectionReportSummaryRequest
|
|
1181
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1182
|
-
@return: DescribeNisInspectionReportSummaryResponse
|
|
1183
|
-
"""
|
|
1184
|
-
UtilClient.validate_model(request)
|
|
877
|
+
request: main_models.DescribeNisInspectionReportSummaryRequest,
|
|
878
|
+
runtime: RuntimeOptions,
|
|
879
|
+
) -> main_models.DescribeNisInspectionReportSummaryResponse:
|
|
880
|
+
request.validate()
|
|
1185
881
|
query = {}
|
|
1186
|
-
if not
|
|
882
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
1187
883
|
query['InspectionReportId'] = request.inspection_report_id
|
|
1188
|
-
req =
|
|
1189
|
-
query=
|
|
1190
|
-
)
|
|
1191
|
-
params =
|
|
1192
|
-
action='DescribeNisInspectionReportSummary',
|
|
1193
|
-
version='2021-12-16',
|
|
1194
|
-
protocol='HTTPS',
|
|
1195
|
-
pathname='/',
|
|
1196
|
-
method='POST',
|
|
1197
|
-
auth_type='AK',
|
|
1198
|
-
style='RPC',
|
|
1199
|
-
req_body_type='formData',
|
|
1200
|
-
body_type='json'
|
|
1201
|
-
)
|
|
1202
|
-
return
|
|
1203
|
-
|
|
884
|
+
req = open_api_util_models.OpenApiRequest(
|
|
885
|
+
query = Utils.query(query)
|
|
886
|
+
)
|
|
887
|
+
params = open_api_util_models.Params(
|
|
888
|
+
action = 'DescribeNisInspectionReportSummary',
|
|
889
|
+
version = '2021-12-16',
|
|
890
|
+
protocol = 'HTTPS',
|
|
891
|
+
pathname = '/',
|
|
892
|
+
method = 'POST',
|
|
893
|
+
auth_type = 'AK',
|
|
894
|
+
style = 'RPC',
|
|
895
|
+
req_body_type = 'formData',
|
|
896
|
+
body_type = 'json'
|
|
897
|
+
)
|
|
898
|
+
return DaraCore.from_map(
|
|
899
|
+
main_models.DescribeNisInspectionReportSummaryResponse(),
|
|
1204
900
|
self.call_api(params, req, runtime)
|
|
1205
901
|
)
|
|
1206
902
|
|
|
1207
903
|
async def describe_nis_inspection_report_summary_with_options_async(
|
|
1208
904
|
self,
|
|
1209
|
-
request:
|
|
1210
|
-
runtime:
|
|
1211
|
-
) ->
|
|
1212
|
-
|
|
1213
|
-
@summary 报告总结信息
|
|
1214
|
-
|
|
1215
|
-
@param request: DescribeNisInspectionReportSummaryRequest
|
|
1216
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1217
|
-
@return: DescribeNisInspectionReportSummaryResponse
|
|
1218
|
-
"""
|
|
1219
|
-
UtilClient.validate_model(request)
|
|
905
|
+
request: main_models.DescribeNisInspectionReportSummaryRequest,
|
|
906
|
+
runtime: RuntimeOptions,
|
|
907
|
+
) -> main_models.DescribeNisInspectionReportSummaryResponse:
|
|
908
|
+
request.validate()
|
|
1220
909
|
query = {}
|
|
1221
|
-
if not
|
|
910
|
+
if not DaraCore.is_null(request.inspection_report_id):
|
|
1222
911
|
query['InspectionReportId'] = request.inspection_report_id
|
|
1223
|
-
req =
|
|
1224
|
-
query=
|
|
1225
|
-
)
|
|
1226
|
-
params =
|
|
1227
|
-
action='DescribeNisInspectionReportSummary',
|
|
1228
|
-
version='2021-12-16',
|
|
1229
|
-
protocol='HTTPS',
|
|
1230
|
-
pathname='/',
|
|
1231
|
-
method='POST',
|
|
1232
|
-
auth_type='AK',
|
|
1233
|
-
style='RPC',
|
|
1234
|
-
req_body_type='formData',
|
|
1235
|
-
body_type='json'
|
|
1236
|
-
)
|
|
1237
|
-
return
|
|
1238
|
-
|
|
912
|
+
req = open_api_util_models.OpenApiRequest(
|
|
913
|
+
query = Utils.query(query)
|
|
914
|
+
)
|
|
915
|
+
params = open_api_util_models.Params(
|
|
916
|
+
action = 'DescribeNisInspectionReportSummary',
|
|
917
|
+
version = '2021-12-16',
|
|
918
|
+
protocol = 'HTTPS',
|
|
919
|
+
pathname = '/',
|
|
920
|
+
method = 'POST',
|
|
921
|
+
auth_type = 'AK',
|
|
922
|
+
style = 'RPC',
|
|
923
|
+
req_body_type = 'formData',
|
|
924
|
+
body_type = 'json'
|
|
925
|
+
)
|
|
926
|
+
return DaraCore.from_map(
|
|
927
|
+
main_models.DescribeNisInspectionReportSummaryResponse(),
|
|
1239
928
|
await self.call_api_async(params, req, runtime)
|
|
1240
929
|
)
|
|
1241
930
|
|
|
1242
931
|
def describe_nis_inspection_report_summary(
|
|
1243
932
|
self,
|
|
1244
|
-
request:
|
|
1245
|
-
) ->
|
|
1246
|
-
|
|
1247
|
-
@summary 报告总结信息
|
|
1248
|
-
|
|
1249
|
-
@param request: DescribeNisInspectionReportSummaryRequest
|
|
1250
|
-
@return: DescribeNisInspectionReportSummaryResponse
|
|
1251
|
-
"""
|
|
1252
|
-
runtime = util_models.RuntimeOptions()
|
|
933
|
+
request: main_models.DescribeNisInspectionReportSummaryRequest,
|
|
934
|
+
) -> main_models.DescribeNisInspectionReportSummaryResponse:
|
|
935
|
+
runtime = RuntimeOptions()
|
|
1253
936
|
return self.describe_nis_inspection_report_summary_with_options(request, runtime)
|
|
1254
937
|
|
|
1255
938
|
async def describe_nis_inspection_report_summary_async(
|
|
1256
939
|
self,
|
|
1257
|
-
request:
|
|
1258
|
-
) ->
|
|
1259
|
-
|
|
1260
|
-
@summary 报告总结信息
|
|
1261
|
-
|
|
1262
|
-
@param request: DescribeNisInspectionReportSummaryRequest
|
|
1263
|
-
@return: DescribeNisInspectionReportSummaryResponse
|
|
1264
|
-
"""
|
|
1265
|
-
runtime = util_models.RuntimeOptions()
|
|
940
|
+
request: main_models.DescribeNisInspectionReportSummaryRequest,
|
|
941
|
+
) -> main_models.DescribeNisInspectionReportSummaryResponse:
|
|
942
|
+
runtime = RuntimeOptions()
|
|
1266
943
|
return await self.describe_nis_inspection_report_summary_with_options_async(request, runtime)
|
|
1267
944
|
|
|
1268
945
|
def describe_nis_inspection_task_with_options(
|
|
1269
946
|
self,
|
|
1270
|
-
request:
|
|
1271
|
-
runtime:
|
|
1272
|
-
) ->
|
|
1273
|
-
|
|
1274
|
-
@summary 查询巡检任务
|
|
1275
|
-
|
|
1276
|
-
@param request: DescribeNisInspectionTaskRequest
|
|
1277
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1278
|
-
@return: DescribeNisInspectionTaskResponse
|
|
1279
|
-
"""
|
|
1280
|
-
UtilClient.validate_model(request)
|
|
947
|
+
request: main_models.DescribeNisInspectionTaskRequest,
|
|
948
|
+
runtime: RuntimeOptions,
|
|
949
|
+
) -> main_models.DescribeNisInspectionTaskResponse:
|
|
950
|
+
request.validate()
|
|
1281
951
|
query = {}
|
|
1282
|
-
if not
|
|
952
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
1283
953
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
1284
|
-
req =
|
|
1285
|
-
query=
|
|
1286
|
-
)
|
|
1287
|
-
params =
|
|
1288
|
-
action='DescribeNisInspectionTask',
|
|
1289
|
-
version='2021-12-16',
|
|
1290
|
-
protocol='HTTPS',
|
|
1291
|
-
pathname='/',
|
|
1292
|
-
method='POST',
|
|
1293
|
-
auth_type='AK',
|
|
1294
|
-
style='RPC',
|
|
1295
|
-
req_body_type='formData',
|
|
1296
|
-
body_type='json'
|
|
1297
|
-
)
|
|
1298
|
-
return
|
|
1299
|
-
|
|
954
|
+
req = open_api_util_models.OpenApiRequest(
|
|
955
|
+
query = Utils.query(query)
|
|
956
|
+
)
|
|
957
|
+
params = open_api_util_models.Params(
|
|
958
|
+
action = 'DescribeNisInspectionTask',
|
|
959
|
+
version = '2021-12-16',
|
|
960
|
+
protocol = 'HTTPS',
|
|
961
|
+
pathname = '/',
|
|
962
|
+
method = 'POST',
|
|
963
|
+
auth_type = 'AK',
|
|
964
|
+
style = 'RPC',
|
|
965
|
+
req_body_type = 'formData',
|
|
966
|
+
body_type = 'json'
|
|
967
|
+
)
|
|
968
|
+
return DaraCore.from_map(
|
|
969
|
+
main_models.DescribeNisInspectionTaskResponse(),
|
|
1300
970
|
self.call_api(params, req, runtime)
|
|
1301
971
|
)
|
|
1302
972
|
|
|
1303
973
|
async def describe_nis_inspection_task_with_options_async(
|
|
1304
974
|
self,
|
|
1305
|
-
request:
|
|
1306
|
-
runtime:
|
|
1307
|
-
) ->
|
|
1308
|
-
|
|
1309
|
-
@summary 查询巡检任务
|
|
1310
|
-
|
|
1311
|
-
@param request: DescribeNisInspectionTaskRequest
|
|
1312
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1313
|
-
@return: DescribeNisInspectionTaskResponse
|
|
1314
|
-
"""
|
|
1315
|
-
UtilClient.validate_model(request)
|
|
975
|
+
request: main_models.DescribeNisInspectionTaskRequest,
|
|
976
|
+
runtime: RuntimeOptions,
|
|
977
|
+
) -> main_models.DescribeNisInspectionTaskResponse:
|
|
978
|
+
request.validate()
|
|
1316
979
|
query = {}
|
|
1317
|
-
if not
|
|
980
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
1318
981
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
1319
|
-
req =
|
|
1320
|
-
query=
|
|
1321
|
-
)
|
|
1322
|
-
params =
|
|
1323
|
-
action='DescribeNisInspectionTask',
|
|
1324
|
-
version='2021-12-16',
|
|
1325
|
-
protocol='HTTPS',
|
|
1326
|
-
pathname='/',
|
|
1327
|
-
method='POST',
|
|
1328
|
-
auth_type='AK',
|
|
1329
|
-
style='RPC',
|
|
1330
|
-
req_body_type='formData',
|
|
1331
|
-
body_type='json'
|
|
1332
|
-
)
|
|
1333
|
-
return
|
|
1334
|
-
|
|
982
|
+
req = open_api_util_models.OpenApiRequest(
|
|
983
|
+
query = Utils.query(query)
|
|
984
|
+
)
|
|
985
|
+
params = open_api_util_models.Params(
|
|
986
|
+
action = 'DescribeNisInspectionTask',
|
|
987
|
+
version = '2021-12-16',
|
|
988
|
+
protocol = 'HTTPS',
|
|
989
|
+
pathname = '/',
|
|
990
|
+
method = 'POST',
|
|
991
|
+
auth_type = 'AK',
|
|
992
|
+
style = 'RPC',
|
|
993
|
+
req_body_type = 'formData',
|
|
994
|
+
body_type = 'json'
|
|
995
|
+
)
|
|
996
|
+
return DaraCore.from_map(
|
|
997
|
+
main_models.DescribeNisInspectionTaskResponse(),
|
|
1335
998
|
await self.call_api_async(params, req, runtime)
|
|
1336
999
|
)
|
|
1337
1000
|
|
|
1338
1001
|
def describe_nis_inspection_task(
|
|
1339
1002
|
self,
|
|
1340
|
-
request:
|
|
1341
|
-
) ->
|
|
1342
|
-
|
|
1343
|
-
@summary 查询巡检任务
|
|
1344
|
-
|
|
1345
|
-
@param request: DescribeNisInspectionTaskRequest
|
|
1346
|
-
@return: DescribeNisInspectionTaskResponse
|
|
1347
|
-
"""
|
|
1348
|
-
runtime = util_models.RuntimeOptions()
|
|
1003
|
+
request: main_models.DescribeNisInspectionTaskRequest,
|
|
1004
|
+
) -> main_models.DescribeNisInspectionTaskResponse:
|
|
1005
|
+
runtime = RuntimeOptions()
|
|
1349
1006
|
return self.describe_nis_inspection_task_with_options(request, runtime)
|
|
1350
1007
|
|
|
1351
1008
|
async def describe_nis_inspection_task_async(
|
|
1352
1009
|
self,
|
|
1353
|
-
request:
|
|
1354
|
-
) ->
|
|
1355
|
-
|
|
1356
|
-
@summary 查询巡检任务
|
|
1357
|
-
|
|
1358
|
-
@param request: DescribeNisInspectionTaskRequest
|
|
1359
|
-
@return: DescribeNisInspectionTaskResponse
|
|
1360
|
-
"""
|
|
1361
|
-
runtime = util_models.RuntimeOptions()
|
|
1010
|
+
request: main_models.DescribeNisInspectionTaskRequest,
|
|
1011
|
+
) -> main_models.DescribeNisInspectionTaskResponse:
|
|
1012
|
+
runtime = RuntimeOptions()
|
|
1362
1013
|
return await self.describe_nis_inspection_task_with_options_async(request, runtime)
|
|
1363
1014
|
|
|
1015
|
+
def describe_nis_traffic_ranking_with_options(
|
|
1016
|
+
self,
|
|
1017
|
+
request: main_models.DescribeNisTrafficRankingRequest,
|
|
1018
|
+
runtime: RuntimeOptions,
|
|
1019
|
+
) -> main_models.DescribeNisTrafficRankingResponse:
|
|
1020
|
+
request.validate()
|
|
1021
|
+
query = {}
|
|
1022
|
+
if not DaraCore.is_null(request.max_results):
|
|
1023
|
+
query['MaxResults'] = request.max_results
|
|
1024
|
+
if not DaraCore.is_null(request.next_token):
|
|
1025
|
+
query['NextToken'] = request.next_token
|
|
1026
|
+
if not DaraCore.is_null(request.nis_traffic_ranking_id):
|
|
1027
|
+
query['NisTrafficRankingId'] = request.nis_traffic_ranking_id
|
|
1028
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1029
|
+
query = Utils.query(query)
|
|
1030
|
+
)
|
|
1031
|
+
params = open_api_util_models.Params(
|
|
1032
|
+
action = 'DescribeNisTrafficRanking',
|
|
1033
|
+
version = '2021-12-16',
|
|
1034
|
+
protocol = 'HTTPS',
|
|
1035
|
+
pathname = '/',
|
|
1036
|
+
method = 'POST',
|
|
1037
|
+
auth_type = 'AK',
|
|
1038
|
+
style = 'RPC',
|
|
1039
|
+
req_body_type = 'formData',
|
|
1040
|
+
body_type = 'json'
|
|
1041
|
+
)
|
|
1042
|
+
return DaraCore.from_map(
|
|
1043
|
+
main_models.DescribeNisTrafficRankingResponse(),
|
|
1044
|
+
self.call_api(params, req, runtime)
|
|
1045
|
+
)
|
|
1046
|
+
|
|
1047
|
+
async def describe_nis_traffic_ranking_with_options_async(
|
|
1048
|
+
self,
|
|
1049
|
+
request: main_models.DescribeNisTrafficRankingRequest,
|
|
1050
|
+
runtime: RuntimeOptions,
|
|
1051
|
+
) -> main_models.DescribeNisTrafficRankingResponse:
|
|
1052
|
+
request.validate()
|
|
1053
|
+
query = {}
|
|
1054
|
+
if not DaraCore.is_null(request.max_results):
|
|
1055
|
+
query['MaxResults'] = request.max_results
|
|
1056
|
+
if not DaraCore.is_null(request.next_token):
|
|
1057
|
+
query['NextToken'] = request.next_token
|
|
1058
|
+
if not DaraCore.is_null(request.nis_traffic_ranking_id):
|
|
1059
|
+
query['NisTrafficRankingId'] = request.nis_traffic_ranking_id
|
|
1060
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1061
|
+
query = Utils.query(query)
|
|
1062
|
+
)
|
|
1063
|
+
params = open_api_util_models.Params(
|
|
1064
|
+
action = 'DescribeNisTrafficRanking',
|
|
1065
|
+
version = '2021-12-16',
|
|
1066
|
+
protocol = 'HTTPS',
|
|
1067
|
+
pathname = '/',
|
|
1068
|
+
method = 'POST',
|
|
1069
|
+
auth_type = 'AK',
|
|
1070
|
+
style = 'RPC',
|
|
1071
|
+
req_body_type = 'formData',
|
|
1072
|
+
body_type = 'json'
|
|
1073
|
+
)
|
|
1074
|
+
return DaraCore.from_map(
|
|
1075
|
+
main_models.DescribeNisTrafficRankingResponse(),
|
|
1076
|
+
await self.call_api_async(params, req, runtime)
|
|
1077
|
+
)
|
|
1078
|
+
|
|
1079
|
+
def describe_nis_traffic_ranking(
|
|
1080
|
+
self,
|
|
1081
|
+
request: main_models.DescribeNisTrafficRankingRequest,
|
|
1082
|
+
) -> main_models.DescribeNisTrafficRankingResponse:
|
|
1083
|
+
runtime = RuntimeOptions()
|
|
1084
|
+
return self.describe_nis_traffic_ranking_with_options(request, runtime)
|
|
1085
|
+
|
|
1086
|
+
async def describe_nis_traffic_ranking_async(
|
|
1087
|
+
self,
|
|
1088
|
+
request: main_models.DescribeNisTrafficRankingRequest,
|
|
1089
|
+
) -> main_models.DescribeNisTrafficRankingResponse:
|
|
1090
|
+
runtime = RuntimeOptions()
|
|
1091
|
+
return await self.describe_nis_traffic_ranking_with_options_async(request, runtime)
|
|
1092
|
+
|
|
1364
1093
|
def get_internet_tuple_with_options(
|
|
1365
1094
|
self,
|
|
1366
|
-
tmp_req:
|
|
1367
|
-
runtime:
|
|
1368
|
-
) ->
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
@return: GetInternetTupleResponse
|
|
1377
|
-
Deprecated
|
|
1378
|
-
"""
|
|
1379
|
-
UtilClient.validate_model(tmp_req)
|
|
1380
|
-
request = nis_20211216_models.GetInternetTupleShrinkRequest()
|
|
1381
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
1382
|
-
if not UtilClient.is_unset(tmp_req.cloud_ip_list):
|
|
1383
|
-
request.cloud_ip_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.cloud_ip_list, 'CloudIpList', 'json')
|
|
1384
|
-
if not UtilClient.is_unset(tmp_req.instance_list):
|
|
1385
|
-
request.instance_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_list, 'InstanceList', 'json')
|
|
1095
|
+
tmp_req: main_models.GetInternetTupleRequest,
|
|
1096
|
+
runtime: RuntimeOptions,
|
|
1097
|
+
) -> main_models.GetInternetTupleResponse:
|
|
1098
|
+
tmp_req.validate()
|
|
1099
|
+
request = main_models.GetInternetTupleShrinkRequest()
|
|
1100
|
+
Utils.convert(tmp_req, request)
|
|
1101
|
+
if not DaraCore.is_null(tmp_req.cloud_ip_list):
|
|
1102
|
+
request.cloud_ip_list_shrink = Utils.array_to_string_with_specified_style(tmp_req.cloud_ip_list, 'CloudIpList', 'json')
|
|
1103
|
+
if not DaraCore.is_null(tmp_req.instance_list):
|
|
1104
|
+
request.instance_list_shrink = Utils.array_to_string_with_specified_style(tmp_req.instance_list, 'InstanceList', 'json')
|
|
1386
1105
|
query = {}
|
|
1387
|
-
if not
|
|
1106
|
+
if not DaraCore.is_null(request.account_ids):
|
|
1388
1107
|
query['AccountIds'] = request.account_ids
|
|
1389
|
-
if not
|
|
1108
|
+
if not DaraCore.is_null(request.begin_time):
|
|
1390
1109
|
query['BeginTime'] = request.begin_time
|
|
1391
|
-
if not
|
|
1110
|
+
if not DaraCore.is_null(request.cloud_ip):
|
|
1392
1111
|
query['CloudIp'] = request.cloud_ip
|
|
1393
|
-
if not
|
|
1112
|
+
if not DaraCore.is_null(request.cloud_ip_list_shrink):
|
|
1394
1113
|
query['CloudIpList'] = request.cloud_ip_list_shrink
|
|
1395
|
-
if not
|
|
1114
|
+
if not DaraCore.is_null(request.cloud_isp):
|
|
1396
1115
|
query['CloudIsp'] = request.cloud_isp
|
|
1397
|
-
if not
|
|
1116
|
+
if not DaraCore.is_null(request.cloud_port):
|
|
1398
1117
|
query['CloudPort'] = request.cloud_port
|
|
1399
|
-
if not
|
|
1118
|
+
if not DaraCore.is_null(request.direction):
|
|
1400
1119
|
query['Direction'] = request.direction
|
|
1401
|
-
if not
|
|
1120
|
+
if not DaraCore.is_null(request.end_time):
|
|
1402
1121
|
query['EndTime'] = request.end_time
|
|
1403
|
-
if not
|
|
1122
|
+
if not DaraCore.is_null(request.instance_id):
|
|
1404
1123
|
query['InstanceId'] = request.instance_id
|
|
1405
|
-
if not
|
|
1124
|
+
if not DaraCore.is_null(request.instance_list_shrink):
|
|
1406
1125
|
query['InstanceList'] = request.instance_list_shrink
|
|
1407
|
-
if not
|
|
1126
|
+
if not DaraCore.is_null(request.order_by):
|
|
1408
1127
|
query['OrderBy'] = request.order_by
|
|
1409
|
-
if not
|
|
1128
|
+
if not DaraCore.is_null(request.other_city):
|
|
1410
1129
|
query['OtherCity'] = request.other_city
|
|
1411
|
-
if not
|
|
1130
|
+
if not DaraCore.is_null(request.other_country):
|
|
1412
1131
|
query['OtherCountry'] = request.other_country
|
|
1413
|
-
if not
|
|
1132
|
+
if not DaraCore.is_null(request.other_ip):
|
|
1414
1133
|
query['OtherIp'] = request.other_ip
|
|
1415
|
-
if not
|
|
1134
|
+
if not DaraCore.is_null(request.other_isp):
|
|
1416
1135
|
query['OtherIsp'] = request.other_isp
|
|
1417
|
-
if not
|
|
1136
|
+
if not DaraCore.is_null(request.other_port):
|
|
1418
1137
|
query['OtherPort'] = request.other_port
|
|
1419
|
-
if not
|
|
1138
|
+
if not DaraCore.is_null(request.protocol):
|
|
1420
1139
|
query['Protocol'] = request.protocol
|
|
1421
|
-
if not
|
|
1140
|
+
if not DaraCore.is_null(request.region_id):
|
|
1422
1141
|
query['RegionId'] = request.region_id
|
|
1423
|
-
if not
|
|
1142
|
+
if not DaraCore.is_null(request.sort):
|
|
1424
1143
|
query['Sort'] = request.sort
|
|
1425
|
-
if not
|
|
1144
|
+
if not DaraCore.is_null(request.top_n):
|
|
1426
1145
|
query['TopN'] = request.top_n
|
|
1427
|
-
if not
|
|
1146
|
+
if not DaraCore.is_null(request.tuple_type):
|
|
1428
1147
|
query['TupleType'] = request.tuple_type
|
|
1429
|
-
if not
|
|
1148
|
+
if not DaraCore.is_null(request.use_multi_account):
|
|
1430
1149
|
query['UseMultiAccount'] = request.use_multi_account
|
|
1431
|
-
req =
|
|
1432
|
-
query=
|
|
1433
|
-
)
|
|
1434
|
-
params =
|
|
1435
|
-
action='GetInternetTuple',
|
|
1436
|
-
version='2021-12-16',
|
|
1437
|
-
protocol='HTTPS',
|
|
1438
|
-
pathname='/',
|
|
1439
|
-
method='POST',
|
|
1440
|
-
auth_type='AK',
|
|
1441
|
-
style='RPC',
|
|
1442
|
-
req_body_type='formData',
|
|
1443
|
-
body_type='json'
|
|
1444
|
-
)
|
|
1445
|
-
return
|
|
1446
|
-
|
|
1150
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1151
|
+
query = Utils.query(query)
|
|
1152
|
+
)
|
|
1153
|
+
params = open_api_util_models.Params(
|
|
1154
|
+
action = 'GetInternetTuple',
|
|
1155
|
+
version = '2021-12-16',
|
|
1156
|
+
protocol = 'HTTPS',
|
|
1157
|
+
pathname = '/',
|
|
1158
|
+
method = 'POST',
|
|
1159
|
+
auth_type = 'AK',
|
|
1160
|
+
style = 'RPC',
|
|
1161
|
+
req_body_type = 'formData',
|
|
1162
|
+
body_type = 'json'
|
|
1163
|
+
)
|
|
1164
|
+
return DaraCore.from_map(
|
|
1165
|
+
main_models.GetInternetTupleResponse(),
|
|
1447
1166
|
self.call_api(params, req, runtime)
|
|
1448
1167
|
)
|
|
1449
1168
|
|
|
1450
1169
|
async def get_internet_tuple_with_options_async(
|
|
1451
1170
|
self,
|
|
1452
|
-
tmp_req:
|
|
1453
|
-
runtime:
|
|
1454
|
-
) ->
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
@return: GetInternetTupleResponse
|
|
1463
|
-
Deprecated
|
|
1464
|
-
"""
|
|
1465
|
-
UtilClient.validate_model(tmp_req)
|
|
1466
|
-
request = nis_20211216_models.GetInternetTupleShrinkRequest()
|
|
1467
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
1468
|
-
if not UtilClient.is_unset(tmp_req.cloud_ip_list):
|
|
1469
|
-
request.cloud_ip_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.cloud_ip_list, 'CloudIpList', 'json')
|
|
1470
|
-
if not UtilClient.is_unset(tmp_req.instance_list):
|
|
1471
|
-
request.instance_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_list, 'InstanceList', 'json')
|
|
1171
|
+
tmp_req: main_models.GetInternetTupleRequest,
|
|
1172
|
+
runtime: RuntimeOptions,
|
|
1173
|
+
) -> main_models.GetInternetTupleResponse:
|
|
1174
|
+
tmp_req.validate()
|
|
1175
|
+
request = main_models.GetInternetTupleShrinkRequest()
|
|
1176
|
+
Utils.convert(tmp_req, request)
|
|
1177
|
+
if not DaraCore.is_null(tmp_req.cloud_ip_list):
|
|
1178
|
+
request.cloud_ip_list_shrink = Utils.array_to_string_with_specified_style(tmp_req.cloud_ip_list, 'CloudIpList', 'json')
|
|
1179
|
+
if not DaraCore.is_null(tmp_req.instance_list):
|
|
1180
|
+
request.instance_list_shrink = Utils.array_to_string_with_specified_style(tmp_req.instance_list, 'InstanceList', 'json')
|
|
1472
1181
|
query = {}
|
|
1473
|
-
if not
|
|
1182
|
+
if not DaraCore.is_null(request.account_ids):
|
|
1474
1183
|
query['AccountIds'] = request.account_ids
|
|
1475
|
-
if not
|
|
1184
|
+
if not DaraCore.is_null(request.begin_time):
|
|
1476
1185
|
query['BeginTime'] = request.begin_time
|
|
1477
|
-
if not
|
|
1186
|
+
if not DaraCore.is_null(request.cloud_ip):
|
|
1478
1187
|
query['CloudIp'] = request.cloud_ip
|
|
1479
|
-
if not
|
|
1188
|
+
if not DaraCore.is_null(request.cloud_ip_list_shrink):
|
|
1480
1189
|
query['CloudIpList'] = request.cloud_ip_list_shrink
|
|
1481
|
-
if not
|
|
1190
|
+
if not DaraCore.is_null(request.cloud_isp):
|
|
1482
1191
|
query['CloudIsp'] = request.cloud_isp
|
|
1483
|
-
if not
|
|
1192
|
+
if not DaraCore.is_null(request.cloud_port):
|
|
1484
1193
|
query['CloudPort'] = request.cloud_port
|
|
1485
|
-
if not
|
|
1194
|
+
if not DaraCore.is_null(request.direction):
|
|
1486
1195
|
query['Direction'] = request.direction
|
|
1487
|
-
if not
|
|
1196
|
+
if not DaraCore.is_null(request.end_time):
|
|
1488
1197
|
query['EndTime'] = request.end_time
|
|
1489
|
-
if not
|
|
1198
|
+
if not DaraCore.is_null(request.instance_id):
|
|
1490
1199
|
query['InstanceId'] = request.instance_id
|
|
1491
|
-
if not
|
|
1200
|
+
if not DaraCore.is_null(request.instance_list_shrink):
|
|
1492
1201
|
query['InstanceList'] = request.instance_list_shrink
|
|
1493
|
-
if not
|
|
1202
|
+
if not DaraCore.is_null(request.order_by):
|
|
1494
1203
|
query['OrderBy'] = request.order_by
|
|
1495
|
-
if not
|
|
1204
|
+
if not DaraCore.is_null(request.other_city):
|
|
1496
1205
|
query['OtherCity'] = request.other_city
|
|
1497
|
-
if not
|
|
1206
|
+
if not DaraCore.is_null(request.other_country):
|
|
1498
1207
|
query['OtherCountry'] = request.other_country
|
|
1499
|
-
if not
|
|
1208
|
+
if not DaraCore.is_null(request.other_ip):
|
|
1500
1209
|
query['OtherIp'] = request.other_ip
|
|
1501
|
-
if not
|
|
1210
|
+
if not DaraCore.is_null(request.other_isp):
|
|
1502
1211
|
query['OtherIsp'] = request.other_isp
|
|
1503
|
-
if not
|
|
1212
|
+
if not DaraCore.is_null(request.other_port):
|
|
1504
1213
|
query['OtherPort'] = request.other_port
|
|
1505
|
-
if not
|
|
1214
|
+
if not DaraCore.is_null(request.protocol):
|
|
1506
1215
|
query['Protocol'] = request.protocol
|
|
1507
|
-
if not
|
|
1216
|
+
if not DaraCore.is_null(request.region_id):
|
|
1508
1217
|
query['RegionId'] = request.region_id
|
|
1509
|
-
if not
|
|
1218
|
+
if not DaraCore.is_null(request.sort):
|
|
1510
1219
|
query['Sort'] = request.sort
|
|
1511
|
-
if not
|
|
1220
|
+
if not DaraCore.is_null(request.top_n):
|
|
1512
1221
|
query['TopN'] = request.top_n
|
|
1513
|
-
if not
|
|
1222
|
+
if not DaraCore.is_null(request.tuple_type):
|
|
1514
1223
|
query['TupleType'] = request.tuple_type
|
|
1515
|
-
if not
|
|
1224
|
+
if not DaraCore.is_null(request.use_multi_account):
|
|
1516
1225
|
query['UseMultiAccount'] = request.use_multi_account
|
|
1517
|
-
req =
|
|
1518
|
-
query=
|
|
1519
|
-
)
|
|
1520
|
-
params =
|
|
1521
|
-
action='GetInternetTuple',
|
|
1522
|
-
version='2021-12-16',
|
|
1523
|
-
protocol='HTTPS',
|
|
1524
|
-
pathname='/',
|
|
1525
|
-
method='POST',
|
|
1526
|
-
auth_type='AK',
|
|
1527
|
-
style='RPC',
|
|
1528
|
-
req_body_type='formData',
|
|
1529
|
-
body_type='json'
|
|
1530
|
-
)
|
|
1531
|
-
return
|
|
1532
|
-
|
|
1226
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1227
|
+
query = Utils.query(query)
|
|
1228
|
+
)
|
|
1229
|
+
params = open_api_util_models.Params(
|
|
1230
|
+
action = 'GetInternetTuple',
|
|
1231
|
+
version = '2021-12-16',
|
|
1232
|
+
protocol = 'HTTPS',
|
|
1233
|
+
pathname = '/',
|
|
1234
|
+
method = 'POST',
|
|
1235
|
+
auth_type = 'AK',
|
|
1236
|
+
style = 'RPC',
|
|
1237
|
+
req_body_type = 'formData',
|
|
1238
|
+
body_type = 'json'
|
|
1239
|
+
)
|
|
1240
|
+
return DaraCore.from_map(
|
|
1241
|
+
main_models.GetInternetTupleResponse(),
|
|
1533
1242
|
await self.call_api_async(params, req, runtime)
|
|
1534
1243
|
)
|
|
1535
1244
|
|
|
1536
1245
|
def get_internet_tuple(
|
|
1537
1246
|
self,
|
|
1538
|
-
request:
|
|
1539
|
-
) ->
|
|
1540
|
-
|
|
1541
|
-
@deprecated OpenAPI GetInternetTuple is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
1542
|
-
|
|
1543
|
-
@summary Queries the rankings of Internet traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Internet traffic data can be ranked by metrics such as traffic volumes and the number of packets.
|
|
1544
|
-
|
|
1545
|
-
@param request: GetInternetTupleRequest
|
|
1546
|
-
@return: GetInternetTupleResponse
|
|
1547
|
-
Deprecated
|
|
1548
|
-
"""
|
|
1549
|
-
runtime = util_models.RuntimeOptions()
|
|
1247
|
+
request: main_models.GetInternetTupleRequest,
|
|
1248
|
+
) -> main_models.GetInternetTupleResponse:
|
|
1249
|
+
runtime = RuntimeOptions()
|
|
1550
1250
|
return self.get_internet_tuple_with_options(request, runtime)
|
|
1551
1251
|
|
|
1552
1252
|
async def get_internet_tuple_async(
|
|
1553
1253
|
self,
|
|
1554
|
-
request:
|
|
1555
|
-
) ->
|
|
1556
|
-
|
|
1557
|
-
@deprecated OpenAPI GetInternetTuple is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
1558
|
-
|
|
1559
|
-
@summary Queries the rankings of Internet traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Internet traffic data can be ranked by metrics such as traffic volumes and the number of packets.
|
|
1560
|
-
|
|
1561
|
-
@param request: GetInternetTupleRequest
|
|
1562
|
-
@return: GetInternetTupleResponse
|
|
1563
|
-
Deprecated
|
|
1564
|
-
"""
|
|
1565
|
-
runtime = util_models.RuntimeOptions()
|
|
1254
|
+
request: main_models.GetInternetTupleRequest,
|
|
1255
|
+
) -> main_models.GetInternetTupleResponse:
|
|
1256
|
+
runtime = RuntimeOptions()
|
|
1566
1257
|
return await self.get_internet_tuple_with_options_async(request, runtime)
|
|
1567
1258
|
|
|
1568
1259
|
def get_nat_top_nwith_options(
|
|
1569
1260
|
self,
|
|
1570
|
-
request:
|
|
1571
|
-
runtime:
|
|
1572
|
-
) ->
|
|
1573
|
-
|
|
1574
|
-
@deprecated OpenAPI GetNatTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
1575
|
-
|
|
1576
|
-
@summary Queries the real-time SNAT performance ranking of a NAT gateway.
|
|
1577
|
-
|
|
1578
|
-
@param request: GetNatTopNRequest
|
|
1579
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1580
|
-
@return: GetNatTopNResponse
|
|
1581
|
-
Deprecated
|
|
1582
|
-
"""
|
|
1583
|
-
UtilClient.validate_model(request)
|
|
1261
|
+
request: main_models.GetNatTopNRequest,
|
|
1262
|
+
runtime: RuntimeOptions,
|
|
1263
|
+
) -> main_models.GetNatTopNResponse:
|
|
1264
|
+
request.validate()
|
|
1584
1265
|
query = {}
|
|
1585
|
-
if not
|
|
1266
|
+
if not DaraCore.is_null(request.begin_time):
|
|
1586
1267
|
query['BeginTime'] = request.begin_time
|
|
1587
|
-
if not
|
|
1268
|
+
if not DaraCore.is_null(request.end_time):
|
|
1588
1269
|
query['EndTime'] = request.end_time
|
|
1589
|
-
if not
|
|
1270
|
+
if not DaraCore.is_null(request.ip):
|
|
1590
1271
|
query['Ip'] = request.ip
|
|
1591
|
-
if not
|
|
1272
|
+
if not DaraCore.is_null(request.nat_gateway_id):
|
|
1592
1273
|
query['NatGatewayId'] = request.nat_gateway_id
|
|
1593
|
-
if not
|
|
1274
|
+
if not DaraCore.is_null(request.order_by):
|
|
1594
1275
|
query['OrderBy'] = request.order_by
|
|
1595
|
-
if not
|
|
1276
|
+
if not DaraCore.is_null(request.region_id):
|
|
1596
1277
|
query['RegionId'] = request.region_id
|
|
1597
|
-
if not
|
|
1278
|
+
if not DaraCore.is_null(request.top_n):
|
|
1598
1279
|
query['TopN'] = request.top_n
|
|
1599
|
-
req =
|
|
1600
|
-
query=
|
|
1601
|
-
)
|
|
1602
|
-
params =
|
|
1603
|
-
action='GetNatTopN',
|
|
1604
|
-
version='2021-12-16',
|
|
1605
|
-
protocol='HTTPS',
|
|
1606
|
-
pathname='/',
|
|
1607
|
-
method='POST',
|
|
1608
|
-
auth_type='AK',
|
|
1609
|
-
style='RPC',
|
|
1610
|
-
req_body_type='formData',
|
|
1611
|
-
body_type='json'
|
|
1612
|
-
)
|
|
1613
|
-
return
|
|
1614
|
-
|
|
1280
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1281
|
+
query = Utils.query(query)
|
|
1282
|
+
)
|
|
1283
|
+
params = open_api_util_models.Params(
|
|
1284
|
+
action = 'GetNatTopN',
|
|
1285
|
+
version = '2021-12-16',
|
|
1286
|
+
protocol = 'HTTPS',
|
|
1287
|
+
pathname = '/',
|
|
1288
|
+
method = 'POST',
|
|
1289
|
+
auth_type = 'AK',
|
|
1290
|
+
style = 'RPC',
|
|
1291
|
+
req_body_type = 'formData',
|
|
1292
|
+
body_type = 'json'
|
|
1293
|
+
)
|
|
1294
|
+
return DaraCore.from_map(
|
|
1295
|
+
main_models.GetNatTopNResponse(),
|
|
1615
1296
|
self.call_api(params, req, runtime)
|
|
1616
1297
|
)
|
|
1617
1298
|
|
|
1618
1299
|
async def get_nat_top_nwith_options_async(
|
|
1619
1300
|
self,
|
|
1620
|
-
request:
|
|
1621
|
-
runtime:
|
|
1622
|
-
) ->
|
|
1623
|
-
|
|
1624
|
-
@deprecated OpenAPI GetNatTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
1625
|
-
|
|
1626
|
-
@summary Queries the real-time SNAT performance ranking of a NAT gateway.
|
|
1627
|
-
|
|
1628
|
-
@param request: GetNatTopNRequest
|
|
1629
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1630
|
-
@return: GetNatTopNResponse
|
|
1631
|
-
Deprecated
|
|
1632
|
-
"""
|
|
1633
|
-
UtilClient.validate_model(request)
|
|
1301
|
+
request: main_models.GetNatTopNRequest,
|
|
1302
|
+
runtime: RuntimeOptions,
|
|
1303
|
+
) -> main_models.GetNatTopNResponse:
|
|
1304
|
+
request.validate()
|
|
1634
1305
|
query = {}
|
|
1635
|
-
if not
|
|
1306
|
+
if not DaraCore.is_null(request.begin_time):
|
|
1636
1307
|
query['BeginTime'] = request.begin_time
|
|
1637
|
-
if not
|
|
1308
|
+
if not DaraCore.is_null(request.end_time):
|
|
1638
1309
|
query['EndTime'] = request.end_time
|
|
1639
|
-
if not
|
|
1310
|
+
if not DaraCore.is_null(request.ip):
|
|
1640
1311
|
query['Ip'] = request.ip
|
|
1641
|
-
if not
|
|
1312
|
+
if not DaraCore.is_null(request.nat_gateway_id):
|
|
1642
1313
|
query['NatGatewayId'] = request.nat_gateway_id
|
|
1643
|
-
if not
|
|
1314
|
+
if not DaraCore.is_null(request.order_by):
|
|
1644
1315
|
query['OrderBy'] = request.order_by
|
|
1645
|
-
if not
|
|
1316
|
+
if not DaraCore.is_null(request.region_id):
|
|
1646
1317
|
query['RegionId'] = request.region_id
|
|
1647
|
-
if not
|
|
1318
|
+
if not DaraCore.is_null(request.top_n):
|
|
1648
1319
|
query['TopN'] = request.top_n
|
|
1649
|
-
req =
|
|
1650
|
-
query=
|
|
1651
|
-
)
|
|
1652
|
-
params =
|
|
1653
|
-
action='GetNatTopN',
|
|
1654
|
-
version='2021-12-16',
|
|
1655
|
-
protocol='HTTPS',
|
|
1656
|
-
pathname='/',
|
|
1657
|
-
method='POST',
|
|
1658
|
-
auth_type='AK',
|
|
1659
|
-
style='RPC',
|
|
1660
|
-
req_body_type='formData',
|
|
1661
|
-
body_type='json'
|
|
1662
|
-
)
|
|
1663
|
-
return
|
|
1664
|
-
|
|
1320
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1321
|
+
query = Utils.query(query)
|
|
1322
|
+
)
|
|
1323
|
+
params = open_api_util_models.Params(
|
|
1324
|
+
action = 'GetNatTopN',
|
|
1325
|
+
version = '2021-12-16',
|
|
1326
|
+
protocol = 'HTTPS',
|
|
1327
|
+
pathname = '/',
|
|
1328
|
+
method = 'POST',
|
|
1329
|
+
auth_type = 'AK',
|
|
1330
|
+
style = 'RPC',
|
|
1331
|
+
req_body_type = 'formData',
|
|
1332
|
+
body_type = 'json'
|
|
1333
|
+
)
|
|
1334
|
+
return DaraCore.from_map(
|
|
1335
|
+
main_models.GetNatTopNResponse(),
|
|
1665
1336
|
await self.call_api_async(params, req, runtime)
|
|
1666
1337
|
)
|
|
1667
1338
|
|
|
1668
1339
|
def get_nat_top_n(
|
|
1669
1340
|
self,
|
|
1670
|
-
request:
|
|
1671
|
-
) ->
|
|
1672
|
-
|
|
1673
|
-
@deprecated OpenAPI GetNatTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
1674
|
-
|
|
1675
|
-
@summary Queries the real-time SNAT performance ranking of a NAT gateway.
|
|
1676
|
-
|
|
1677
|
-
@param request: GetNatTopNRequest
|
|
1678
|
-
@return: GetNatTopNResponse
|
|
1679
|
-
Deprecated
|
|
1680
|
-
"""
|
|
1681
|
-
runtime = util_models.RuntimeOptions()
|
|
1341
|
+
request: main_models.GetNatTopNRequest,
|
|
1342
|
+
) -> main_models.GetNatTopNResponse:
|
|
1343
|
+
runtime = RuntimeOptions()
|
|
1682
1344
|
return self.get_nat_top_nwith_options(request, runtime)
|
|
1683
1345
|
|
|
1684
1346
|
async def get_nat_top_n_async(
|
|
1685
1347
|
self,
|
|
1686
|
-
request:
|
|
1687
|
-
) ->
|
|
1688
|
-
|
|
1689
|
-
@deprecated OpenAPI GetNatTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
1690
|
-
|
|
1691
|
-
@summary Queries the real-time SNAT performance ranking of a NAT gateway.
|
|
1692
|
-
|
|
1693
|
-
@param request: GetNatTopNRequest
|
|
1694
|
-
@return: GetNatTopNResponse
|
|
1695
|
-
Deprecated
|
|
1696
|
-
"""
|
|
1697
|
-
runtime = util_models.RuntimeOptions()
|
|
1348
|
+
request: main_models.GetNatTopNRequest,
|
|
1349
|
+
) -> main_models.GetNatTopNResponse:
|
|
1350
|
+
runtime = RuntimeOptions()
|
|
1698
1351
|
return await self.get_nat_top_nwith_options_async(request, runtime)
|
|
1699
1352
|
|
|
1700
1353
|
def get_network_reachable_analysis_with_options(
|
|
1701
1354
|
self,
|
|
1702
|
-
request:
|
|
1703
|
-
runtime:
|
|
1704
|
-
) ->
|
|
1705
|
-
|
|
1706
|
-
@summary Obtains the results of network reachability analysis.
|
|
1707
|
-
|
|
1708
|
-
@description *GetNetworkReachableAnalysis** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can query the state of the task for analyzing network reachability.
|
|
1709
|
-
The **init** state indicates that the task is in progress.
|
|
1710
|
-
The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
|
|
1711
|
-
|
|
1712
|
-
@param request: GetNetworkReachableAnalysisRequest
|
|
1713
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1714
|
-
@return: GetNetworkReachableAnalysisResponse
|
|
1715
|
-
"""
|
|
1716
|
-
UtilClient.validate_model(request)
|
|
1355
|
+
request: main_models.GetNetworkReachableAnalysisRequest,
|
|
1356
|
+
runtime: RuntimeOptions,
|
|
1357
|
+
) -> main_models.GetNetworkReachableAnalysisResponse:
|
|
1358
|
+
request.validate()
|
|
1717
1359
|
query = {}
|
|
1718
|
-
if not
|
|
1360
|
+
if not DaraCore.is_null(request.network_reachable_analysis_id):
|
|
1719
1361
|
query['NetworkReachableAnalysisId'] = request.network_reachable_analysis_id
|
|
1720
|
-
if not
|
|
1362
|
+
if not DaraCore.is_null(request.region_id):
|
|
1721
1363
|
query['RegionId'] = request.region_id
|
|
1722
|
-
req =
|
|
1723
|
-
query=
|
|
1724
|
-
)
|
|
1725
|
-
params =
|
|
1726
|
-
action='GetNetworkReachableAnalysis',
|
|
1727
|
-
version='2021-12-16',
|
|
1728
|
-
protocol='HTTPS',
|
|
1729
|
-
pathname='/',
|
|
1730
|
-
method='POST',
|
|
1731
|
-
auth_type='AK',
|
|
1732
|
-
style='RPC',
|
|
1733
|
-
req_body_type='formData',
|
|
1734
|
-
body_type='json'
|
|
1735
|
-
)
|
|
1736
|
-
return
|
|
1737
|
-
|
|
1364
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1365
|
+
query = Utils.query(query)
|
|
1366
|
+
)
|
|
1367
|
+
params = open_api_util_models.Params(
|
|
1368
|
+
action = 'GetNetworkReachableAnalysis',
|
|
1369
|
+
version = '2021-12-16',
|
|
1370
|
+
protocol = 'HTTPS',
|
|
1371
|
+
pathname = '/',
|
|
1372
|
+
method = 'POST',
|
|
1373
|
+
auth_type = 'AK',
|
|
1374
|
+
style = 'RPC',
|
|
1375
|
+
req_body_type = 'formData',
|
|
1376
|
+
body_type = 'json'
|
|
1377
|
+
)
|
|
1378
|
+
return DaraCore.from_map(
|
|
1379
|
+
main_models.GetNetworkReachableAnalysisResponse(),
|
|
1738
1380
|
self.call_api(params, req, runtime)
|
|
1739
1381
|
)
|
|
1740
1382
|
|
|
1741
1383
|
async def get_network_reachable_analysis_with_options_async(
|
|
1742
1384
|
self,
|
|
1743
|
-
request:
|
|
1744
|
-
runtime:
|
|
1745
|
-
) ->
|
|
1746
|
-
|
|
1747
|
-
@summary Obtains the results of network reachability analysis.
|
|
1748
|
-
|
|
1749
|
-
@description *GetNetworkReachableAnalysis** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can query the state of the task for analyzing network reachability.
|
|
1750
|
-
The **init** state indicates that the task is in progress.
|
|
1751
|
-
The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
|
|
1752
|
-
|
|
1753
|
-
@param request: GetNetworkReachableAnalysisRequest
|
|
1754
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
1755
|
-
@return: GetNetworkReachableAnalysisResponse
|
|
1756
|
-
"""
|
|
1757
|
-
UtilClient.validate_model(request)
|
|
1385
|
+
request: main_models.GetNetworkReachableAnalysisRequest,
|
|
1386
|
+
runtime: RuntimeOptions,
|
|
1387
|
+
) -> main_models.GetNetworkReachableAnalysisResponse:
|
|
1388
|
+
request.validate()
|
|
1758
1389
|
query = {}
|
|
1759
|
-
if not
|
|
1390
|
+
if not DaraCore.is_null(request.network_reachable_analysis_id):
|
|
1760
1391
|
query['NetworkReachableAnalysisId'] = request.network_reachable_analysis_id
|
|
1761
|
-
if not
|
|
1392
|
+
if not DaraCore.is_null(request.region_id):
|
|
1762
1393
|
query['RegionId'] = request.region_id
|
|
1763
|
-
req =
|
|
1764
|
-
query=
|
|
1765
|
-
)
|
|
1766
|
-
params =
|
|
1767
|
-
action='GetNetworkReachableAnalysis',
|
|
1768
|
-
version='2021-12-16',
|
|
1769
|
-
protocol='HTTPS',
|
|
1770
|
-
pathname='/',
|
|
1771
|
-
method='POST',
|
|
1772
|
-
auth_type='AK',
|
|
1773
|
-
style='RPC',
|
|
1774
|
-
req_body_type='formData',
|
|
1775
|
-
body_type='json'
|
|
1776
|
-
)
|
|
1777
|
-
return
|
|
1778
|
-
|
|
1394
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1395
|
+
query = Utils.query(query)
|
|
1396
|
+
)
|
|
1397
|
+
params = open_api_util_models.Params(
|
|
1398
|
+
action = 'GetNetworkReachableAnalysis',
|
|
1399
|
+
version = '2021-12-16',
|
|
1400
|
+
protocol = 'HTTPS',
|
|
1401
|
+
pathname = '/',
|
|
1402
|
+
method = 'POST',
|
|
1403
|
+
auth_type = 'AK',
|
|
1404
|
+
style = 'RPC',
|
|
1405
|
+
req_body_type = 'formData',
|
|
1406
|
+
body_type = 'json'
|
|
1407
|
+
)
|
|
1408
|
+
return DaraCore.from_map(
|
|
1409
|
+
main_models.GetNetworkReachableAnalysisResponse(),
|
|
1779
1410
|
await self.call_api_async(params, req, runtime)
|
|
1780
1411
|
)
|
|
1781
1412
|
|
|
1782
1413
|
def get_network_reachable_analysis(
|
|
1783
1414
|
self,
|
|
1784
|
-
request:
|
|
1785
|
-
) ->
|
|
1786
|
-
|
|
1787
|
-
@summary Obtains the results of network reachability analysis.
|
|
1788
|
-
|
|
1789
|
-
@description *GetNetworkReachableAnalysis** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can query the state of the task for analyzing network reachability.
|
|
1790
|
-
The **init** state indicates that the task is in progress.
|
|
1791
|
-
The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
|
|
1792
|
-
|
|
1793
|
-
@param request: GetNetworkReachableAnalysisRequest
|
|
1794
|
-
@return: GetNetworkReachableAnalysisResponse
|
|
1795
|
-
"""
|
|
1796
|
-
runtime = util_models.RuntimeOptions()
|
|
1415
|
+
request: main_models.GetNetworkReachableAnalysisRequest,
|
|
1416
|
+
) -> main_models.GetNetworkReachableAnalysisResponse:
|
|
1417
|
+
runtime = RuntimeOptions()
|
|
1797
1418
|
return self.get_network_reachable_analysis_with_options(request, runtime)
|
|
1798
1419
|
|
|
1799
1420
|
async def get_network_reachable_analysis_async(
|
|
1800
1421
|
self,
|
|
1801
|
-
request:
|
|
1802
|
-
) ->
|
|
1803
|
-
|
|
1804
|
-
@summary Obtains the results of network reachability analysis.
|
|
1805
|
-
|
|
1806
|
-
@description *GetNetworkReachableAnalysis** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can query the state of the task for analyzing network reachability.
|
|
1807
|
-
The **init** state indicates that the task is in progress.
|
|
1808
|
-
The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
|
|
1809
|
-
|
|
1810
|
-
@param request: GetNetworkReachableAnalysisRequest
|
|
1811
|
-
@return: GetNetworkReachableAnalysisResponse
|
|
1812
|
-
"""
|
|
1813
|
-
runtime = util_models.RuntimeOptions()
|
|
1422
|
+
request: main_models.GetNetworkReachableAnalysisRequest,
|
|
1423
|
+
) -> main_models.GetNetworkReachableAnalysisResponse:
|
|
1424
|
+
runtime = RuntimeOptions()
|
|
1814
1425
|
return await self.get_network_reachable_analysis_with_options_async(request, runtime)
|
|
1815
1426
|
|
|
1816
1427
|
def get_nis_network_metrics_with_options(
|
|
1817
1428
|
self,
|
|
1818
|
-
tmp_req:
|
|
1819
|
-
runtime:
|
|
1820
|
-
) ->
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
@return: GetNisNetworkMetricsResponse
|
|
1827
|
-
"""
|
|
1828
|
-
UtilClient.validate_model(tmp_req)
|
|
1829
|
-
request = nis_20211216_models.GetNisNetworkMetricsShrinkRequest()
|
|
1830
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
1831
|
-
if not UtilClient.is_unset(tmp_req.dimensions):
|
|
1832
|
-
request.dimensions_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.dimensions, 'Dimensions', 'json')
|
|
1429
|
+
tmp_req: main_models.GetNisNetworkMetricsRequest,
|
|
1430
|
+
runtime: RuntimeOptions,
|
|
1431
|
+
) -> main_models.GetNisNetworkMetricsResponse:
|
|
1432
|
+
tmp_req.validate()
|
|
1433
|
+
request = main_models.GetNisNetworkMetricsShrinkRequest()
|
|
1434
|
+
Utils.convert(tmp_req, request)
|
|
1435
|
+
if not DaraCore.is_null(tmp_req.dimensions):
|
|
1436
|
+
request.dimensions_shrink = Utils.array_to_string_with_specified_style(tmp_req.dimensions, 'Dimensions', 'json')
|
|
1833
1437
|
query = {}
|
|
1834
|
-
if not
|
|
1438
|
+
if not DaraCore.is_null(request.account_ids):
|
|
1835
1439
|
query['AccountIds'] = request.account_ids
|
|
1836
|
-
if not
|
|
1440
|
+
if not DaraCore.is_null(request.begin_time):
|
|
1837
1441
|
query['BeginTime'] = request.begin_time
|
|
1838
|
-
if not
|
|
1442
|
+
if not DaraCore.is_null(request.dimensions_shrink):
|
|
1839
1443
|
query['Dimensions'] = request.dimensions_shrink
|
|
1840
|
-
if not
|
|
1444
|
+
if not DaraCore.is_null(request.end_time):
|
|
1841
1445
|
query['EndTime'] = request.end_time
|
|
1842
|
-
if not
|
|
1446
|
+
if not DaraCore.is_null(request.metric_name):
|
|
1843
1447
|
query['MetricName'] = request.metric_name
|
|
1844
|
-
if not
|
|
1448
|
+
if not DaraCore.is_null(request.region_no):
|
|
1845
1449
|
query['RegionNo'] = request.region_no
|
|
1846
|
-
if not
|
|
1450
|
+
if not DaraCore.is_null(request.resource_type):
|
|
1847
1451
|
query['ResourceType'] = request.resource_type
|
|
1848
|
-
if not
|
|
1452
|
+
if not DaraCore.is_null(request.scan_by):
|
|
1849
1453
|
query['ScanBy'] = request.scan_by
|
|
1850
|
-
if not
|
|
1454
|
+
if not DaraCore.is_null(request.step_minutes):
|
|
1851
1455
|
query['StepMinutes'] = request.step_minutes
|
|
1852
|
-
if not
|
|
1456
|
+
if not DaraCore.is_null(request.use_cross_account):
|
|
1853
1457
|
query['UseCrossAccount'] = request.use_cross_account
|
|
1854
|
-
req =
|
|
1855
|
-
query=
|
|
1856
|
-
)
|
|
1857
|
-
params =
|
|
1858
|
-
action='GetNisNetworkMetrics',
|
|
1859
|
-
version='2021-12-16',
|
|
1860
|
-
protocol='HTTPS',
|
|
1861
|
-
pathname='/',
|
|
1862
|
-
method='POST',
|
|
1863
|
-
auth_type='AK',
|
|
1864
|
-
style='RPC',
|
|
1865
|
-
req_body_type='formData',
|
|
1866
|
-
body_type='json'
|
|
1867
|
-
)
|
|
1868
|
-
return
|
|
1869
|
-
|
|
1458
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1459
|
+
query = Utils.query(query)
|
|
1460
|
+
)
|
|
1461
|
+
params = open_api_util_models.Params(
|
|
1462
|
+
action = 'GetNisNetworkMetrics',
|
|
1463
|
+
version = '2021-12-16',
|
|
1464
|
+
protocol = 'HTTPS',
|
|
1465
|
+
pathname = '/',
|
|
1466
|
+
method = 'POST',
|
|
1467
|
+
auth_type = 'AK',
|
|
1468
|
+
style = 'RPC',
|
|
1469
|
+
req_body_type = 'formData',
|
|
1470
|
+
body_type = 'json'
|
|
1471
|
+
)
|
|
1472
|
+
return DaraCore.from_map(
|
|
1473
|
+
main_models.GetNisNetworkMetricsResponse(),
|
|
1870
1474
|
self.call_api(params, req, runtime)
|
|
1871
1475
|
)
|
|
1872
1476
|
|
|
1873
1477
|
async def get_nis_network_metrics_with_options_async(
|
|
1874
1478
|
self,
|
|
1875
|
-
tmp_req:
|
|
1876
|
-
runtime:
|
|
1877
|
-
) ->
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
@return: GetNisNetworkMetricsResponse
|
|
1884
|
-
"""
|
|
1885
|
-
UtilClient.validate_model(tmp_req)
|
|
1886
|
-
request = nis_20211216_models.GetNisNetworkMetricsShrinkRequest()
|
|
1887
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
1888
|
-
if not UtilClient.is_unset(tmp_req.dimensions):
|
|
1889
|
-
request.dimensions_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.dimensions, 'Dimensions', 'json')
|
|
1479
|
+
tmp_req: main_models.GetNisNetworkMetricsRequest,
|
|
1480
|
+
runtime: RuntimeOptions,
|
|
1481
|
+
) -> main_models.GetNisNetworkMetricsResponse:
|
|
1482
|
+
tmp_req.validate()
|
|
1483
|
+
request = main_models.GetNisNetworkMetricsShrinkRequest()
|
|
1484
|
+
Utils.convert(tmp_req, request)
|
|
1485
|
+
if not DaraCore.is_null(tmp_req.dimensions):
|
|
1486
|
+
request.dimensions_shrink = Utils.array_to_string_with_specified_style(tmp_req.dimensions, 'Dimensions', 'json')
|
|
1890
1487
|
query = {}
|
|
1891
|
-
if not
|
|
1488
|
+
if not DaraCore.is_null(request.account_ids):
|
|
1892
1489
|
query['AccountIds'] = request.account_ids
|
|
1893
|
-
if not
|
|
1490
|
+
if not DaraCore.is_null(request.begin_time):
|
|
1894
1491
|
query['BeginTime'] = request.begin_time
|
|
1895
|
-
if not
|
|
1492
|
+
if not DaraCore.is_null(request.dimensions_shrink):
|
|
1896
1493
|
query['Dimensions'] = request.dimensions_shrink
|
|
1897
|
-
if not
|
|
1494
|
+
if not DaraCore.is_null(request.end_time):
|
|
1898
1495
|
query['EndTime'] = request.end_time
|
|
1899
|
-
if not
|
|
1496
|
+
if not DaraCore.is_null(request.metric_name):
|
|
1900
1497
|
query['MetricName'] = request.metric_name
|
|
1901
|
-
if not
|
|
1498
|
+
if not DaraCore.is_null(request.region_no):
|
|
1902
1499
|
query['RegionNo'] = request.region_no
|
|
1903
|
-
if not
|
|
1500
|
+
if not DaraCore.is_null(request.resource_type):
|
|
1904
1501
|
query['ResourceType'] = request.resource_type
|
|
1905
|
-
if not
|
|
1502
|
+
if not DaraCore.is_null(request.scan_by):
|
|
1906
1503
|
query['ScanBy'] = request.scan_by
|
|
1907
|
-
if not
|
|
1504
|
+
if not DaraCore.is_null(request.step_minutes):
|
|
1908
1505
|
query['StepMinutes'] = request.step_minutes
|
|
1909
|
-
if not
|
|
1506
|
+
if not DaraCore.is_null(request.use_cross_account):
|
|
1910
1507
|
query['UseCrossAccount'] = request.use_cross_account
|
|
1911
|
-
req =
|
|
1912
|
-
query=
|
|
1913
|
-
)
|
|
1914
|
-
params =
|
|
1915
|
-
action='GetNisNetworkMetrics',
|
|
1916
|
-
version='2021-12-16',
|
|
1917
|
-
protocol='HTTPS',
|
|
1918
|
-
pathname='/',
|
|
1919
|
-
method='POST',
|
|
1920
|
-
auth_type='AK',
|
|
1921
|
-
style='RPC',
|
|
1922
|
-
req_body_type='formData',
|
|
1923
|
-
body_type='json'
|
|
1924
|
-
)
|
|
1925
|
-
return
|
|
1926
|
-
|
|
1508
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1509
|
+
query = Utils.query(query)
|
|
1510
|
+
)
|
|
1511
|
+
params = open_api_util_models.Params(
|
|
1512
|
+
action = 'GetNisNetworkMetrics',
|
|
1513
|
+
version = '2021-12-16',
|
|
1514
|
+
protocol = 'HTTPS',
|
|
1515
|
+
pathname = '/',
|
|
1516
|
+
method = 'POST',
|
|
1517
|
+
auth_type = 'AK',
|
|
1518
|
+
style = 'RPC',
|
|
1519
|
+
req_body_type = 'formData',
|
|
1520
|
+
body_type = 'json'
|
|
1521
|
+
)
|
|
1522
|
+
return DaraCore.from_map(
|
|
1523
|
+
main_models.GetNisNetworkMetricsResponse(),
|
|
1927
1524
|
await self.call_api_async(params, req, runtime)
|
|
1928
1525
|
)
|
|
1929
1526
|
|
|
1930
1527
|
def get_nis_network_metrics(
|
|
1931
1528
|
self,
|
|
1932
|
-
request:
|
|
1933
|
-
) ->
|
|
1934
|
-
|
|
1935
|
-
@summary 获取云网络指标趋势
|
|
1936
|
-
|
|
1937
|
-
@param request: GetNisNetworkMetricsRequest
|
|
1938
|
-
@return: GetNisNetworkMetricsResponse
|
|
1939
|
-
"""
|
|
1940
|
-
runtime = util_models.RuntimeOptions()
|
|
1529
|
+
request: main_models.GetNisNetworkMetricsRequest,
|
|
1530
|
+
) -> main_models.GetNisNetworkMetricsResponse:
|
|
1531
|
+
runtime = RuntimeOptions()
|
|
1941
1532
|
return self.get_nis_network_metrics_with_options(request, runtime)
|
|
1942
1533
|
|
|
1943
1534
|
async def get_nis_network_metrics_async(
|
|
1944
1535
|
self,
|
|
1945
|
-
request:
|
|
1946
|
-
) ->
|
|
1947
|
-
|
|
1948
|
-
@summary 获取云网络指标趋势
|
|
1949
|
-
|
|
1950
|
-
@param request: GetNisNetworkMetricsRequest
|
|
1951
|
-
@return: GetNisNetworkMetricsResponse
|
|
1952
|
-
"""
|
|
1953
|
-
runtime = util_models.RuntimeOptions()
|
|
1536
|
+
request: main_models.GetNisNetworkMetricsRequest,
|
|
1537
|
+
) -> main_models.GetNisNetworkMetricsResponse:
|
|
1538
|
+
runtime = RuntimeOptions()
|
|
1954
1539
|
return await self.get_nis_network_metrics_with_options_async(request, runtime)
|
|
1955
1540
|
|
|
1956
1541
|
def get_nis_network_ranking_with_options(
|
|
1957
1542
|
self,
|
|
1958
|
-
tmp_req:
|
|
1959
|
-
runtime:
|
|
1960
|
-
) ->
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
@return: GetNisNetworkRankingResponse
|
|
1967
|
-
"""
|
|
1968
|
-
UtilClient.validate_model(tmp_req)
|
|
1969
|
-
request = nis_20211216_models.GetNisNetworkRankingShrinkRequest()
|
|
1970
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
1971
|
-
if not UtilClient.is_unset(tmp_req.filter):
|
|
1972
|
-
request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
1543
|
+
tmp_req: main_models.GetNisNetworkRankingRequest,
|
|
1544
|
+
runtime: RuntimeOptions,
|
|
1545
|
+
) -> main_models.GetNisNetworkRankingResponse:
|
|
1546
|
+
tmp_req.validate()
|
|
1547
|
+
request = main_models.GetNisNetworkRankingShrinkRequest()
|
|
1548
|
+
Utils.convert(tmp_req, request)
|
|
1549
|
+
if not DaraCore.is_null(tmp_req.filter):
|
|
1550
|
+
request.filter_shrink = Utils.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
1973
1551
|
query = {}
|
|
1974
|
-
if not
|
|
1552
|
+
if not DaraCore.is_null(request.account_ids):
|
|
1975
1553
|
query['AccountIds'] = request.account_ids
|
|
1976
|
-
if not
|
|
1554
|
+
if not DaraCore.is_null(request.begin_time):
|
|
1977
1555
|
query['BeginTime'] = request.begin_time
|
|
1978
|
-
if not
|
|
1556
|
+
if not DaraCore.is_null(request.direction):
|
|
1979
1557
|
query['Direction'] = request.direction
|
|
1980
|
-
if not
|
|
1558
|
+
if not DaraCore.is_null(request.end_time):
|
|
1981
1559
|
query['EndTime'] = request.end_time
|
|
1982
|
-
if not
|
|
1560
|
+
if not DaraCore.is_null(request.filter_shrink):
|
|
1983
1561
|
query['Filter'] = request.filter_shrink
|
|
1984
|
-
if not
|
|
1562
|
+
if not DaraCore.is_null(request.group_by):
|
|
1985
1563
|
query['GroupBy'] = request.group_by
|
|
1986
|
-
if not
|
|
1564
|
+
if not DaraCore.is_null(request.order_by):
|
|
1987
1565
|
query['OrderBy'] = request.order_by
|
|
1988
|
-
if not
|
|
1566
|
+
if not DaraCore.is_null(request.region_no):
|
|
1989
1567
|
query['RegionNo'] = request.region_no
|
|
1990
|
-
if not
|
|
1568
|
+
if not DaraCore.is_null(request.resource_type):
|
|
1991
1569
|
query['ResourceType'] = request.resource_type
|
|
1992
|
-
if not
|
|
1570
|
+
if not DaraCore.is_null(request.sort):
|
|
1993
1571
|
query['Sort'] = request.sort
|
|
1994
|
-
if not
|
|
1572
|
+
if not DaraCore.is_null(request.top_n):
|
|
1995
1573
|
query['TopN'] = request.top_n
|
|
1996
|
-
if not
|
|
1574
|
+
if not DaraCore.is_null(request.use_cross_account):
|
|
1997
1575
|
query['UseCrossAccount'] = request.use_cross_account
|
|
1998
|
-
req =
|
|
1999
|
-
query=
|
|
2000
|
-
)
|
|
2001
|
-
params =
|
|
2002
|
-
action='GetNisNetworkRanking',
|
|
2003
|
-
version='2021-12-16',
|
|
2004
|
-
protocol='HTTPS',
|
|
2005
|
-
pathname='/',
|
|
2006
|
-
method='POST',
|
|
2007
|
-
auth_type='AK',
|
|
2008
|
-
style='RPC',
|
|
2009
|
-
req_body_type='formData',
|
|
2010
|
-
body_type='json'
|
|
2011
|
-
)
|
|
2012
|
-
return
|
|
2013
|
-
|
|
1576
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1577
|
+
query = Utils.query(query)
|
|
1578
|
+
)
|
|
1579
|
+
params = open_api_util_models.Params(
|
|
1580
|
+
action = 'GetNisNetworkRanking',
|
|
1581
|
+
version = '2021-12-16',
|
|
1582
|
+
protocol = 'HTTPS',
|
|
1583
|
+
pathname = '/',
|
|
1584
|
+
method = 'POST',
|
|
1585
|
+
auth_type = 'AK',
|
|
1586
|
+
style = 'RPC',
|
|
1587
|
+
req_body_type = 'formData',
|
|
1588
|
+
body_type = 'json'
|
|
1589
|
+
)
|
|
1590
|
+
return DaraCore.from_map(
|
|
1591
|
+
main_models.GetNisNetworkRankingResponse(),
|
|
2014
1592
|
self.call_api(params, req, runtime)
|
|
2015
1593
|
)
|
|
2016
1594
|
|
|
2017
1595
|
async def get_nis_network_ranking_with_options_async(
|
|
2018
1596
|
self,
|
|
2019
|
-
tmp_req:
|
|
2020
|
-
runtime:
|
|
2021
|
-
) ->
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
@return: GetNisNetworkRankingResponse
|
|
2028
|
-
"""
|
|
2029
|
-
UtilClient.validate_model(tmp_req)
|
|
2030
|
-
request = nis_20211216_models.GetNisNetworkRankingShrinkRequest()
|
|
2031
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
2032
|
-
if not UtilClient.is_unset(tmp_req.filter):
|
|
2033
|
-
request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
1597
|
+
tmp_req: main_models.GetNisNetworkRankingRequest,
|
|
1598
|
+
runtime: RuntimeOptions,
|
|
1599
|
+
) -> main_models.GetNisNetworkRankingResponse:
|
|
1600
|
+
tmp_req.validate()
|
|
1601
|
+
request = main_models.GetNisNetworkRankingShrinkRequest()
|
|
1602
|
+
Utils.convert(tmp_req, request)
|
|
1603
|
+
if not DaraCore.is_null(tmp_req.filter):
|
|
1604
|
+
request.filter_shrink = Utils.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
2034
1605
|
query = {}
|
|
2035
|
-
if not
|
|
1606
|
+
if not DaraCore.is_null(request.account_ids):
|
|
2036
1607
|
query['AccountIds'] = request.account_ids
|
|
2037
|
-
if not
|
|
1608
|
+
if not DaraCore.is_null(request.begin_time):
|
|
2038
1609
|
query['BeginTime'] = request.begin_time
|
|
2039
|
-
if not
|
|
1610
|
+
if not DaraCore.is_null(request.direction):
|
|
2040
1611
|
query['Direction'] = request.direction
|
|
2041
|
-
if not
|
|
1612
|
+
if not DaraCore.is_null(request.end_time):
|
|
2042
1613
|
query['EndTime'] = request.end_time
|
|
2043
|
-
if not
|
|
1614
|
+
if not DaraCore.is_null(request.filter_shrink):
|
|
2044
1615
|
query['Filter'] = request.filter_shrink
|
|
2045
|
-
if not
|
|
1616
|
+
if not DaraCore.is_null(request.group_by):
|
|
2046
1617
|
query['GroupBy'] = request.group_by
|
|
2047
|
-
if not
|
|
1618
|
+
if not DaraCore.is_null(request.order_by):
|
|
2048
1619
|
query['OrderBy'] = request.order_by
|
|
2049
|
-
if not
|
|
1620
|
+
if not DaraCore.is_null(request.region_no):
|
|
2050
1621
|
query['RegionNo'] = request.region_no
|
|
2051
|
-
if not
|
|
1622
|
+
if not DaraCore.is_null(request.resource_type):
|
|
2052
1623
|
query['ResourceType'] = request.resource_type
|
|
2053
|
-
if not
|
|
1624
|
+
if not DaraCore.is_null(request.sort):
|
|
2054
1625
|
query['Sort'] = request.sort
|
|
2055
|
-
if not
|
|
1626
|
+
if not DaraCore.is_null(request.top_n):
|
|
2056
1627
|
query['TopN'] = request.top_n
|
|
2057
|
-
if not
|
|
1628
|
+
if not DaraCore.is_null(request.use_cross_account):
|
|
2058
1629
|
query['UseCrossAccount'] = request.use_cross_account
|
|
2059
|
-
req =
|
|
2060
|
-
query=
|
|
2061
|
-
)
|
|
2062
|
-
params =
|
|
2063
|
-
action='GetNisNetworkRanking',
|
|
2064
|
-
version='2021-12-16',
|
|
2065
|
-
protocol='HTTPS',
|
|
2066
|
-
pathname='/',
|
|
2067
|
-
method='POST',
|
|
2068
|
-
auth_type='AK',
|
|
2069
|
-
style='RPC',
|
|
2070
|
-
req_body_type='formData',
|
|
2071
|
-
body_type='json'
|
|
2072
|
-
)
|
|
2073
|
-
return
|
|
2074
|
-
|
|
1630
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1631
|
+
query = Utils.query(query)
|
|
1632
|
+
)
|
|
1633
|
+
params = open_api_util_models.Params(
|
|
1634
|
+
action = 'GetNisNetworkRanking',
|
|
1635
|
+
version = '2021-12-16',
|
|
1636
|
+
protocol = 'HTTPS',
|
|
1637
|
+
pathname = '/',
|
|
1638
|
+
method = 'POST',
|
|
1639
|
+
auth_type = 'AK',
|
|
1640
|
+
style = 'RPC',
|
|
1641
|
+
req_body_type = 'formData',
|
|
1642
|
+
body_type = 'json'
|
|
1643
|
+
)
|
|
1644
|
+
return DaraCore.from_map(
|
|
1645
|
+
main_models.GetNisNetworkRankingResponse(),
|
|
2075
1646
|
await self.call_api_async(params, req, runtime)
|
|
2076
1647
|
)
|
|
2077
1648
|
|
|
2078
1649
|
def get_nis_network_ranking(
|
|
2079
1650
|
self,
|
|
2080
|
-
request:
|
|
2081
|
-
) ->
|
|
2082
|
-
|
|
2083
|
-
@summary 获取云网络指标排名
|
|
2084
|
-
|
|
2085
|
-
@param request: GetNisNetworkRankingRequest
|
|
2086
|
-
@return: GetNisNetworkRankingResponse
|
|
2087
|
-
"""
|
|
2088
|
-
runtime = util_models.RuntimeOptions()
|
|
1651
|
+
request: main_models.GetNisNetworkRankingRequest,
|
|
1652
|
+
) -> main_models.GetNisNetworkRankingResponse:
|
|
1653
|
+
runtime = RuntimeOptions()
|
|
2089
1654
|
return self.get_nis_network_ranking_with_options(request, runtime)
|
|
2090
1655
|
|
|
2091
1656
|
async def get_nis_network_ranking_async(
|
|
2092
1657
|
self,
|
|
2093
|
-
request:
|
|
2094
|
-
) ->
|
|
2095
|
-
|
|
2096
|
-
@summary 获取云网络指标排名
|
|
2097
|
-
|
|
2098
|
-
@param request: GetNisNetworkRankingRequest
|
|
2099
|
-
@return: GetNisNetworkRankingResponse
|
|
2100
|
-
"""
|
|
2101
|
-
runtime = util_models.RuntimeOptions()
|
|
1658
|
+
request: main_models.GetNisNetworkRankingRequest,
|
|
1659
|
+
) -> main_models.GetNisNetworkRankingResponse:
|
|
1660
|
+
runtime = RuntimeOptions()
|
|
2102
1661
|
return await self.get_nis_network_ranking_with_options_async(request, runtime)
|
|
2103
1662
|
|
|
2104
1663
|
def get_transit_router_flow_top_nwith_options(
|
|
2105
1664
|
self,
|
|
2106
|
-
tmp_req:
|
|
2107
|
-
runtime:
|
|
2108
|
-
) ->
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
@param tmp_req: GetTransitRouterFlowTopNRequest
|
|
2115
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2116
|
-
@return: GetTransitRouterFlowTopNResponse
|
|
2117
|
-
Deprecated
|
|
2118
|
-
"""
|
|
2119
|
-
UtilClient.validate_model(tmp_req)
|
|
2120
|
-
request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
|
|
2121
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
2122
|
-
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
2123
|
-
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
1665
|
+
tmp_req: main_models.GetTransitRouterFlowTopNRequest,
|
|
1666
|
+
runtime: RuntimeOptions,
|
|
1667
|
+
) -> main_models.GetTransitRouterFlowTopNResponse:
|
|
1668
|
+
tmp_req.validate()
|
|
1669
|
+
request = main_models.GetTransitRouterFlowTopNShrinkRequest()
|
|
1670
|
+
Utils.convert(tmp_req, request)
|
|
1671
|
+
if not DaraCore.is_null(tmp_req.account_ids):
|
|
1672
|
+
request.account_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
2124
1673
|
query = {}
|
|
2125
|
-
if not
|
|
1674
|
+
if not DaraCore.is_null(request.account_ids_shrink):
|
|
2126
1675
|
query['AccountIds'] = request.account_ids_shrink
|
|
2127
|
-
if not
|
|
1676
|
+
if not DaraCore.is_null(request.bandwith_package_id):
|
|
2128
1677
|
query['BandwithPackageId'] = request.bandwith_package_id
|
|
2129
|
-
if not
|
|
1678
|
+
if not DaraCore.is_null(request.begin_time):
|
|
2130
1679
|
query['BeginTime'] = request.begin_time
|
|
2131
|
-
if not
|
|
1680
|
+
if not DaraCore.is_null(request.cen_id):
|
|
2132
1681
|
query['CenId'] = request.cen_id
|
|
2133
|
-
if not
|
|
1682
|
+
if not DaraCore.is_null(request.direction):
|
|
2134
1683
|
query['Direction'] = request.direction
|
|
2135
|
-
if not
|
|
1684
|
+
if not DaraCore.is_null(request.end_time):
|
|
2136
1685
|
query['EndTime'] = request.end_time
|
|
2137
|
-
if not
|
|
1686
|
+
if not DaraCore.is_null(request.group_by):
|
|
2138
1687
|
query['GroupBy'] = request.group_by
|
|
2139
|
-
if not
|
|
1688
|
+
if not DaraCore.is_null(request.order_by):
|
|
2140
1689
|
query['OrderBy'] = request.order_by
|
|
2141
|
-
if not
|
|
1690
|
+
if not DaraCore.is_null(request.other_ip):
|
|
2142
1691
|
query['OtherIp'] = request.other_ip
|
|
2143
|
-
if not
|
|
1692
|
+
if not DaraCore.is_null(request.other_port):
|
|
2144
1693
|
query['OtherPort'] = request.other_port
|
|
2145
|
-
if not
|
|
1694
|
+
if not DaraCore.is_null(request.other_region):
|
|
2146
1695
|
query['OtherRegion'] = request.other_region
|
|
2147
|
-
if not
|
|
1696
|
+
if not DaraCore.is_null(request.protocol):
|
|
2148
1697
|
query['Protocol'] = request.protocol
|
|
2149
|
-
if not
|
|
1698
|
+
if not DaraCore.is_null(request.sort):
|
|
2150
1699
|
query['Sort'] = request.sort
|
|
2151
|
-
if not
|
|
1700
|
+
if not DaraCore.is_null(request.this_ip):
|
|
2152
1701
|
query['ThisIp'] = request.this_ip
|
|
2153
|
-
if not
|
|
1702
|
+
if not DaraCore.is_null(request.this_port):
|
|
2154
1703
|
query['ThisPort'] = request.this_port
|
|
2155
|
-
if not
|
|
1704
|
+
if not DaraCore.is_null(request.this_region):
|
|
2156
1705
|
query['ThisRegion'] = request.this_region
|
|
2157
|
-
if not
|
|
1706
|
+
if not DaraCore.is_null(request.top_n):
|
|
2158
1707
|
query['TopN'] = request.top_n
|
|
2159
|
-
if not
|
|
1708
|
+
if not DaraCore.is_null(request.use_multi_account):
|
|
2160
1709
|
query['UseMultiAccount'] = request.use_multi_account
|
|
2161
|
-
req =
|
|
2162
|
-
query=
|
|
2163
|
-
)
|
|
2164
|
-
params =
|
|
2165
|
-
action='GetTransitRouterFlowTopN',
|
|
2166
|
-
version='2021-12-16',
|
|
2167
|
-
protocol='HTTPS',
|
|
2168
|
-
pathname='/',
|
|
2169
|
-
method='POST',
|
|
2170
|
-
auth_type='AK',
|
|
2171
|
-
style='RPC',
|
|
2172
|
-
req_body_type='formData',
|
|
2173
|
-
body_type='json'
|
|
2174
|
-
)
|
|
2175
|
-
return
|
|
2176
|
-
|
|
1710
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1711
|
+
query = Utils.query(query)
|
|
1712
|
+
)
|
|
1713
|
+
params = open_api_util_models.Params(
|
|
1714
|
+
action = 'GetTransitRouterFlowTopN',
|
|
1715
|
+
version = '2021-12-16',
|
|
1716
|
+
protocol = 'HTTPS',
|
|
1717
|
+
pathname = '/',
|
|
1718
|
+
method = 'POST',
|
|
1719
|
+
auth_type = 'AK',
|
|
1720
|
+
style = 'RPC',
|
|
1721
|
+
req_body_type = 'formData',
|
|
1722
|
+
body_type = 'json'
|
|
1723
|
+
)
|
|
1724
|
+
return DaraCore.from_map(
|
|
1725
|
+
main_models.GetTransitRouterFlowTopNResponse(),
|
|
2177
1726
|
self.call_api(params, req, runtime)
|
|
2178
1727
|
)
|
|
2179
1728
|
|
|
2180
1729
|
async def get_transit_router_flow_top_nwith_options_async(
|
|
2181
1730
|
self,
|
|
2182
|
-
tmp_req:
|
|
2183
|
-
runtime:
|
|
2184
|
-
) ->
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
@param tmp_req: GetTransitRouterFlowTopNRequest
|
|
2191
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2192
|
-
@return: GetTransitRouterFlowTopNResponse
|
|
2193
|
-
Deprecated
|
|
2194
|
-
"""
|
|
2195
|
-
UtilClient.validate_model(tmp_req)
|
|
2196
|
-
request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
|
|
2197
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
2198
|
-
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
2199
|
-
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
1731
|
+
tmp_req: main_models.GetTransitRouterFlowTopNRequest,
|
|
1732
|
+
runtime: RuntimeOptions,
|
|
1733
|
+
) -> main_models.GetTransitRouterFlowTopNResponse:
|
|
1734
|
+
tmp_req.validate()
|
|
1735
|
+
request = main_models.GetTransitRouterFlowTopNShrinkRequest()
|
|
1736
|
+
Utils.convert(tmp_req, request)
|
|
1737
|
+
if not DaraCore.is_null(tmp_req.account_ids):
|
|
1738
|
+
request.account_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
2200
1739
|
query = {}
|
|
2201
|
-
if not
|
|
1740
|
+
if not DaraCore.is_null(request.account_ids_shrink):
|
|
2202
1741
|
query['AccountIds'] = request.account_ids_shrink
|
|
2203
|
-
if not
|
|
1742
|
+
if not DaraCore.is_null(request.bandwith_package_id):
|
|
2204
1743
|
query['BandwithPackageId'] = request.bandwith_package_id
|
|
2205
|
-
if not
|
|
1744
|
+
if not DaraCore.is_null(request.begin_time):
|
|
2206
1745
|
query['BeginTime'] = request.begin_time
|
|
2207
|
-
if not
|
|
1746
|
+
if not DaraCore.is_null(request.cen_id):
|
|
2208
1747
|
query['CenId'] = request.cen_id
|
|
2209
|
-
if not
|
|
1748
|
+
if not DaraCore.is_null(request.direction):
|
|
2210
1749
|
query['Direction'] = request.direction
|
|
2211
|
-
if not
|
|
1750
|
+
if not DaraCore.is_null(request.end_time):
|
|
2212
1751
|
query['EndTime'] = request.end_time
|
|
2213
|
-
if not
|
|
1752
|
+
if not DaraCore.is_null(request.group_by):
|
|
2214
1753
|
query['GroupBy'] = request.group_by
|
|
2215
|
-
if not
|
|
1754
|
+
if not DaraCore.is_null(request.order_by):
|
|
2216
1755
|
query['OrderBy'] = request.order_by
|
|
2217
|
-
if not
|
|
1756
|
+
if not DaraCore.is_null(request.other_ip):
|
|
2218
1757
|
query['OtherIp'] = request.other_ip
|
|
2219
|
-
if not
|
|
1758
|
+
if not DaraCore.is_null(request.other_port):
|
|
2220
1759
|
query['OtherPort'] = request.other_port
|
|
2221
|
-
if not
|
|
1760
|
+
if not DaraCore.is_null(request.other_region):
|
|
2222
1761
|
query['OtherRegion'] = request.other_region
|
|
2223
|
-
if not
|
|
1762
|
+
if not DaraCore.is_null(request.protocol):
|
|
2224
1763
|
query['Protocol'] = request.protocol
|
|
2225
|
-
if not
|
|
1764
|
+
if not DaraCore.is_null(request.sort):
|
|
2226
1765
|
query['Sort'] = request.sort
|
|
2227
|
-
if not
|
|
1766
|
+
if not DaraCore.is_null(request.this_ip):
|
|
2228
1767
|
query['ThisIp'] = request.this_ip
|
|
2229
|
-
if not
|
|
1768
|
+
if not DaraCore.is_null(request.this_port):
|
|
2230
1769
|
query['ThisPort'] = request.this_port
|
|
2231
|
-
if not
|
|
1770
|
+
if not DaraCore.is_null(request.this_region):
|
|
2232
1771
|
query['ThisRegion'] = request.this_region
|
|
2233
|
-
if not
|
|
1772
|
+
if not DaraCore.is_null(request.top_n):
|
|
2234
1773
|
query['TopN'] = request.top_n
|
|
2235
|
-
if not
|
|
1774
|
+
if not DaraCore.is_null(request.use_multi_account):
|
|
2236
1775
|
query['UseMultiAccount'] = request.use_multi_account
|
|
2237
|
-
req =
|
|
2238
|
-
query=
|
|
2239
|
-
)
|
|
2240
|
-
params =
|
|
2241
|
-
action='GetTransitRouterFlowTopN',
|
|
2242
|
-
version='2021-12-16',
|
|
2243
|
-
protocol='HTTPS',
|
|
2244
|
-
pathname='/',
|
|
2245
|
-
method='POST',
|
|
2246
|
-
auth_type='AK',
|
|
2247
|
-
style='RPC',
|
|
2248
|
-
req_body_type='formData',
|
|
2249
|
-
body_type='json'
|
|
2250
|
-
)
|
|
2251
|
-
return
|
|
2252
|
-
|
|
1776
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1777
|
+
query = Utils.query(query)
|
|
1778
|
+
)
|
|
1779
|
+
params = open_api_util_models.Params(
|
|
1780
|
+
action = 'GetTransitRouterFlowTopN',
|
|
1781
|
+
version = '2021-12-16',
|
|
1782
|
+
protocol = 'HTTPS',
|
|
1783
|
+
pathname = '/',
|
|
1784
|
+
method = 'POST',
|
|
1785
|
+
auth_type = 'AK',
|
|
1786
|
+
style = 'RPC',
|
|
1787
|
+
req_body_type = 'formData',
|
|
1788
|
+
body_type = 'json'
|
|
1789
|
+
)
|
|
1790
|
+
return DaraCore.from_map(
|
|
1791
|
+
main_models.GetTransitRouterFlowTopNResponse(),
|
|
2253
1792
|
await self.call_api_async(params, req, runtime)
|
|
2254
1793
|
)
|
|
2255
1794
|
|
|
2256
1795
|
def get_transit_router_flow_top_n(
|
|
2257
1796
|
self,
|
|
2258
|
-
request:
|
|
2259
|
-
) ->
|
|
2260
|
-
|
|
2261
|
-
@deprecated OpenAPI GetTransitRouterFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
2262
|
-
|
|
2263
|
-
@summary Queries the rankings of inter-region traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Inter-region traffic data can be ranked by metrics such as traffic volumes and the number of packets.
|
|
2264
|
-
|
|
2265
|
-
@param request: GetTransitRouterFlowTopNRequest
|
|
2266
|
-
@return: GetTransitRouterFlowTopNResponse
|
|
2267
|
-
Deprecated
|
|
2268
|
-
"""
|
|
2269
|
-
runtime = util_models.RuntimeOptions()
|
|
1797
|
+
request: main_models.GetTransitRouterFlowTopNRequest,
|
|
1798
|
+
) -> main_models.GetTransitRouterFlowTopNResponse:
|
|
1799
|
+
runtime = RuntimeOptions()
|
|
2270
1800
|
return self.get_transit_router_flow_top_nwith_options(request, runtime)
|
|
2271
1801
|
|
|
2272
1802
|
async def get_transit_router_flow_top_n_async(
|
|
2273
1803
|
self,
|
|
2274
|
-
request:
|
|
2275
|
-
) ->
|
|
2276
|
-
|
|
2277
|
-
@deprecated OpenAPI GetTransitRouterFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
2278
|
-
|
|
2279
|
-
@summary Queries the rankings of inter-region traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Inter-region traffic data can be ranked by metrics such as traffic volumes and the number of packets.
|
|
2280
|
-
|
|
2281
|
-
@param request: GetTransitRouterFlowTopNRequest
|
|
2282
|
-
@return: GetTransitRouterFlowTopNResponse
|
|
2283
|
-
Deprecated
|
|
2284
|
-
"""
|
|
2285
|
-
runtime = util_models.RuntimeOptions()
|
|
1804
|
+
request: main_models.GetTransitRouterFlowTopNRequest,
|
|
1805
|
+
) -> main_models.GetTransitRouterFlowTopNResponse:
|
|
1806
|
+
runtime = RuntimeOptions()
|
|
2286
1807
|
return await self.get_transit_router_flow_top_nwith_options_async(request, runtime)
|
|
2287
1808
|
|
|
2288
1809
|
def get_vbr_flow_top_nwith_options(
|
|
2289
1810
|
self,
|
|
2290
|
-
tmp_req:
|
|
2291
|
-
runtime:
|
|
2292
|
-
) ->
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
@param tmp_req: GetVbrFlowTopNRequest
|
|
2299
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2300
|
-
@return: GetVbrFlowTopNResponse
|
|
2301
|
-
Deprecated
|
|
2302
|
-
"""
|
|
2303
|
-
UtilClient.validate_model(tmp_req)
|
|
2304
|
-
request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
|
|
2305
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
2306
|
-
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
2307
|
-
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
1811
|
+
tmp_req: main_models.GetVbrFlowTopNRequest,
|
|
1812
|
+
runtime: RuntimeOptions,
|
|
1813
|
+
) -> main_models.GetVbrFlowTopNResponse:
|
|
1814
|
+
tmp_req.validate()
|
|
1815
|
+
request = main_models.GetVbrFlowTopNShrinkRequest()
|
|
1816
|
+
Utils.convert(tmp_req, request)
|
|
1817
|
+
if not DaraCore.is_null(tmp_req.account_ids):
|
|
1818
|
+
request.account_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
2308
1819
|
query = {}
|
|
2309
|
-
if not
|
|
1820
|
+
if not DaraCore.is_null(request.account_ids_shrink):
|
|
2310
1821
|
query['AccountIds'] = request.account_ids_shrink
|
|
2311
|
-
if not
|
|
1822
|
+
if not DaraCore.is_null(request.attachment_id):
|
|
2312
1823
|
query['AttachmentId'] = request.attachment_id
|
|
2313
|
-
if not
|
|
1824
|
+
if not DaraCore.is_null(request.begin_time):
|
|
2314
1825
|
query['BeginTime'] = request.begin_time
|
|
2315
|
-
if not
|
|
1826
|
+
if not DaraCore.is_null(request.cen_id):
|
|
2316
1827
|
query['CenId'] = request.cen_id
|
|
2317
|
-
if not
|
|
1828
|
+
if not DaraCore.is_null(request.cloud_ip):
|
|
2318
1829
|
query['CloudIp'] = request.cloud_ip
|
|
2319
|
-
if not
|
|
1830
|
+
if not DaraCore.is_null(request.cloud_port):
|
|
2320
1831
|
query['CloudPort'] = request.cloud_port
|
|
2321
|
-
if not
|
|
1832
|
+
if not DaraCore.is_null(request.direction):
|
|
2322
1833
|
query['Direction'] = request.direction
|
|
2323
|
-
if not
|
|
1834
|
+
if not DaraCore.is_null(request.end_time):
|
|
2324
1835
|
query['EndTime'] = request.end_time
|
|
2325
|
-
if not
|
|
1836
|
+
if not DaraCore.is_null(request.group_by):
|
|
2326
1837
|
query['GroupBy'] = request.group_by
|
|
2327
|
-
if not
|
|
1838
|
+
if not DaraCore.is_null(request.order_by):
|
|
2328
1839
|
query['OrderBy'] = request.order_by
|
|
2329
|
-
if not
|
|
1840
|
+
if not DaraCore.is_null(request.other_ip):
|
|
2330
1841
|
query['OtherIp'] = request.other_ip
|
|
2331
|
-
if not
|
|
1842
|
+
if not DaraCore.is_null(request.other_port):
|
|
2332
1843
|
query['OtherPort'] = request.other_port
|
|
2333
|
-
if not
|
|
1844
|
+
if not DaraCore.is_null(request.protocol):
|
|
2334
1845
|
query['Protocol'] = request.protocol
|
|
2335
|
-
if not
|
|
1846
|
+
if not DaraCore.is_null(request.region_id):
|
|
2336
1847
|
query['RegionId'] = request.region_id
|
|
2337
|
-
if not
|
|
1848
|
+
if not DaraCore.is_null(request.sort):
|
|
2338
1849
|
query['Sort'] = request.sort
|
|
2339
|
-
if not
|
|
1850
|
+
if not DaraCore.is_null(request.top_n):
|
|
2340
1851
|
query['TopN'] = request.top_n
|
|
2341
|
-
if not
|
|
1852
|
+
if not DaraCore.is_null(request.use_multi_account):
|
|
2342
1853
|
query['UseMultiAccount'] = request.use_multi_account
|
|
2343
|
-
if not
|
|
1854
|
+
if not DaraCore.is_null(request.virtual_border_router_id):
|
|
2344
1855
|
query['VirtualBorderRouterId'] = request.virtual_border_router_id
|
|
2345
|
-
req =
|
|
2346
|
-
query=
|
|
2347
|
-
)
|
|
2348
|
-
params =
|
|
2349
|
-
action='GetVbrFlowTopN',
|
|
2350
|
-
version='2021-12-16',
|
|
2351
|
-
protocol='HTTPS',
|
|
2352
|
-
pathname='/',
|
|
2353
|
-
method='POST',
|
|
2354
|
-
auth_type='AK',
|
|
2355
|
-
style='RPC',
|
|
2356
|
-
req_body_type='formData',
|
|
2357
|
-
body_type='json'
|
|
2358
|
-
)
|
|
2359
|
-
return
|
|
2360
|
-
|
|
1856
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1857
|
+
query = Utils.query(query)
|
|
1858
|
+
)
|
|
1859
|
+
params = open_api_util_models.Params(
|
|
1860
|
+
action = 'GetVbrFlowTopN',
|
|
1861
|
+
version = '2021-12-16',
|
|
1862
|
+
protocol = 'HTTPS',
|
|
1863
|
+
pathname = '/',
|
|
1864
|
+
method = 'POST',
|
|
1865
|
+
auth_type = 'AK',
|
|
1866
|
+
style = 'RPC',
|
|
1867
|
+
req_body_type = 'formData',
|
|
1868
|
+
body_type = 'json'
|
|
1869
|
+
)
|
|
1870
|
+
return DaraCore.from_map(
|
|
1871
|
+
main_models.GetVbrFlowTopNResponse(),
|
|
2361
1872
|
self.call_api(params, req, runtime)
|
|
2362
1873
|
)
|
|
2363
1874
|
|
|
2364
1875
|
async def get_vbr_flow_top_nwith_options_async(
|
|
2365
1876
|
self,
|
|
2366
|
-
tmp_req:
|
|
2367
|
-
runtime:
|
|
2368
|
-
) ->
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
@param tmp_req: GetVbrFlowTopNRequest
|
|
2375
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2376
|
-
@return: GetVbrFlowTopNResponse
|
|
2377
|
-
Deprecated
|
|
2378
|
-
"""
|
|
2379
|
-
UtilClient.validate_model(tmp_req)
|
|
2380
|
-
request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
|
|
2381
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
|
2382
|
-
if not UtilClient.is_unset(tmp_req.account_ids):
|
|
2383
|
-
request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
1877
|
+
tmp_req: main_models.GetVbrFlowTopNRequest,
|
|
1878
|
+
runtime: RuntimeOptions,
|
|
1879
|
+
) -> main_models.GetVbrFlowTopNResponse:
|
|
1880
|
+
tmp_req.validate()
|
|
1881
|
+
request = main_models.GetVbrFlowTopNShrinkRequest()
|
|
1882
|
+
Utils.convert(tmp_req, request)
|
|
1883
|
+
if not DaraCore.is_null(tmp_req.account_ids):
|
|
1884
|
+
request.account_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
|
|
2384
1885
|
query = {}
|
|
2385
|
-
if not
|
|
1886
|
+
if not DaraCore.is_null(request.account_ids_shrink):
|
|
2386
1887
|
query['AccountIds'] = request.account_ids_shrink
|
|
2387
|
-
if not
|
|
1888
|
+
if not DaraCore.is_null(request.attachment_id):
|
|
2388
1889
|
query['AttachmentId'] = request.attachment_id
|
|
2389
|
-
if not
|
|
1890
|
+
if not DaraCore.is_null(request.begin_time):
|
|
2390
1891
|
query['BeginTime'] = request.begin_time
|
|
2391
|
-
if not
|
|
1892
|
+
if not DaraCore.is_null(request.cen_id):
|
|
2392
1893
|
query['CenId'] = request.cen_id
|
|
2393
|
-
if not
|
|
1894
|
+
if not DaraCore.is_null(request.cloud_ip):
|
|
2394
1895
|
query['CloudIp'] = request.cloud_ip
|
|
2395
|
-
if not
|
|
1896
|
+
if not DaraCore.is_null(request.cloud_port):
|
|
2396
1897
|
query['CloudPort'] = request.cloud_port
|
|
2397
|
-
if not
|
|
1898
|
+
if not DaraCore.is_null(request.direction):
|
|
2398
1899
|
query['Direction'] = request.direction
|
|
2399
|
-
if not
|
|
1900
|
+
if not DaraCore.is_null(request.end_time):
|
|
2400
1901
|
query['EndTime'] = request.end_time
|
|
2401
|
-
if not
|
|
1902
|
+
if not DaraCore.is_null(request.group_by):
|
|
2402
1903
|
query['GroupBy'] = request.group_by
|
|
2403
|
-
if not
|
|
1904
|
+
if not DaraCore.is_null(request.order_by):
|
|
2404
1905
|
query['OrderBy'] = request.order_by
|
|
2405
|
-
if not
|
|
1906
|
+
if not DaraCore.is_null(request.other_ip):
|
|
2406
1907
|
query['OtherIp'] = request.other_ip
|
|
2407
|
-
if not
|
|
1908
|
+
if not DaraCore.is_null(request.other_port):
|
|
2408
1909
|
query['OtherPort'] = request.other_port
|
|
2409
|
-
if not
|
|
1910
|
+
if not DaraCore.is_null(request.protocol):
|
|
2410
1911
|
query['Protocol'] = request.protocol
|
|
2411
|
-
if not
|
|
1912
|
+
if not DaraCore.is_null(request.region_id):
|
|
2412
1913
|
query['RegionId'] = request.region_id
|
|
2413
|
-
if not
|
|
1914
|
+
if not DaraCore.is_null(request.sort):
|
|
2414
1915
|
query['Sort'] = request.sort
|
|
2415
|
-
if not
|
|
1916
|
+
if not DaraCore.is_null(request.top_n):
|
|
2416
1917
|
query['TopN'] = request.top_n
|
|
2417
|
-
if not
|
|
1918
|
+
if not DaraCore.is_null(request.use_multi_account):
|
|
2418
1919
|
query['UseMultiAccount'] = request.use_multi_account
|
|
2419
|
-
if not
|
|
1920
|
+
if not DaraCore.is_null(request.virtual_border_router_id):
|
|
2420
1921
|
query['VirtualBorderRouterId'] = request.virtual_border_router_id
|
|
2421
|
-
req =
|
|
2422
|
-
query=
|
|
2423
|
-
)
|
|
2424
|
-
params =
|
|
2425
|
-
action='GetVbrFlowTopN',
|
|
2426
|
-
version='2021-12-16',
|
|
2427
|
-
protocol='HTTPS',
|
|
2428
|
-
pathname='/',
|
|
2429
|
-
method='POST',
|
|
2430
|
-
auth_type='AK',
|
|
2431
|
-
style='RPC',
|
|
2432
|
-
req_body_type='formData',
|
|
2433
|
-
body_type='json'
|
|
2434
|
-
)
|
|
2435
|
-
return
|
|
2436
|
-
|
|
1922
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1923
|
+
query = Utils.query(query)
|
|
1924
|
+
)
|
|
1925
|
+
params = open_api_util_models.Params(
|
|
1926
|
+
action = 'GetVbrFlowTopN',
|
|
1927
|
+
version = '2021-12-16',
|
|
1928
|
+
protocol = 'HTTPS',
|
|
1929
|
+
pathname = '/',
|
|
1930
|
+
method = 'POST',
|
|
1931
|
+
auth_type = 'AK',
|
|
1932
|
+
style = 'RPC',
|
|
1933
|
+
req_body_type = 'formData',
|
|
1934
|
+
body_type = 'json'
|
|
1935
|
+
)
|
|
1936
|
+
return DaraCore.from_map(
|
|
1937
|
+
main_models.GetVbrFlowTopNResponse(),
|
|
2437
1938
|
await self.call_api_async(params, req, runtime)
|
|
2438
1939
|
)
|
|
2439
1940
|
|
|
2440
1941
|
def get_vbr_flow_top_n(
|
|
2441
1942
|
self,
|
|
2442
|
-
request:
|
|
2443
|
-
) ->
|
|
2444
|
-
|
|
2445
|
-
@deprecated OpenAPI GetVbrFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
2446
|
-
|
|
2447
|
-
@summary Queries the rankings of hybrid cloud traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Hybrid cloud traffic data can be ranked by metrics such as traffic volumes and the number of packets.
|
|
2448
|
-
|
|
2449
|
-
@param request: GetVbrFlowTopNRequest
|
|
2450
|
-
@return: GetVbrFlowTopNResponse
|
|
2451
|
-
Deprecated
|
|
2452
|
-
"""
|
|
2453
|
-
runtime = util_models.RuntimeOptions()
|
|
1943
|
+
request: main_models.GetVbrFlowTopNRequest,
|
|
1944
|
+
) -> main_models.GetVbrFlowTopNResponse:
|
|
1945
|
+
runtime = RuntimeOptions()
|
|
2454
1946
|
return self.get_vbr_flow_top_nwith_options(request, runtime)
|
|
2455
1947
|
|
|
2456
1948
|
async def get_vbr_flow_top_n_async(
|
|
2457
1949
|
self,
|
|
2458
|
-
request:
|
|
2459
|
-
) ->
|
|
2460
|
-
|
|
2461
|
-
@deprecated OpenAPI GetVbrFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
|
|
2462
|
-
|
|
2463
|
-
@summary Queries the rankings of hybrid cloud traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Hybrid cloud traffic data can be ranked by metrics such as traffic volumes and the number of packets.
|
|
2464
|
-
|
|
2465
|
-
@param request: GetVbrFlowTopNRequest
|
|
2466
|
-
@return: GetVbrFlowTopNResponse
|
|
2467
|
-
Deprecated
|
|
2468
|
-
"""
|
|
2469
|
-
runtime = util_models.RuntimeOptions()
|
|
1950
|
+
request: main_models.GetVbrFlowTopNRequest,
|
|
1951
|
+
) -> main_models.GetVbrFlowTopNResponse:
|
|
1952
|
+
runtime = RuntimeOptions()
|
|
2470
1953
|
return await self.get_vbr_flow_top_nwith_options_async(request, runtime)
|
|
2471
1954
|
|
|
2472
1955
|
def list_nis_inspection_resource_type_with_options(
|
|
2473
1956
|
self,
|
|
2474
|
-
runtime:
|
|
2475
|
-
) ->
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
auth_type='AK',
|
|
2491
|
-
style='RPC',
|
|
2492
|
-
req_body_type='formData',
|
|
2493
|
-
body_type='json'
|
|
2494
|
-
)
|
|
2495
|
-
return TeaCore.from_map(
|
|
2496
|
-
nis_20211216_models.ListNisInspectionResourceTypeResponse(),
|
|
1957
|
+
runtime: RuntimeOptions,
|
|
1958
|
+
) -> main_models.ListNisInspectionResourceTypeResponse:
|
|
1959
|
+
req = open_api_util_models.OpenApiRequest()
|
|
1960
|
+
params = open_api_util_models.Params(
|
|
1961
|
+
action = 'ListNisInspectionResourceType',
|
|
1962
|
+
version = '2021-12-16',
|
|
1963
|
+
protocol = 'HTTPS',
|
|
1964
|
+
pathname = '/',
|
|
1965
|
+
method = 'POST',
|
|
1966
|
+
auth_type = 'AK',
|
|
1967
|
+
style = 'RPC',
|
|
1968
|
+
req_body_type = 'formData',
|
|
1969
|
+
body_type = 'json'
|
|
1970
|
+
)
|
|
1971
|
+
return DaraCore.from_map(
|
|
1972
|
+
main_models.ListNisInspectionResourceTypeResponse(),
|
|
2497
1973
|
self.call_api(params, req, runtime)
|
|
2498
1974
|
)
|
|
2499
1975
|
|
|
2500
1976
|
async def list_nis_inspection_resource_type_with_options_async(
|
|
2501
1977
|
self,
|
|
2502
|
-
runtime:
|
|
2503
|
-
) ->
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
auth_type='AK',
|
|
2519
|
-
style='RPC',
|
|
2520
|
-
req_body_type='formData',
|
|
2521
|
-
body_type='json'
|
|
2522
|
-
)
|
|
2523
|
-
return TeaCore.from_map(
|
|
2524
|
-
nis_20211216_models.ListNisInspectionResourceTypeResponse(),
|
|
1978
|
+
runtime: RuntimeOptions,
|
|
1979
|
+
) -> main_models.ListNisInspectionResourceTypeResponse:
|
|
1980
|
+
req = open_api_util_models.OpenApiRequest()
|
|
1981
|
+
params = open_api_util_models.Params(
|
|
1982
|
+
action = 'ListNisInspectionResourceType',
|
|
1983
|
+
version = '2021-12-16',
|
|
1984
|
+
protocol = 'HTTPS',
|
|
1985
|
+
pathname = '/',
|
|
1986
|
+
method = 'POST',
|
|
1987
|
+
auth_type = 'AK',
|
|
1988
|
+
style = 'RPC',
|
|
1989
|
+
req_body_type = 'formData',
|
|
1990
|
+
body_type = 'json'
|
|
1991
|
+
)
|
|
1992
|
+
return DaraCore.from_map(
|
|
1993
|
+
main_models.ListNisInspectionResourceTypeResponse(),
|
|
2525
1994
|
await self.call_api_async(params, req, runtime)
|
|
2526
1995
|
)
|
|
2527
1996
|
|
|
2528
|
-
def list_nis_inspection_resource_type(self) ->
|
|
2529
|
-
|
|
2530
|
-
@summary 巡检资源类型列表
|
|
2531
|
-
|
|
2532
|
-
@return: ListNisInspectionResourceTypeResponse
|
|
2533
|
-
"""
|
|
2534
|
-
runtime = util_models.RuntimeOptions()
|
|
1997
|
+
def list_nis_inspection_resource_type(self) -> main_models.ListNisInspectionResourceTypeResponse:
|
|
1998
|
+
runtime = RuntimeOptions()
|
|
2535
1999
|
return self.list_nis_inspection_resource_type_with_options(runtime)
|
|
2536
2000
|
|
|
2537
|
-
async def list_nis_inspection_resource_type_async(self) ->
|
|
2538
|
-
|
|
2539
|
-
@summary 巡检资源类型列表
|
|
2540
|
-
|
|
2541
|
-
@return: ListNisInspectionResourceTypeResponse
|
|
2542
|
-
"""
|
|
2543
|
-
runtime = util_models.RuntimeOptions()
|
|
2001
|
+
async def list_nis_inspection_resource_type_async(self) -> main_models.ListNisInspectionResourceTypeResponse:
|
|
2002
|
+
runtime = RuntimeOptions()
|
|
2544
2003
|
return await self.list_nis_inspection_resource_type_with_options_async(runtime)
|
|
2545
2004
|
|
|
2546
2005
|
def list_nis_inspection_task_reports_with_options(
|
|
2547
2006
|
self,
|
|
2548
|
-
request:
|
|
2549
|
-
runtime:
|
|
2550
|
-
) ->
|
|
2551
|
-
|
|
2552
|
-
@summary 查询巡检报告列表
|
|
2553
|
-
|
|
2554
|
-
@param request: ListNisInspectionTaskReportsRequest
|
|
2555
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2556
|
-
@return: ListNisInspectionTaskReportsResponse
|
|
2557
|
-
"""
|
|
2558
|
-
UtilClient.validate_model(request)
|
|
2007
|
+
request: main_models.ListNisInspectionTaskReportsRequest,
|
|
2008
|
+
runtime: RuntimeOptions,
|
|
2009
|
+
) -> main_models.ListNisInspectionTaskReportsResponse:
|
|
2010
|
+
request.validate()
|
|
2559
2011
|
query = {}
|
|
2560
|
-
if not
|
|
2012
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2561
2013
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2562
|
-
if not
|
|
2014
|
+
if not DaraCore.is_null(request.max_results):
|
|
2563
2015
|
query['MaxResults'] = request.max_results
|
|
2564
|
-
if not
|
|
2016
|
+
if not DaraCore.is_null(request.next_token):
|
|
2565
2017
|
query['NextToken'] = request.next_token
|
|
2566
|
-
req =
|
|
2567
|
-
query=
|
|
2568
|
-
)
|
|
2569
|
-
params =
|
|
2570
|
-
action='ListNisInspectionTaskReports',
|
|
2571
|
-
version='2021-12-16',
|
|
2572
|
-
protocol='HTTPS',
|
|
2573
|
-
pathname='/',
|
|
2574
|
-
method='POST',
|
|
2575
|
-
auth_type='AK',
|
|
2576
|
-
style='RPC',
|
|
2577
|
-
req_body_type='formData',
|
|
2578
|
-
body_type='json'
|
|
2579
|
-
)
|
|
2580
|
-
return
|
|
2581
|
-
|
|
2018
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2019
|
+
query = Utils.query(query)
|
|
2020
|
+
)
|
|
2021
|
+
params = open_api_util_models.Params(
|
|
2022
|
+
action = 'ListNisInspectionTaskReports',
|
|
2023
|
+
version = '2021-12-16',
|
|
2024
|
+
protocol = 'HTTPS',
|
|
2025
|
+
pathname = '/',
|
|
2026
|
+
method = 'POST',
|
|
2027
|
+
auth_type = 'AK',
|
|
2028
|
+
style = 'RPC',
|
|
2029
|
+
req_body_type = 'formData',
|
|
2030
|
+
body_type = 'json'
|
|
2031
|
+
)
|
|
2032
|
+
return DaraCore.from_map(
|
|
2033
|
+
main_models.ListNisInspectionTaskReportsResponse(),
|
|
2582
2034
|
self.call_api(params, req, runtime)
|
|
2583
2035
|
)
|
|
2584
2036
|
|
|
2585
2037
|
async def list_nis_inspection_task_reports_with_options_async(
|
|
2586
2038
|
self,
|
|
2587
|
-
request:
|
|
2588
|
-
runtime:
|
|
2589
|
-
) ->
|
|
2590
|
-
|
|
2591
|
-
@summary 查询巡检报告列表
|
|
2592
|
-
|
|
2593
|
-
@param request: ListNisInspectionTaskReportsRequest
|
|
2594
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2595
|
-
@return: ListNisInspectionTaskReportsResponse
|
|
2596
|
-
"""
|
|
2597
|
-
UtilClient.validate_model(request)
|
|
2039
|
+
request: main_models.ListNisInspectionTaskReportsRequest,
|
|
2040
|
+
runtime: RuntimeOptions,
|
|
2041
|
+
) -> main_models.ListNisInspectionTaskReportsResponse:
|
|
2042
|
+
request.validate()
|
|
2598
2043
|
query = {}
|
|
2599
|
-
if not
|
|
2044
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2600
2045
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2601
|
-
if not
|
|
2046
|
+
if not DaraCore.is_null(request.max_results):
|
|
2602
2047
|
query['MaxResults'] = request.max_results
|
|
2603
|
-
if not
|
|
2048
|
+
if not DaraCore.is_null(request.next_token):
|
|
2604
2049
|
query['NextToken'] = request.next_token
|
|
2605
|
-
req =
|
|
2606
|
-
query=
|
|
2607
|
-
)
|
|
2608
|
-
params =
|
|
2609
|
-
action='ListNisInspectionTaskReports',
|
|
2610
|
-
version='2021-12-16',
|
|
2611
|
-
protocol='HTTPS',
|
|
2612
|
-
pathname='/',
|
|
2613
|
-
method='POST',
|
|
2614
|
-
auth_type='AK',
|
|
2615
|
-
style='RPC',
|
|
2616
|
-
req_body_type='formData',
|
|
2617
|
-
body_type='json'
|
|
2618
|
-
)
|
|
2619
|
-
return
|
|
2620
|
-
|
|
2050
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2051
|
+
query = Utils.query(query)
|
|
2052
|
+
)
|
|
2053
|
+
params = open_api_util_models.Params(
|
|
2054
|
+
action = 'ListNisInspectionTaskReports',
|
|
2055
|
+
version = '2021-12-16',
|
|
2056
|
+
protocol = 'HTTPS',
|
|
2057
|
+
pathname = '/',
|
|
2058
|
+
method = 'POST',
|
|
2059
|
+
auth_type = 'AK',
|
|
2060
|
+
style = 'RPC',
|
|
2061
|
+
req_body_type = 'formData',
|
|
2062
|
+
body_type = 'json'
|
|
2063
|
+
)
|
|
2064
|
+
return DaraCore.from_map(
|
|
2065
|
+
main_models.ListNisInspectionTaskReportsResponse(),
|
|
2621
2066
|
await self.call_api_async(params, req, runtime)
|
|
2622
2067
|
)
|
|
2623
2068
|
|
|
2624
2069
|
def list_nis_inspection_task_reports(
|
|
2625
2070
|
self,
|
|
2626
|
-
request:
|
|
2627
|
-
) ->
|
|
2628
|
-
|
|
2629
|
-
@summary 查询巡检报告列表
|
|
2630
|
-
|
|
2631
|
-
@param request: ListNisInspectionTaskReportsRequest
|
|
2632
|
-
@return: ListNisInspectionTaskReportsResponse
|
|
2633
|
-
"""
|
|
2634
|
-
runtime = util_models.RuntimeOptions()
|
|
2071
|
+
request: main_models.ListNisInspectionTaskReportsRequest,
|
|
2072
|
+
) -> main_models.ListNisInspectionTaskReportsResponse:
|
|
2073
|
+
runtime = RuntimeOptions()
|
|
2635
2074
|
return self.list_nis_inspection_task_reports_with_options(request, runtime)
|
|
2636
2075
|
|
|
2637
2076
|
async def list_nis_inspection_task_reports_async(
|
|
2638
2077
|
self,
|
|
2639
|
-
request:
|
|
2640
|
-
) ->
|
|
2641
|
-
|
|
2642
|
-
@summary 查询巡检报告列表
|
|
2643
|
-
|
|
2644
|
-
@param request: ListNisInspectionTaskReportsRequest
|
|
2645
|
-
@return: ListNisInspectionTaskReportsResponse
|
|
2646
|
-
"""
|
|
2647
|
-
runtime = util_models.RuntimeOptions()
|
|
2078
|
+
request: main_models.ListNisInspectionTaskReportsRequest,
|
|
2079
|
+
) -> main_models.ListNisInspectionTaskReportsResponse:
|
|
2080
|
+
runtime = RuntimeOptions()
|
|
2648
2081
|
return await self.list_nis_inspection_task_reports_with_options_async(request, runtime)
|
|
2649
2082
|
|
|
2650
2083
|
def list_nis_inspection_tasks_with_options(
|
|
2651
2084
|
self,
|
|
2652
|
-
request:
|
|
2653
|
-
runtime:
|
|
2654
|
-
) ->
|
|
2655
|
-
|
|
2656
|
-
@summary 巡检任务列表
|
|
2657
|
-
|
|
2658
|
-
@param request: ListNisInspectionTasksRequest
|
|
2659
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2660
|
-
@return: ListNisInspectionTasksResponse
|
|
2661
|
-
"""
|
|
2662
|
-
UtilClient.validate_model(request)
|
|
2085
|
+
request: main_models.ListNisInspectionTasksRequest,
|
|
2086
|
+
runtime: RuntimeOptions,
|
|
2087
|
+
) -> main_models.ListNisInspectionTasksResponse:
|
|
2088
|
+
request.validate()
|
|
2663
2089
|
query = {}
|
|
2664
|
-
if not
|
|
2090
|
+
if not DaraCore.is_null(request.inspection_name):
|
|
2665
2091
|
query['InspectionName'] = request.inspection_name
|
|
2666
|
-
if not
|
|
2092
|
+
if not DaraCore.is_null(request.inspection_project):
|
|
2667
2093
|
query['InspectionProject'] = request.inspection_project
|
|
2668
|
-
if not
|
|
2094
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2669
2095
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2670
|
-
if not
|
|
2096
|
+
if not DaraCore.is_null(request.max_results):
|
|
2671
2097
|
query['MaxResults'] = request.max_results
|
|
2672
|
-
if not
|
|
2098
|
+
if not DaraCore.is_null(request.next_token):
|
|
2673
2099
|
query['NextToken'] = request.next_token
|
|
2674
|
-
if not
|
|
2100
|
+
if not DaraCore.is_null(request.status):
|
|
2675
2101
|
query['Status'] = request.status
|
|
2676
|
-
req =
|
|
2677
|
-
query=
|
|
2678
|
-
)
|
|
2679
|
-
params =
|
|
2680
|
-
action='ListNisInspectionTasks',
|
|
2681
|
-
version='2021-12-16',
|
|
2682
|
-
protocol='HTTPS',
|
|
2683
|
-
pathname='/',
|
|
2684
|
-
method='POST',
|
|
2685
|
-
auth_type='AK',
|
|
2686
|
-
style='RPC',
|
|
2687
|
-
req_body_type='formData',
|
|
2688
|
-
body_type='json'
|
|
2689
|
-
)
|
|
2690
|
-
return
|
|
2691
|
-
|
|
2102
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2103
|
+
query = Utils.query(query)
|
|
2104
|
+
)
|
|
2105
|
+
params = open_api_util_models.Params(
|
|
2106
|
+
action = 'ListNisInspectionTasks',
|
|
2107
|
+
version = '2021-12-16',
|
|
2108
|
+
protocol = 'HTTPS',
|
|
2109
|
+
pathname = '/',
|
|
2110
|
+
method = 'POST',
|
|
2111
|
+
auth_type = 'AK',
|
|
2112
|
+
style = 'RPC',
|
|
2113
|
+
req_body_type = 'formData',
|
|
2114
|
+
body_type = 'json'
|
|
2115
|
+
)
|
|
2116
|
+
return DaraCore.from_map(
|
|
2117
|
+
main_models.ListNisInspectionTasksResponse(),
|
|
2692
2118
|
self.call_api(params, req, runtime)
|
|
2693
2119
|
)
|
|
2694
2120
|
|
|
2695
2121
|
async def list_nis_inspection_tasks_with_options_async(
|
|
2696
2122
|
self,
|
|
2697
|
-
request:
|
|
2698
|
-
runtime:
|
|
2699
|
-
) ->
|
|
2700
|
-
|
|
2701
|
-
@summary 巡检任务列表
|
|
2702
|
-
|
|
2703
|
-
@param request: ListNisInspectionTasksRequest
|
|
2704
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2705
|
-
@return: ListNisInspectionTasksResponse
|
|
2706
|
-
"""
|
|
2707
|
-
UtilClient.validate_model(request)
|
|
2123
|
+
request: main_models.ListNisInspectionTasksRequest,
|
|
2124
|
+
runtime: RuntimeOptions,
|
|
2125
|
+
) -> main_models.ListNisInspectionTasksResponse:
|
|
2126
|
+
request.validate()
|
|
2708
2127
|
query = {}
|
|
2709
|
-
if not
|
|
2128
|
+
if not DaraCore.is_null(request.inspection_name):
|
|
2710
2129
|
query['InspectionName'] = request.inspection_name
|
|
2711
|
-
if not
|
|
2130
|
+
if not DaraCore.is_null(request.inspection_project):
|
|
2712
2131
|
query['InspectionProject'] = request.inspection_project
|
|
2713
|
-
if not
|
|
2132
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2714
2133
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2715
|
-
if not
|
|
2134
|
+
if not DaraCore.is_null(request.max_results):
|
|
2716
2135
|
query['MaxResults'] = request.max_results
|
|
2717
|
-
if not
|
|
2136
|
+
if not DaraCore.is_null(request.next_token):
|
|
2718
2137
|
query['NextToken'] = request.next_token
|
|
2719
|
-
if not
|
|
2138
|
+
if not DaraCore.is_null(request.status):
|
|
2720
2139
|
query['Status'] = request.status
|
|
2721
|
-
req =
|
|
2722
|
-
query=
|
|
2723
|
-
)
|
|
2724
|
-
params =
|
|
2725
|
-
action='ListNisInspectionTasks',
|
|
2726
|
-
version='2021-12-16',
|
|
2727
|
-
protocol='HTTPS',
|
|
2728
|
-
pathname='/',
|
|
2729
|
-
method='POST',
|
|
2730
|
-
auth_type='AK',
|
|
2731
|
-
style='RPC',
|
|
2732
|
-
req_body_type='formData',
|
|
2733
|
-
body_type='json'
|
|
2734
|
-
)
|
|
2735
|
-
return
|
|
2736
|
-
|
|
2140
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2141
|
+
query = Utils.query(query)
|
|
2142
|
+
)
|
|
2143
|
+
params = open_api_util_models.Params(
|
|
2144
|
+
action = 'ListNisInspectionTasks',
|
|
2145
|
+
version = '2021-12-16',
|
|
2146
|
+
protocol = 'HTTPS',
|
|
2147
|
+
pathname = '/',
|
|
2148
|
+
method = 'POST',
|
|
2149
|
+
auth_type = 'AK',
|
|
2150
|
+
style = 'RPC',
|
|
2151
|
+
req_body_type = 'formData',
|
|
2152
|
+
body_type = 'json'
|
|
2153
|
+
)
|
|
2154
|
+
return DaraCore.from_map(
|
|
2155
|
+
main_models.ListNisInspectionTasksResponse(),
|
|
2737
2156
|
await self.call_api_async(params, req, runtime)
|
|
2738
2157
|
)
|
|
2739
2158
|
|
|
2740
2159
|
def list_nis_inspection_tasks(
|
|
2741
2160
|
self,
|
|
2742
|
-
request:
|
|
2743
|
-
) ->
|
|
2744
|
-
|
|
2745
|
-
@summary 巡检任务列表
|
|
2746
|
-
|
|
2747
|
-
@param request: ListNisInspectionTasksRequest
|
|
2748
|
-
@return: ListNisInspectionTasksResponse
|
|
2749
|
-
"""
|
|
2750
|
-
runtime = util_models.RuntimeOptions()
|
|
2161
|
+
request: main_models.ListNisInspectionTasksRequest,
|
|
2162
|
+
) -> main_models.ListNisInspectionTasksResponse:
|
|
2163
|
+
runtime = RuntimeOptions()
|
|
2751
2164
|
return self.list_nis_inspection_tasks_with_options(request, runtime)
|
|
2752
2165
|
|
|
2753
2166
|
async def list_nis_inspection_tasks_async(
|
|
2754
2167
|
self,
|
|
2755
|
-
request:
|
|
2756
|
-
) ->
|
|
2757
|
-
|
|
2758
|
-
@summary 巡检任务列表
|
|
2759
|
-
|
|
2760
|
-
@param request: ListNisInspectionTasksRequest
|
|
2761
|
-
@return: ListNisInspectionTasksResponse
|
|
2762
|
-
"""
|
|
2763
|
-
runtime = util_models.RuntimeOptions()
|
|
2168
|
+
request: main_models.ListNisInspectionTasksRequest,
|
|
2169
|
+
) -> main_models.ListNisInspectionTasksResponse:
|
|
2170
|
+
runtime = RuntimeOptions()
|
|
2764
2171
|
return await self.list_nis_inspection_tasks_with_options_async(request, runtime)
|
|
2765
2172
|
|
|
2766
2173
|
def start_nis_inspection_task_with_options(
|
|
2767
2174
|
self,
|
|
2768
|
-
request:
|
|
2769
|
-
runtime:
|
|
2770
|
-
) ->
|
|
2771
|
-
|
|
2772
|
-
@summary 请补充描述开启任务
|
|
2773
|
-
|
|
2774
|
-
@param request: StartNisInspectionTaskRequest
|
|
2775
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2776
|
-
@return: StartNisInspectionTaskResponse
|
|
2777
|
-
"""
|
|
2778
|
-
UtilClient.validate_model(request)
|
|
2175
|
+
request: main_models.StartNisInspectionTaskRequest,
|
|
2176
|
+
runtime: RuntimeOptions,
|
|
2177
|
+
) -> main_models.StartNisInspectionTaskResponse:
|
|
2178
|
+
request.validate()
|
|
2779
2179
|
query = {}
|
|
2780
|
-
if not
|
|
2180
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2781
2181
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2782
|
-
req =
|
|
2783
|
-
query=
|
|
2784
|
-
)
|
|
2785
|
-
params =
|
|
2786
|
-
action='StartNisInspectionTask',
|
|
2787
|
-
version='2021-12-16',
|
|
2788
|
-
protocol='HTTPS',
|
|
2789
|
-
pathname='/',
|
|
2790
|
-
method='POST',
|
|
2791
|
-
auth_type='AK',
|
|
2792
|
-
style='RPC',
|
|
2793
|
-
req_body_type='formData',
|
|
2794
|
-
body_type='json'
|
|
2795
|
-
)
|
|
2796
|
-
return
|
|
2797
|
-
|
|
2182
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2183
|
+
query = Utils.query(query)
|
|
2184
|
+
)
|
|
2185
|
+
params = open_api_util_models.Params(
|
|
2186
|
+
action = 'StartNisInspectionTask',
|
|
2187
|
+
version = '2021-12-16',
|
|
2188
|
+
protocol = 'HTTPS',
|
|
2189
|
+
pathname = '/',
|
|
2190
|
+
method = 'POST',
|
|
2191
|
+
auth_type = 'AK',
|
|
2192
|
+
style = 'RPC',
|
|
2193
|
+
req_body_type = 'formData',
|
|
2194
|
+
body_type = 'json'
|
|
2195
|
+
)
|
|
2196
|
+
return DaraCore.from_map(
|
|
2197
|
+
main_models.StartNisInspectionTaskResponse(),
|
|
2798
2198
|
self.call_api(params, req, runtime)
|
|
2799
2199
|
)
|
|
2800
2200
|
|
|
2801
2201
|
async def start_nis_inspection_task_with_options_async(
|
|
2802
2202
|
self,
|
|
2803
|
-
request:
|
|
2804
|
-
runtime:
|
|
2805
|
-
) ->
|
|
2806
|
-
|
|
2807
|
-
@summary 请补充描述开启任务
|
|
2808
|
-
|
|
2809
|
-
@param request: StartNisInspectionTaskRequest
|
|
2810
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2811
|
-
@return: StartNisInspectionTaskResponse
|
|
2812
|
-
"""
|
|
2813
|
-
UtilClient.validate_model(request)
|
|
2203
|
+
request: main_models.StartNisInspectionTaskRequest,
|
|
2204
|
+
runtime: RuntimeOptions,
|
|
2205
|
+
) -> main_models.StartNisInspectionTaskResponse:
|
|
2206
|
+
request.validate()
|
|
2814
2207
|
query = {}
|
|
2815
|
-
if not
|
|
2208
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2816
2209
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2817
|
-
req =
|
|
2818
|
-
query=
|
|
2819
|
-
)
|
|
2820
|
-
params =
|
|
2821
|
-
action='StartNisInspectionTask',
|
|
2822
|
-
version='2021-12-16',
|
|
2823
|
-
protocol='HTTPS',
|
|
2824
|
-
pathname='/',
|
|
2825
|
-
method='POST',
|
|
2826
|
-
auth_type='AK',
|
|
2827
|
-
style='RPC',
|
|
2828
|
-
req_body_type='formData',
|
|
2829
|
-
body_type='json'
|
|
2830
|
-
)
|
|
2831
|
-
return
|
|
2832
|
-
|
|
2210
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2211
|
+
query = Utils.query(query)
|
|
2212
|
+
)
|
|
2213
|
+
params = open_api_util_models.Params(
|
|
2214
|
+
action = 'StartNisInspectionTask',
|
|
2215
|
+
version = '2021-12-16',
|
|
2216
|
+
protocol = 'HTTPS',
|
|
2217
|
+
pathname = '/',
|
|
2218
|
+
method = 'POST',
|
|
2219
|
+
auth_type = 'AK',
|
|
2220
|
+
style = 'RPC',
|
|
2221
|
+
req_body_type = 'formData',
|
|
2222
|
+
body_type = 'json'
|
|
2223
|
+
)
|
|
2224
|
+
return DaraCore.from_map(
|
|
2225
|
+
main_models.StartNisInspectionTaskResponse(),
|
|
2833
2226
|
await self.call_api_async(params, req, runtime)
|
|
2834
2227
|
)
|
|
2835
2228
|
|
|
2836
2229
|
def start_nis_inspection_task(
|
|
2837
2230
|
self,
|
|
2838
|
-
request:
|
|
2839
|
-
) ->
|
|
2840
|
-
|
|
2841
|
-
@summary 请补充描述开启任务
|
|
2842
|
-
|
|
2843
|
-
@param request: StartNisInspectionTaskRequest
|
|
2844
|
-
@return: StartNisInspectionTaskResponse
|
|
2845
|
-
"""
|
|
2846
|
-
runtime = util_models.RuntimeOptions()
|
|
2231
|
+
request: main_models.StartNisInspectionTaskRequest,
|
|
2232
|
+
) -> main_models.StartNisInspectionTaskResponse:
|
|
2233
|
+
runtime = RuntimeOptions()
|
|
2847
2234
|
return self.start_nis_inspection_task_with_options(request, runtime)
|
|
2848
2235
|
|
|
2849
2236
|
async def start_nis_inspection_task_async(
|
|
2850
2237
|
self,
|
|
2851
|
-
request:
|
|
2852
|
-
) ->
|
|
2853
|
-
|
|
2854
|
-
@summary 请补充描述开启任务
|
|
2855
|
-
|
|
2856
|
-
@param request: StartNisInspectionTaskRequest
|
|
2857
|
-
@return: StartNisInspectionTaskResponse
|
|
2858
|
-
"""
|
|
2859
|
-
runtime = util_models.RuntimeOptions()
|
|
2238
|
+
request: main_models.StartNisInspectionTaskRequest,
|
|
2239
|
+
) -> main_models.StartNisInspectionTaskResponse:
|
|
2240
|
+
runtime = RuntimeOptions()
|
|
2860
2241
|
return await self.start_nis_inspection_task_with_options_async(request, runtime)
|
|
2861
2242
|
|
|
2243
|
+
def start_nis_traffic_ranking_with_options(
|
|
2244
|
+
self,
|
|
2245
|
+
tmp_req: main_models.StartNisTrafficRankingRequest,
|
|
2246
|
+
runtime: RuntimeOptions,
|
|
2247
|
+
) -> main_models.StartNisTrafficRankingResponse:
|
|
2248
|
+
tmp_req.validate()
|
|
2249
|
+
request = main_models.StartNisTrafficRankingShrinkRequest()
|
|
2250
|
+
Utils.convert(tmp_req, request)
|
|
2251
|
+
if not DaraCore.is_null(tmp_req.filter):
|
|
2252
|
+
request.filter_shrink = Utils.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
2253
|
+
if not DaraCore.is_null(tmp_req.group_by):
|
|
2254
|
+
request.group_by_shrink = Utils.array_to_string_with_specified_style(tmp_req.group_by, 'GroupBy', 'json')
|
|
2255
|
+
query = {}
|
|
2256
|
+
if not DaraCore.is_null(request.begin_time):
|
|
2257
|
+
query['BeginTime'] = request.begin_time
|
|
2258
|
+
if not DaraCore.is_null(request.direction):
|
|
2259
|
+
query['Direction'] = request.direction
|
|
2260
|
+
if not DaraCore.is_null(request.end_time):
|
|
2261
|
+
query['EndTime'] = request.end_time
|
|
2262
|
+
if not DaraCore.is_null(request.filter_shrink):
|
|
2263
|
+
query['Filter'] = request.filter_shrink
|
|
2264
|
+
if not DaraCore.is_null(request.group_by_shrink):
|
|
2265
|
+
query['GroupBy'] = request.group_by_shrink
|
|
2266
|
+
if not DaraCore.is_null(request.language):
|
|
2267
|
+
query['Language'] = request.language
|
|
2268
|
+
if not DaraCore.is_null(request.max_results):
|
|
2269
|
+
query['MaxResults'] = request.max_results
|
|
2270
|
+
if not DaraCore.is_null(request.next_token):
|
|
2271
|
+
query['NextToken'] = request.next_token
|
|
2272
|
+
if not DaraCore.is_null(request.order_by):
|
|
2273
|
+
query['OrderBy'] = request.order_by
|
|
2274
|
+
if not DaraCore.is_null(request.region_no):
|
|
2275
|
+
query['RegionNo'] = request.region_no
|
|
2276
|
+
if not DaraCore.is_null(request.sort):
|
|
2277
|
+
query['Sort'] = request.sort
|
|
2278
|
+
if not DaraCore.is_null(request.storage_interval):
|
|
2279
|
+
query['StorageInterval'] = request.storage_interval
|
|
2280
|
+
if not DaraCore.is_null(request.top_n):
|
|
2281
|
+
query['TopN'] = request.top_n
|
|
2282
|
+
if not DaraCore.is_null(request.traffic_analyzer_id):
|
|
2283
|
+
query['TrafficAnalyzerId'] = request.traffic_analyzer_id
|
|
2284
|
+
if not DaraCore.is_null(request.traffic_scenario):
|
|
2285
|
+
query['TrafficScenario'] = request.traffic_scenario
|
|
2286
|
+
if not DaraCore.is_null(request.tuple_dimension):
|
|
2287
|
+
query['TupleDimension'] = request.tuple_dimension
|
|
2288
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2289
|
+
query = Utils.query(query)
|
|
2290
|
+
)
|
|
2291
|
+
params = open_api_util_models.Params(
|
|
2292
|
+
action = 'StartNisTrafficRanking',
|
|
2293
|
+
version = '2021-12-16',
|
|
2294
|
+
protocol = 'HTTPS',
|
|
2295
|
+
pathname = '/',
|
|
2296
|
+
method = 'POST',
|
|
2297
|
+
auth_type = 'AK',
|
|
2298
|
+
style = 'RPC',
|
|
2299
|
+
req_body_type = 'formData',
|
|
2300
|
+
body_type = 'json'
|
|
2301
|
+
)
|
|
2302
|
+
return DaraCore.from_map(
|
|
2303
|
+
main_models.StartNisTrafficRankingResponse(),
|
|
2304
|
+
self.call_api(params, req, runtime)
|
|
2305
|
+
)
|
|
2306
|
+
|
|
2307
|
+
async def start_nis_traffic_ranking_with_options_async(
|
|
2308
|
+
self,
|
|
2309
|
+
tmp_req: main_models.StartNisTrafficRankingRequest,
|
|
2310
|
+
runtime: RuntimeOptions,
|
|
2311
|
+
) -> main_models.StartNisTrafficRankingResponse:
|
|
2312
|
+
tmp_req.validate()
|
|
2313
|
+
request = main_models.StartNisTrafficRankingShrinkRequest()
|
|
2314
|
+
Utils.convert(tmp_req, request)
|
|
2315
|
+
if not DaraCore.is_null(tmp_req.filter):
|
|
2316
|
+
request.filter_shrink = Utils.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
2317
|
+
if not DaraCore.is_null(tmp_req.group_by):
|
|
2318
|
+
request.group_by_shrink = Utils.array_to_string_with_specified_style(tmp_req.group_by, 'GroupBy', 'json')
|
|
2319
|
+
query = {}
|
|
2320
|
+
if not DaraCore.is_null(request.begin_time):
|
|
2321
|
+
query['BeginTime'] = request.begin_time
|
|
2322
|
+
if not DaraCore.is_null(request.direction):
|
|
2323
|
+
query['Direction'] = request.direction
|
|
2324
|
+
if not DaraCore.is_null(request.end_time):
|
|
2325
|
+
query['EndTime'] = request.end_time
|
|
2326
|
+
if not DaraCore.is_null(request.filter_shrink):
|
|
2327
|
+
query['Filter'] = request.filter_shrink
|
|
2328
|
+
if not DaraCore.is_null(request.group_by_shrink):
|
|
2329
|
+
query['GroupBy'] = request.group_by_shrink
|
|
2330
|
+
if not DaraCore.is_null(request.language):
|
|
2331
|
+
query['Language'] = request.language
|
|
2332
|
+
if not DaraCore.is_null(request.max_results):
|
|
2333
|
+
query['MaxResults'] = request.max_results
|
|
2334
|
+
if not DaraCore.is_null(request.next_token):
|
|
2335
|
+
query['NextToken'] = request.next_token
|
|
2336
|
+
if not DaraCore.is_null(request.order_by):
|
|
2337
|
+
query['OrderBy'] = request.order_by
|
|
2338
|
+
if not DaraCore.is_null(request.region_no):
|
|
2339
|
+
query['RegionNo'] = request.region_no
|
|
2340
|
+
if not DaraCore.is_null(request.sort):
|
|
2341
|
+
query['Sort'] = request.sort
|
|
2342
|
+
if not DaraCore.is_null(request.storage_interval):
|
|
2343
|
+
query['StorageInterval'] = request.storage_interval
|
|
2344
|
+
if not DaraCore.is_null(request.top_n):
|
|
2345
|
+
query['TopN'] = request.top_n
|
|
2346
|
+
if not DaraCore.is_null(request.traffic_analyzer_id):
|
|
2347
|
+
query['TrafficAnalyzerId'] = request.traffic_analyzer_id
|
|
2348
|
+
if not DaraCore.is_null(request.traffic_scenario):
|
|
2349
|
+
query['TrafficScenario'] = request.traffic_scenario
|
|
2350
|
+
if not DaraCore.is_null(request.tuple_dimension):
|
|
2351
|
+
query['TupleDimension'] = request.tuple_dimension
|
|
2352
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2353
|
+
query = Utils.query(query)
|
|
2354
|
+
)
|
|
2355
|
+
params = open_api_util_models.Params(
|
|
2356
|
+
action = 'StartNisTrafficRanking',
|
|
2357
|
+
version = '2021-12-16',
|
|
2358
|
+
protocol = 'HTTPS',
|
|
2359
|
+
pathname = '/',
|
|
2360
|
+
method = 'POST',
|
|
2361
|
+
auth_type = 'AK',
|
|
2362
|
+
style = 'RPC',
|
|
2363
|
+
req_body_type = 'formData',
|
|
2364
|
+
body_type = 'json'
|
|
2365
|
+
)
|
|
2366
|
+
return DaraCore.from_map(
|
|
2367
|
+
main_models.StartNisTrafficRankingResponse(),
|
|
2368
|
+
await self.call_api_async(params, req, runtime)
|
|
2369
|
+
)
|
|
2370
|
+
|
|
2371
|
+
def start_nis_traffic_ranking(
|
|
2372
|
+
self,
|
|
2373
|
+
request: main_models.StartNisTrafficRankingRequest,
|
|
2374
|
+
) -> main_models.StartNisTrafficRankingResponse:
|
|
2375
|
+
runtime = RuntimeOptions()
|
|
2376
|
+
return self.start_nis_traffic_ranking_with_options(request, runtime)
|
|
2377
|
+
|
|
2378
|
+
async def start_nis_traffic_ranking_async(
|
|
2379
|
+
self,
|
|
2380
|
+
request: main_models.StartNisTrafficRankingRequest,
|
|
2381
|
+
) -> main_models.StartNisTrafficRankingResponse:
|
|
2382
|
+
runtime = RuntimeOptions()
|
|
2383
|
+
return await self.start_nis_traffic_ranking_with_options_async(request, runtime)
|
|
2384
|
+
|
|
2862
2385
|
def update_nis_inspection_task_with_options(
|
|
2863
2386
|
self,
|
|
2864
|
-
request:
|
|
2865
|
-
runtime:
|
|
2866
|
-
) ->
|
|
2867
|
-
|
|
2868
|
-
@summary 修改巡检项
|
|
2869
|
-
|
|
2870
|
-
@param request: UpdateNisInspectionTaskRequest
|
|
2871
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2872
|
-
@return: UpdateNisInspectionTaskResponse
|
|
2873
|
-
"""
|
|
2874
|
-
UtilClient.validate_model(request)
|
|
2387
|
+
request: main_models.UpdateNisInspectionTaskRequest,
|
|
2388
|
+
runtime: RuntimeOptions,
|
|
2389
|
+
) -> main_models.UpdateNisInspectionTaskResponse:
|
|
2390
|
+
request.validate()
|
|
2875
2391
|
query = {}
|
|
2876
|
-
if not
|
|
2392
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2877
2393
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2878
|
-
if not
|
|
2394
|
+
if not DaraCore.is_null(request.status):
|
|
2879
2395
|
query['Status'] = request.status
|
|
2880
|
-
req =
|
|
2881
|
-
query=
|
|
2882
|
-
)
|
|
2883
|
-
params =
|
|
2884
|
-
action='UpdateNisInspectionTask',
|
|
2885
|
-
version='2021-12-16',
|
|
2886
|
-
protocol='HTTPS',
|
|
2887
|
-
pathname='/',
|
|
2888
|
-
method='POST',
|
|
2889
|
-
auth_type='AK',
|
|
2890
|
-
style='RPC',
|
|
2891
|
-
req_body_type='formData',
|
|
2892
|
-
body_type='json'
|
|
2893
|
-
)
|
|
2894
|
-
return
|
|
2895
|
-
|
|
2396
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2397
|
+
query = Utils.query(query)
|
|
2398
|
+
)
|
|
2399
|
+
params = open_api_util_models.Params(
|
|
2400
|
+
action = 'UpdateNisInspectionTask',
|
|
2401
|
+
version = '2021-12-16',
|
|
2402
|
+
protocol = 'HTTPS',
|
|
2403
|
+
pathname = '/',
|
|
2404
|
+
method = 'POST',
|
|
2405
|
+
auth_type = 'AK',
|
|
2406
|
+
style = 'RPC',
|
|
2407
|
+
req_body_type = 'formData',
|
|
2408
|
+
body_type = 'json'
|
|
2409
|
+
)
|
|
2410
|
+
return DaraCore.from_map(
|
|
2411
|
+
main_models.UpdateNisInspectionTaskResponse(),
|
|
2896
2412
|
self.call_api(params, req, runtime)
|
|
2897
2413
|
)
|
|
2898
2414
|
|
|
2899
2415
|
async def update_nis_inspection_task_with_options_async(
|
|
2900
2416
|
self,
|
|
2901
|
-
request:
|
|
2902
|
-
runtime:
|
|
2903
|
-
) ->
|
|
2904
|
-
|
|
2905
|
-
@summary 修改巡检项
|
|
2906
|
-
|
|
2907
|
-
@param request: UpdateNisInspectionTaskRequest
|
|
2908
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
2909
|
-
@return: UpdateNisInspectionTaskResponse
|
|
2910
|
-
"""
|
|
2911
|
-
UtilClient.validate_model(request)
|
|
2417
|
+
request: main_models.UpdateNisInspectionTaskRequest,
|
|
2418
|
+
runtime: RuntimeOptions,
|
|
2419
|
+
) -> main_models.UpdateNisInspectionTaskResponse:
|
|
2420
|
+
request.validate()
|
|
2912
2421
|
query = {}
|
|
2913
|
-
if not
|
|
2422
|
+
if not DaraCore.is_null(request.inspection_task_id):
|
|
2914
2423
|
query['InspectionTaskId'] = request.inspection_task_id
|
|
2915
|
-
if not
|
|
2424
|
+
if not DaraCore.is_null(request.status):
|
|
2916
2425
|
query['Status'] = request.status
|
|
2917
|
-
req =
|
|
2918
|
-
query=
|
|
2919
|
-
)
|
|
2920
|
-
params =
|
|
2921
|
-
action='UpdateNisInspectionTask',
|
|
2922
|
-
version='2021-12-16',
|
|
2923
|
-
protocol='HTTPS',
|
|
2924
|
-
pathname='/',
|
|
2925
|
-
method='POST',
|
|
2926
|
-
auth_type='AK',
|
|
2927
|
-
style='RPC',
|
|
2928
|
-
req_body_type='formData',
|
|
2929
|
-
body_type='json'
|
|
2930
|
-
)
|
|
2931
|
-
return
|
|
2932
|
-
|
|
2426
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2427
|
+
query = Utils.query(query)
|
|
2428
|
+
)
|
|
2429
|
+
params = open_api_util_models.Params(
|
|
2430
|
+
action = 'UpdateNisInspectionTask',
|
|
2431
|
+
version = '2021-12-16',
|
|
2432
|
+
protocol = 'HTTPS',
|
|
2433
|
+
pathname = '/',
|
|
2434
|
+
method = 'POST',
|
|
2435
|
+
auth_type = 'AK',
|
|
2436
|
+
style = 'RPC',
|
|
2437
|
+
req_body_type = 'formData',
|
|
2438
|
+
body_type = 'json'
|
|
2439
|
+
)
|
|
2440
|
+
return DaraCore.from_map(
|
|
2441
|
+
main_models.UpdateNisInspectionTaskResponse(),
|
|
2933
2442
|
await self.call_api_async(params, req, runtime)
|
|
2934
2443
|
)
|
|
2935
2444
|
|
|
2936
2445
|
def update_nis_inspection_task(
|
|
2937
2446
|
self,
|
|
2938
|
-
request:
|
|
2939
|
-
) ->
|
|
2940
|
-
|
|
2941
|
-
@summary 修改巡检项
|
|
2942
|
-
|
|
2943
|
-
@param request: UpdateNisInspectionTaskRequest
|
|
2944
|
-
@return: UpdateNisInspectionTaskResponse
|
|
2945
|
-
"""
|
|
2946
|
-
runtime = util_models.RuntimeOptions()
|
|
2447
|
+
request: main_models.UpdateNisInspectionTaskRequest,
|
|
2448
|
+
) -> main_models.UpdateNisInspectionTaskResponse:
|
|
2449
|
+
runtime = RuntimeOptions()
|
|
2947
2450
|
return self.update_nis_inspection_task_with_options(request, runtime)
|
|
2948
2451
|
|
|
2949
2452
|
async def update_nis_inspection_task_async(
|
|
2950
2453
|
self,
|
|
2951
|
-
request:
|
|
2952
|
-
) ->
|
|
2953
|
-
|
|
2954
|
-
@summary 修改巡检项
|
|
2955
|
-
|
|
2956
|
-
@param request: UpdateNisInspectionTaskRequest
|
|
2957
|
-
@return: UpdateNisInspectionTaskResponse
|
|
2958
|
-
"""
|
|
2959
|
-
runtime = util_models.RuntimeOptions()
|
|
2454
|
+
request: main_models.UpdateNisInspectionTaskRequest,
|
|
2455
|
+
) -> main_models.UpdateNisInspectionTaskResponse:
|
|
2456
|
+
runtime = RuntimeOptions()
|
|
2960
2457
|
return await self.update_nis_inspection_task_with_options_async(request, runtime)
|