alibabacloud-nis20211216 2.0.2__py3-none-any.whl → 2.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,7 +47,9 @@ class Client(OpenApiClient):
47
47
  runtime: util_models.RuntimeOptions,
48
48
  ) -> nis_20211216_models.CreateAndAnalyzeNetworkPathResponse:
49
49
  """
50
- 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.
50
+ @summary Initiates a task for analyzing network reachability.
51
+
52
+ @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.
51
53
 
52
54
  @param request: CreateAndAnalyzeNetworkPathRequest
53
55
  @param runtime: runtime options for this request RuntimeOptions
@@ -80,7 +82,9 @@ class Client(OpenApiClient):
80
82
  runtime: util_models.RuntimeOptions,
81
83
  ) -> nis_20211216_models.CreateAndAnalyzeNetworkPathResponse:
82
84
  """
83
- 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.
85
+ @summary Initiates a task for analyzing network reachability.
86
+
87
+ @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.
84
88
 
85
89
  @param request: CreateAndAnalyzeNetworkPathRequest
86
90
  @param runtime: runtime options for this request RuntimeOptions
@@ -112,7 +116,9 @@ class Client(OpenApiClient):
112
116
  request: nis_20211216_models.CreateAndAnalyzeNetworkPathRequest,
113
117
  ) -> nis_20211216_models.CreateAndAnalyzeNetworkPathResponse:
114
118
  """
115
- 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.
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.
116
122
 
117
123
  @param request: CreateAndAnalyzeNetworkPathRequest
118
124
  @return: CreateAndAnalyzeNetworkPathResponse
@@ -125,7 +131,9 @@ class Client(OpenApiClient):
125
131
  request: nis_20211216_models.CreateAndAnalyzeNetworkPathRequest,
126
132
  ) -> nis_20211216_models.CreateAndAnalyzeNetworkPathResponse:
127
133
  """
128
- 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.
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.
129
137
 
130
138
  @param request: CreateAndAnalyzeNetworkPathRequest
131
139
  @return: CreateAndAnalyzeNetworkPathResponse
@@ -139,8 +147,10 @@ class Client(OpenApiClient):
139
147
  runtime: util_models.RuntimeOptions,
140
148
  ) -> nis_20211216_models.CreateNetworkPathResponse:
141
149
  """
142
- 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.
143
- * You can create up to 100 network paths within one Alibaba Cloud account.
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.
144
154
 
145
155
  @param request: CreateNetworkPathRequest
146
156
  @param runtime: runtime options for this request RuntimeOptions
@@ -201,8 +211,10 @@ class Client(OpenApiClient):
201
211
  runtime: util_models.RuntimeOptions,
202
212
  ) -> nis_20211216_models.CreateNetworkPathResponse:
203
213
  """
204
- 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.
205
- * You can create up to 100 network paths within one Alibaba Cloud account.
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.
206
218
 
207
219
  @param request: CreateNetworkPathRequest
208
220
  @param runtime: runtime options for this request RuntimeOptions
@@ -262,8 +274,10 @@ class Client(OpenApiClient):
262
274
  request: nis_20211216_models.CreateNetworkPathRequest,
263
275
  ) -> nis_20211216_models.CreateNetworkPathResponse:
264
276
  """
265
- 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.
266
- * You can create up to 100 network paths within one Alibaba Cloud account.
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.
267
281
 
268
282
  @param request: CreateNetworkPathRequest
269
283
  @return: CreateNetworkPathResponse
@@ -276,8 +290,10 @@ class Client(OpenApiClient):
276
290
  request: nis_20211216_models.CreateNetworkPathRequest,
277
291
  ) -> nis_20211216_models.CreateNetworkPathResponse:
278
292
  """
279
- 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.
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.
281
297
 
282
298
  @param request: CreateNetworkPathRequest
283
299
  @return: CreateNetworkPathResponse
@@ -291,9 +307,11 @@ class Client(OpenApiClient):
291
307
  runtime: util_models.RuntimeOptions,
292
308
  ) -> nis_20211216_models.CreateNetworkReachableAnalysisResponse:
293
309
  """
294
- 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.
295
- * The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
296
- * You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
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.
297
315
 
298
316
  @param request: CreateNetworkReachableAnalysisRequest
299
317
  @param runtime: runtime options for this request RuntimeOptions
@@ -332,9 +350,11 @@ class Client(OpenApiClient):
332
350
  runtime: util_models.RuntimeOptions,
333
351
  ) -> nis_20211216_models.CreateNetworkReachableAnalysisResponse:
334
352
  """
335
- 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.
336
- * The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
337
- * You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
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.
338
358
 
339
359
  @param request: CreateNetworkReachableAnalysisRequest
340
360
  @param runtime: runtime options for this request RuntimeOptions
@@ -372,9 +392,11 @@ class Client(OpenApiClient):
372
392
  request: nis_20211216_models.CreateNetworkReachableAnalysisRequest,
373
393
  ) -> nis_20211216_models.CreateNetworkReachableAnalysisResponse:
374
394
  """
375
- 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.
376
- * The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
377
- * You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
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.
378
400
 
379
401
  @param request: CreateNetworkReachableAnalysisRequest
380
402
  @return: CreateNetworkReachableAnalysisResponse
@@ -387,9 +409,11 @@ class Client(OpenApiClient):
387
409
  request: nis_20211216_models.CreateNetworkReachableAnalysisRequest,
388
410
  ) -> nis_20211216_models.CreateNetworkReachableAnalysisResponse:
389
411
  """
390
- 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.
391
- * The **CreateNetworkReachableAnalysis** operation can be called to repeatedly analyze the reachability of a network path.
392
- * You can create up to 1,000 reachability analysis records within one Alibaba Cloud account.
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.
393
417
 
394
418
  @param request: CreateNetworkReachableAnalysisRequest
395
419
  @return: CreateNetworkReachableAnalysisResponse
@@ -402,6 +426,13 @@ class Client(OpenApiClient):
402
426
  tmp_req: nis_20211216_models.DeleteNetworkPathRequest,
403
427
  runtime: util_models.RuntimeOptions,
404
428
  ) -> nis_20211216_models.DeleteNetworkPathResponse:
429
+ """
430
+ @summary Deletes a network path.
431
+
432
+ @param tmp_req: DeleteNetworkPathRequest
433
+ @param runtime: runtime options for this request RuntimeOptions
434
+ @return: DeleteNetworkPathResponse
435
+ """
405
436
  UtilClient.validate_model(tmp_req)
406
437
  request = nis_20211216_models.DeleteNetworkPathShrinkRequest()
407
438
  OpenApiUtilClient.convert(tmp_req, request)
@@ -436,6 +467,13 @@ class Client(OpenApiClient):
436
467
  tmp_req: nis_20211216_models.DeleteNetworkPathRequest,
437
468
  runtime: util_models.RuntimeOptions,
438
469
  ) -> nis_20211216_models.DeleteNetworkPathResponse:
470
+ """
471
+ @summary Deletes a network path.
472
+
473
+ @param tmp_req: DeleteNetworkPathRequest
474
+ @param runtime: runtime options for this request RuntimeOptions
475
+ @return: DeleteNetworkPathResponse
476
+ """
439
477
  UtilClient.validate_model(tmp_req)
440
478
  request = nis_20211216_models.DeleteNetworkPathShrinkRequest()
441
479
  OpenApiUtilClient.convert(tmp_req, request)
@@ -469,6 +507,12 @@ class Client(OpenApiClient):
469
507
  self,
470
508
  request: nis_20211216_models.DeleteNetworkPathRequest,
471
509
  ) -> nis_20211216_models.DeleteNetworkPathResponse:
510
+ """
511
+ @summary Deletes a network path.
512
+
513
+ @param request: DeleteNetworkPathRequest
514
+ @return: DeleteNetworkPathResponse
515
+ """
472
516
  runtime = util_models.RuntimeOptions()
473
517
  return self.delete_network_path_with_options(request, runtime)
474
518
 
@@ -476,6 +520,12 @@ class Client(OpenApiClient):
476
520
  self,
477
521
  request: nis_20211216_models.DeleteNetworkPathRequest,
478
522
  ) -> nis_20211216_models.DeleteNetworkPathResponse:
523
+ """
524
+ @summary Deletes a network path.
525
+
526
+ @param request: DeleteNetworkPathRequest
527
+ @return: DeleteNetworkPathResponse
528
+ """
479
529
  runtime = util_models.RuntimeOptions()
480
530
  return await self.delete_network_path_with_options_async(request, runtime)
481
531
 
@@ -484,6 +534,13 @@ class Client(OpenApiClient):
484
534
  tmp_req: nis_20211216_models.DeleteNetworkReachableAnalysisRequest,
485
535
  runtime: util_models.RuntimeOptions,
486
536
  ) -> nis_20211216_models.DeleteNetworkReachableAnalysisResponse:
537
+ """
538
+ @summary Deletes a task for analyzing network reachability.
539
+
540
+ @param tmp_req: DeleteNetworkReachableAnalysisRequest
541
+ @param runtime: runtime options for this request RuntimeOptions
542
+ @return: DeleteNetworkReachableAnalysisResponse
543
+ """
487
544
  UtilClient.validate_model(tmp_req)
488
545
  request = nis_20211216_models.DeleteNetworkReachableAnalysisShrinkRequest()
489
546
  OpenApiUtilClient.convert(tmp_req, request)
@@ -518,6 +575,13 @@ class Client(OpenApiClient):
518
575
  tmp_req: nis_20211216_models.DeleteNetworkReachableAnalysisRequest,
519
576
  runtime: util_models.RuntimeOptions,
520
577
  ) -> nis_20211216_models.DeleteNetworkReachableAnalysisResponse:
578
+ """
579
+ @summary Deletes a task for analyzing network reachability.
580
+
581
+ @param tmp_req: DeleteNetworkReachableAnalysisRequest
582
+ @param runtime: runtime options for this request RuntimeOptions
583
+ @return: DeleteNetworkReachableAnalysisResponse
584
+ """
521
585
  UtilClient.validate_model(tmp_req)
522
586
  request = nis_20211216_models.DeleteNetworkReachableAnalysisShrinkRequest()
523
587
  OpenApiUtilClient.convert(tmp_req, request)
@@ -551,6 +615,12 @@ class Client(OpenApiClient):
551
615
  self,
552
616
  request: nis_20211216_models.DeleteNetworkReachableAnalysisRequest,
553
617
  ) -> nis_20211216_models.DeleteNetworkReachableAnalysisResponse:
618
+ """
619
+ @summary Deletes a task for analyzing network reachability.
620
+
621
+ @param request: DeleteNetworkReachableAnalysisRequest
622
+ @return: DeleteNetworkReachableAnalysisResponse
623
+ """
554
624
  runtime = util_models.RuntimeOptions()
555
625
  return self.delete_network_reachable_analysis_with_options(request, runtime)
556
626
 
@@ -558,71 +628,36 @@ class Client(OpenApiClient):
558
628
  self,
559
629
  request: nis_20211216_models.DeleteNetworkReachableAnalysisRequest,
560
630
  ) -> nis_20211216_models.DeleteNetworkReachableAnalysisResponse:
631
+ """
632
+ @summary Deletes a task for analyzing network reachability.
633
+
634
+ @param request: DeleteNetworkReachableAnalysisRequest
635
+ @return: DeleteNetworkReachableAnalysisResponse
636
+ """
561
637
  runtime = util_models.RuntimeOptions()
562
638
  return await self.delete_network_reachable_analysis_with_options_async(request, runtime)
563
639
 
564
- def get_internet_tuple_with_options(
640
+ def delete_nis_inspection_report_with_options(
565
641
  self,
566
- tmp_req: nis_20211216_models.GetInternetTupleRequest,
642
+ request: nis_20211216_models.DeleteNisInspectionReportRequest,
567
643
  runtime: util_models.RuntimeOptions,
568
- ) -> nis_20211216_models.GetInternetTupleResponse:
569
- UtilClient.validate_model(tmp_req)
570
- request = nis_20211216_models.GetInternetTupleShrinkRequest()
571
- OpenApiUtilClient.convert(tmp_req, request)
572
- if not UtilClient.is_unset(tmp_req.cloud_ip_list):
573
- request.cloud_ip_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.cloud_ip_list, 'CloudIpList', 'json')
574
- if not UtilClient.is_unset(tmp_req.instance_list):
575
- request.instance_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_list, 'InstanceList', 'json')
644
+ ) -> nis_20211216_models.DeleteNisInspectionReportResponse:
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)
576
653
  query = {}
577
- if not UtilClient.is_unset(request.account_ids):
578
- query['AccountIds'] = request.account_ids
579
- if not UtilClient.is_unset(request.begin_time):
580
- query['BeginTime'] = request.begin_time
581
- if not UtilClient.is_unset(request.cloud_ip):
582
- query['CloudIp'] = request.cloud_ip
583
- if not UtilClient.is_unset(request.cloud_ip_list_shrink):
584
- query['CloudIpList'] = request.cloud_ip_list_shrink
585
- if not UtilClient.is_unset(request.cloud_isp):
586
- query['CloudIsp'] = request.cloud_isp
587
- if not UtilClient.is_unset(request.cloud_port):
588
- query['CloudPort'] = request.cloud_port
589
- if not UtilClient.is_unset(request.direction):
590
- query['Direction'] = request.direction
591
- if not UtilClient.is_unset(request.end_time):
592
- query['EndTime'] = request.end_time
593
- if not UtilClient.is_unset(request.instance_id):
594
- query['InstanceId'] = request.instance_id
595
- if not UtilClient.is_unset(request.instance_list_shrink):
596
- query['InstanceList'] = request.instance_list_shrink
597
- if not UtilClient.is_unset(request.order_by):
598
- query['OrderBy'] = request.order_by
599
- if not UtilClient.is_unset(request.other_city):
600
- query['OtherCity'] = request.other_city
601
- if not UtilClient.is_unset(request.other_country):
602
- query['OtherCountry'] = request.other_country
603
- if not UtilClient.is_unset(request.other_ip):
604
- query['OtherIp'] = request.other_ip
605
- if not UtilClient.is_unset(request.other_isp):
606
- query['OtherIsp'] = request.other_isp
607
- if not UtilClient.is_unset(request.other_port):
608
- query['OtherPort'] = request.other_port
609
- if not UtilClient.is_unset(request.protocol):
610
- query['Protocol'] = request.protocol
611
- if not UtilClient.is_unset(request.region_id):
612
- query['RegionId'] = request.region_id
613
- if not UtilClient.is_unset(request.sort):
614
- query['Sort'] = request.sort
615
- if not UtilClient.is_unset(request.top_n):
616
- query['TopN'] = request.top_n
617
- if not UtilClient.is_unset(request.tuple_type):
618
- query['TupleType'] = request.tuple_type
619
- if not UtilClient.is_unset(request.use_multi_account):
620
- query['UseMultiAccount'] = request.use_multi_account
654
+ if not UtilClient.is_unset(request.inspection_report_id):
655
+ query['InspectionReportId'] = request.inspection_report_id
621
656
  req = open_api_models.OpenApiRequest(
622
657
  query=OpenApiUtilClient.query(query)
623
658
  )
624
659
  params = open_api_models.Params(
625
- action='GetInternetTuple',
660
+ action='DeleteNisInspectionReport',
626
661
  version='2021-12-16',
627
662
  protocol='HTTPS',
628
663
  pathname='/',
@@ -633,72 +668,31 @@ class Client(OpenApiClient):
633
668
  body_type='json'
634
669
  )
635
670
  return TeaCore.from_map(
636
- nis_20211216_models.GetInternetTupleResponse(),
671
+ nis_20211216_models.DeleteNisInspectionReportResponse(),
637
672
  self.call_api(params, req, runtime)
638
673
  )
639
674
 
640
- async def get_internet_tuple_with_options_async(
675
+ async def delete_nis_inspection_report_with_options_async(
641
676
  self,
642
- tmp_req: nis_20211216_models.GetInternetTupleRequest,
677
+ request: nis_20211216_models.DeleteNisInspectionReportRequest,
643
678
  runtime: util_models.RuntimeOptions,
644
- ) -> nis_20211216_models.GetInternetTupleResponse:
645
- UtilClient.validate_model(tmp_req)
646
- request = nis_20211216_models.GetInternetTupleShrinkRequest()
647
- OpenApiUtilClient.convert(tmp_req, request)
648
- if not UtilClient.is_unset(tmp_req.cloud_ip_list):
649
- request.cloud_ip_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.cloud_ip_list, 'CloudIpList', 'json')
650
- if not UtilClient.is_unset(tmp_req.instance_list):
651
- request.instance_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_list, 'InstanceList', 'json')
679
+ ) -> nis_20211216_models.DeleteNisInspectionReportResponse:
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)
652
688
  query = {}
653
- if not UtilClient.is_unset(request.account_ids):
654
- query['AccountIds'] = request.account_ids
655
- if not UtilClient.is_unset(request.begin_time):
656
- query['BeginTime'] = request.begin_time
657
- if not UtilClient.is_unset(request.cloud_ip):
658
- query['CloudIp'] = request.cloud_ip
659
- if not UtilClient.is_unset(request.cloud_ip_list_shrink):
660
- query['CloudIpList'] = request.cloud_ip_list_shrink
661
- if not UtilClient.is_unset(request.cloud_isp):
662
- query['CloudIsp'] = request.cloud_isp
663
- if not UtilClient.is_unset(request.cloud_port):
664
- query['CloudPort'] = request.cloud_port
665
- if not UtilClient.is_unset(request.direction):
666
- query['Direction'] = request.direction
667
- if not UtilClient.is_unset(request.end_time):
668
- query['EndTime'] = request.end_time
669
- if not UtilClient.is_unset(request.instance_id):
670
- query['InstanceId'] = request.instance_id
671
- if not UtilClient.is_unset(request.instance_list_shrink):
672
- query['InstanceList'] = request.instance_list_shrink
673
- if not UtilClient.is_unset(request.order_by):
674
- query['OrderBy'] = request.order_by
675
- if not UtilClient.is_unset(request.other_city):
676
- query['OtherCity'] = request.other_city
677
- if not UtilClient.is_unset(request.other_country):
678
- query['OtherCountry'] = request.other_country
679
- if not UtilClient.is_unset(request.other_ip):
680
- query['OtherIp'] = request.other_ip
681
- if not UtilClient.is_unset(request.other_isp):
682
- query['OtherIsp'] = request.other_isp
683
- if not UtilClient.is_unset(request.other_port):
684
- query['OtherPort'] = request.other_port
685
- if not UtilClient.is_unset(request.protocol):
686
- query['Protocol'] = request.protocol
687
- if not UtilClient.is_unset(request.region_id):
688
- query['RegionId'] = request.region_id
689
- if not UtilClient.is_unset(request.sort):
690
- query['Sort'] = request.sort
691
- if not UtilClient.is_unset(request.top_n):
692
- query['TopN'] = request.top_n
693
- if not UtilClient.is_unset(request.tuple_type):
694
- query['TupleType'] = request.tuple_type
695
- if not UtilClient.is_unset(request.use_multi_account):
696
- query['UseMultiAccount'] = request.use_multi_account
689
+ if not UtilClient.is_unset(request.inspection_report_id):
690
+ query['InspectionReportId'] = request.inspection_report_id
697
691
  req = open_api_models.OpenApiRequest(
698
692
  query=OpenApiUtilClient.query(query)
699
693
  )
700
694
  params = open_api_models.Params(
701
- action='GetInternetTuple',
695
+ action='DeleteNisInspectionReport',
702
696
  version='2021-12-16',
703
697
  protocol='HTTPS',
704
698
  pathname='/',
@@ -709,50 +703,57 @@ class Client(OpenApiClient):
709
703
  body_type='json'
710
704
  )
711
705
  return TeaCore.from_map(
712
- nis_20211216_models.GetInternetTupleResponse(),
706
+ nis_20211216_models.DeleteNisInspectionReportResponse(),
713
707
  await self.call_api_async(params, req, runtime)
714
708
  )
715
709
 
716
- def get_internet_tuple(
710
+ def delete_nis_inspection_report(
717
711
  self,
718
- request: nis_20211216_models.GetInternetTupleRequest,
719
- ) -> nis_20211216_models.GetInternetTupleResponse:
712
+ request: nis_20211216_models.DeleteNisInspectionReportRequest,
713
+ ) -> nis_20211216_models.DeleteNisInspectionReportResponse:
714
+ """
715
+ @summary 删除报告
716
+
717
+ @param request: DeleteNisInspectionReportRequest
718
+ @return: DeleteNisInspectionReportResponse
719
+ """
720
720
  runtime = util_models.RuntimeOptions()
721
- return self.get_internet_tuple_with_options(request, runtime)
721
+ return self.delete_nis_inspection_report_with_options(request, runtime)
722
722
 
723
- async def get_internet_tuple_async(
723
+ async def delete_nis_inspection_report_async(
724
724
  self,
725
- request: nis_20211216_models.GetInternetTupleRequest,
726
- ) -> nis_20211216_models.GetInternetTupleResponse:
725
+ request: nis_20211216_models.DeleteNisInspectionReportRequest,
726
+ ) -> nis_20211216_models.DeleteNisInspectionReportResponse:
727
+ """
728
+ @summary 删除报告
729
+
730
+ @param request: DeleteNisInspectionReportRequest
731
+ @return: DeleteNisInspectionReportResponse
732
+ """
727
733
  runtime = util_models.RuntimeOptions()
728
- return await self.get_internet_tuple_with_options_async(request, runtime)
734
+ return await self.delete_nis_inspection_report_with_options_async(request, runtime)
729
735
 
730
- def get_nat_top_nwith_options(
736
+ def delete_nis_inspection_task_with_options(
731
737
  self,
732
- request: nis_20211216_models.GetNatTopNRequest,
738
+ request: nis_20211216_models.DeleteNisInspectionTaskRequest,
733
739
  runtime: util_models.RuntimeOptions,
734
- ) -> nis_20211216_models.GetNatTopNResponse:
740
+ ) -> nis_20211216_models.DeleteNisInspectionTaskResponse:
741
+ """
742
+ @summary 删除巡检任务
743
+
744
+ @param request: DeleteNisInspectionTaskRequest
745
+ @param runtime: runtime options for this request RuntimeOptions
746
+ @return: DeleteNisInspectionTaskResponse
747
+ """
735
748
  UtilClient.validate_model(request)
736
749
  query = {}
737
- if not UtilClient.is_unset(request.begin_time):
738
- query['BeginTime'] = request.begin_time
739
- if not UtilClient.is_unset(request.end_time):
740
- query['EndTime'] = request.end_time
741
- if not UtilClient.is_unset(request.ip):
742
- query['Ip'] = request.ip
743
- if not UtilClient.is_unset(request.nat_gateway_id):
744
- query['NatGatewayId'] = request.nat_gateway_id
745
- if not UtilClient.is_unset(request.order_by):
746
- query['OrderBy'] = request.order_by
747
- if not UtilClient.is_unset(request.region_id):
748
- query['RegionId'] = request.region_id
749
- if not UtilClient.is_unset(request.top_n):
750
- query['TopN'] = request.top_n
750
+ if not UtilClient.is_unset(request.inspection_task_id):
751
+ query['InspectionTaskId'] = request.inspection_task_id
751
752
  req = open_api_models.OpenApiRequest(
752
753
  query=OpenApiUtilClient.query(query)
753
754
  )
754
755
  params = open_api_models.Params(
755
- action='GetNatTopN',
756
+ action='DeleteNisInspectionTask',
756
757
  version='2021-12-16',
757
758
  protocol='HTTPS',
758
759
  pathname='/',
@@ -763,36 +764,31 @@ class Client(OpenApiClient):
763
764
  body_type='json'
764
765
  )
765
766
  return TeaCore.from_map(
766
- nis_20211216_models.GetNatTopNResponse(),
767
+ nis_20211216_models.DeleteNisInspectionTaskResponse(),
767
768
  self.call_api(params, req, runtime)
768
769
  )
769
770
 
770
- async def get_nat_top_nwith_options_async(
771
+ async def delete_nis_inspection_task_with_options_async(
771
772
  self,
772
- request: nis_20211216_models.GetNatTopNRequest,
773
+ request: nis_20211216_models.DeleteNisInspectionTaskRequest,
773
774
  runtime: util_models.RuntimeOptions,
774
- ) -> nis_20211216_models.GetNatTopNResponse:
775
+ ) -> nis_20211216_models.DeleteNisInspectionTaskResponse:
776
+ """
777
+ @summary 删除巡检任务
778
+
779
+ @param request: DeleteNisInspectionTaskRequest
780
+ @param runtime: runtime options for this request RuntimeOptions
781
+ @return: DeleteNisInspectionTaskResponse
782
+ """
775
783
  UtilClient.validate_model(request)
776
784
  query = {}
777
- if not UtilClient.is_unset(request.begin_time):
778
- query['BeginTime'] = request.begin_time
779
- if not UtilClient.is_unset(request.end_time):
780
- query['EndTime'] = request.end_time
781
- if not UtilClient.is_unset(request.ip):
782
- query['Ip'] = request.ip
783
- if not UtilClient.is_unset(request.nat_gateway_id):
784
- query['NatGatewayId'] = request.nat_gateway_id
785
- if not UtilClient.is_unset(request.order_by):
786
- query['OrderBy'] = request.order_by
787
- if not UtilClient.is_unset(request.region_id):
788
- query['RegionId'] = request.region_id
789
- if not UtilClient.is_unset(request.top_n):
790
- query['TopN'] = request.top_n
785
+ if not UtilClient.is_unset(request.inspection_task_id):
786
+ query['InspectionTaskId'] = request.inspection_task_id
791
787
  req = open_api_models.OpenApiRequest(
792
788
  query=OpenApiUtilClient.query(query)
793
789
  )
794
790
  params = open_api_models.Params(
795
- action='GetNatTopN',
791
+ action='DeleteNisInspectionTask',
796
792
  version='2021-12-16',
797
793
  protocol='HTTPS',
798
794
  pathname='/',
@@ -803,49 +799,65 @@ class Client(OpenApiClient):
803
799
  body_type='json'
804
800
  )
805
801
  return TeaCore.from_map(
806
- nis_20211216_models.GetNatTopNResponse(),
802
+ nis_20211216_models.DeleteNisInspectionTaskResponse(),
807
803
  await self.call_api_async(params, req, runtime)
808
804
  )
809
805
 
810
- def get_nat_top_n(
806
+ def delete_nis_inspection_task(
811
807
  self,
812
- request: nis_20211216_models.GetNatTopNRequest,
813
- ) -> nis_20211216_models.GetNatTopNResponse:
808
+ request: nis_20211216_models.DeleteNisInspectionTaskRequest,
809
+ ) -> nis_20211216_models.DeleteNisInspectionTaskResponse:
810
+ """
811
+ @summary 删除巡检任务
812
+
813
+ @param request: DeleteNisInspectionTaskRequest
814
+ @return: DeleteNisInspectionTaskResponse
815
+ """
814
816
  runtime = util_models.RuntimeOptions()
815
- return self.get_nat_top_nwith_options(request, runtime)
817
+ return self.delete_nis_inspection_task_with_options(request, runtime)
816
818
 
817
- async def get_nat_top_n_async(
819
+ async def delete_nis_inspection_task_async(
818
820
  self,
819
- request: nis_20211216_models.GetNatTopNRequest,
820
- ) -> nis_20211216_models.GetNatTopNResponse:
821
+ request: nis_20211216_models.DeleteNisInspectionTaskRequest,
822
+ ) -> nis_20211216_models.DeleteNisInspectionTaskResponse:
823
+ """
824
+ @summary 删除巡检任务
825
+
826
+ @param request: DeleteNisInspectionTaskRequest
827
+ @return: DeleteNisInspectionTaskResponse
828
+ """
821
829
  runtime = util_models.RuntimeOptions()
822
- return await self.get_nat_top_nwith_options_async(request, runtime)
830
+ return await self.delete_nis_inspection_task_with_options_async(request, runtime)
823
831
 
824
- def get_network_reachable_analysis_with_options(
832
+ def describe_nis_inspection_recommendation_resources_with_options(
825
833
  self,
826
- request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
834
+ request: nis_20211216_models.DescribeNisInspectionRecommendationResourcesRequest,
827
835
  runtime: util_models.RuntimeOptions,
828
- ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
836
+ ) -> nis_20211216_models.DescribeNisInspectionRecommendationResourcesResponse:
829
837
  """
830
- *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.
831
- * The **init** state indicates that the task is in progress.
832
- * The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
838
+ @summary 受影响资源列表
833
839
 
834
- @param request: GetNetworkReachableAnalysisRequest
840
+ @param request: DescribeNisInspectionRecommendationResourcesRequest
835
841
  @param runtime: runtime options for this request RuntimeOptions
836
- @return: GetNetworkReachableAnalysisResponse
842
+ @return: DescribeNisInspectionRecommendationResourcesResponse
837
843
  """
838
844
  UtilClient.validate_model(request)
839
845
  query = {}
840
- if not UtilClient.is_unset(request.network_reachable_analysis_id):
841
- query['NetworkReachableAnalysisId'] = request.network_reachable_analysis_id
842
- if not UtilClient.is_unset(request.region_id):
843
- query['RegionId'] = request.region_id
846
+ if not UtilClient.is_unset(request.inspection_report_id):
847
+ query['InspectionReportId'] = request.inspection_report_id
848
+ if not UtilClient.is_unset(request.language):
849
+ query['Language'] = request.language
850
+ if not UtilClient.is_unset(request.max_results):
851
+ query['MaxResults'] = request.max_results
852
+ if not UtilClient.is_unset(request.next_token):
853
+ query['NextToken'] = request.next_token
854
+ if not UtilClient.is_unset(request.recommendation_code):
855
+ query['RecommendationCode'] = request.recommendation_code
844
856
  req = open_api_models.OpenApiRequest(
845
857
  query=OpenApiUtilClient.query(query)
846
858
  )
847
859
  params = open_api_models.Params(
848
- action='GetNetworkReachableAnalysis',
860
+ action='DescribeNisInspectionRecommendationResources',
849
861
  version='2021-12-16',
850
862
  protocol='HTTPS',
851
863
  pathname='/',
@@ -856,35 +868,39 @@ class Client(OpenApiClient):
856
868
  body_type='json'
857
869
  )
858
870
  return TeaCore.from_map(
859
- nis_20211216_models.GetNetworkReachableAnalysisResponse(),
871
+ nis_20211216_models.DescribeNisInspectionRecommendationResourcesResponse(),
860
872
  self.call_api(params, req, runtime)
861
873
  )
862
874
 
863
- async def get_network_reachable_analysis_with_options_async(
875
+ async def describe_nis_inspection_recommendation_resources_with_options_async(
864
876
  self,
865
- request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
877
+ request: nis_20211216_models.DescribeNisInspectionRecommendationResourcesRequest,
866
878
  runtime: util_models.RuntimeOptions,
867
- ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
879
+ ) -> nis_20211216_models.DescribeNisInspectionRecommendationResourcesResponse:
868
880
  """
869
- *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.
870
- * The **init** state indicates that the task is in progress.
871
- * The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
881
+ @summary 受影响资源列表
872
882
 
873
- @param request: GetNetworkReachableAnalysisRequest
883
+ @param request: DescribeNisInspectionRecommendationResourcesRequest
874
884
  @param runtime: runtime options for this request RuntimeOptions
875
- @return: GetNetworkReachableAnalysisResponse
885
+ @return: DescribeNisInspectionRecommendationResourcesResponse
876
886
  """
877
887
  UtilClient.validate_model(request)
878
888
  query = {}
879
- if not UtilClient.is_unset(request.network_reachable_analysis_id):
880
- query['NetworkReachableAnalysisId'] = request.network_reachable_analysis_id
881
- if not UtilClient.is_unset(request.region_id):
882
- query['RegionId'] = request.region_id
889
+ if not UtilClient.is_unset(request.inspection_report_id):
890
+ query['InspectionReportId'] = request.inspection_report_id
891
+ if not UtilClient.is_unset(request.language):
892
+ query['Language'] = request.language
893
+ if not UtilClient.is_unset(request.max_results):
894
+ query['MaxResults'] = request.max_results
895
+ if not UtilClient.is_unset(request.next_token):
896
+ query['NextToken'] = request.next_token
897
+ if not UtilClient.is_unset(request.recommendation_code):
898
+ query['RecommendationCode'] = request.recommendation_code
883
899
  req = open_api_models.OpenApiRequest(
884
900
  query=OpenApiUtilClient.query(query)
885
901
  )
886
902
  params = open_api_models.Params(
887
- action='GetNetworkReachableAnalysis',
903
+ action='DescribeNisInspectionRecommendationResources',
888
904
  version='2021-12-16',
889
905
  protocol='HTTPS',
890
906
  pathname='/',
@@ -895,92 +911,75 @@ class Client(OpenApiClient):
895
911
  body_type='json'
896
912
  )
897
913
  return TeaCore.from_map(
898
- nis_20211216_models.GetNetworkReachableAnalysisResponse(),
914
+ nis_20211216_models.DescribeNisInspectionRecommendationResourcesResponse(),
899
915
  await self.call_api_async(params, req, runtime)
900
916
  )
901
917
 
902
- def get_network_reachable_analysis(
918
+ def describe_nis_inspection_recommendation_resources(
903
919
  self,
904
- request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
905
- ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
920
+ request: nis_20211216_models.DescribeNisInspectionRecommendationResourcesRequest,
921
+ ) -> nis_20211216_models.DescribeNisInspectionRecommendationResourcesResponse:
906
922
  """
907
- *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.
908
- * The **init** state indicates that the task is in progress.
909
- * The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
923
+ @summary 受影响资源列表
910
924
 
911
- @param request: GetNetworkReachableAnalysisRequest
912
- @return: GetNetworkReachableAnalysisResponse
925
+ @param request: DescribeNisInspectionRecommendationResourcesRequest
926
+ @return: DescribeNisInspectionRecommendationResourcesResponse
913
927
  """
914
928
  runtime = util_models.RuntimeOptions()
915
- return self.get_network_reachable_analysis_with_options(request, runtime)
929
+ return self.describe_nis_inspection_recommendation_resources_with_options(request, runtime)
916
930
 
917
- async def get_network_reachable_analysis_async(
931
+ async def describe_nis_inspection_recommendation_resources_async(
918
932
  self,
919
- request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
920
- ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
933
+ request: nis_20211216_models.DescribeNisInspectionRecommendationResourcesRequest,
934
+ ) -> nis_20211216_models.DescribeNisInspectionRecommendationResourcesResponse:
921
935
  """
922
- *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.
923
- * The **init** state indicates that the task is in progress.
924
- * The **finish** state indicates that the task is complete. In this state, you can obtain the analysis result.
936
+ @summary 受影响资源列表
925
937
 
926
- @param request: GetNetworkReachableAnalysisRequest
927
- @return: GetNetworkReachableAnalysisResponse
938
+ @param request: DescribeNisInspectionRecommendationResourcesRequest
939
+ @return: DescribeNisInspectionRecommendationResourcesResponse
928
940
  """
929
941
  runtime = util_models.RuntimeOptions()
930
- return await self.get_network_reachable_analysis_with_options_async(request, runtime)
942
+ return await self.describe_nis_inspection_recommendation_resources_with_options_async(request, runtime)
931
943
 
932
- def get_transit_router_flow_top_nwith_options(
944
+ def describe_nis_inspection_report_check_items_with_options(
933
945
  self,
934
- tmp_req: nis_20211216_models.GetTransitRouterFlowTopNRequest,
946
+ tmp_req: nis_20211216_models.DescribeNisInspectionReportCheckItemsRequest,
935
947
  runtime: util_models.RuntimeOptions,
936
- ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
948
+ ) -> nis_20211216_models.DescribeNisInspectionReportCheckItemsResponse:
949
+ """
950
+ @summary 报告巡检项列表
951
+
952
+ @param tmp_req: DescribeNisInspectionReportCheckItemsRequest
953
+ @param runtime: runtime options for this request RuntimeOptions
954
+ @return: DescribeNisInspectionReportCheckItemsResponse
955
+ """
937
956
  UtilClient.validate_model(tmp_req)
938
- request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
957
+ request = nis_20211216_models.DescribeNisInspectionReportCheckItemsShrinkRequest()
939
958
  OpenApiUtilClient.convert(tmp_req, request)
940
- if not UtilClient.is_unset(tmp_req.account_ids):
941
- request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
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')
942
963
  query = {}
943
- if not UtilClient.is_unset(request.account_ids_shrink):
944
- query['AccountIds'] = request.account_ids_shrink
945
- if not UtilClient.is_unset(request.bandwith_package_id):
946
- query['BandwithPackageId'] = request.bandwith_package_id
947
- if not UtilClient.is_unset(request.begin_time):
948
- query['BeginTime'] = request.begin_time
949
- if not UtilClient.is_unset(request.cen_id):
950
- query['CenId'] = request.cen_id
951
- if not UtilClient.is_unset(request.direction):
952
- query['Direction'] = request.direction
953
- if not UtilClient.is_unset(request.end_time):
954
- query['EndTime'] = request.end_time
955
- if not UtilClient.is_unset(request.group_by):
956
- query['GroupBy'] = request.group_by
957
- if not UtilClient.is_unset(request.order_by):
958
- query['OrderBy'] = request.order_by
959
- if not UtilClient.is_unset(request.other_ip):
960
- query['OtherIp'] = request.other_ip
961
- if not UtilClient.is_unset(request.other_port):
962
- query['OtherPort'] = request.other_port
963
- if not UtilClient.is_unset(request.other_region):
964
- query['OtherRegion'] = request.other_region
965
- if not UtilClient.is_unset(request.protocol):
966
- query['Protocol'] = request.protocol
967
- if not UtilClient.is_unset(request.sort):
968
- query['Sort'] = request.sort
969
- if not UtilClient.is_unset(request.this_ip):
970
- query['ThisIp'] = request.this_ip
971
- if not UtilClient.is_unset(request.this_port):
972
- query['ThisPort'] = request.this_port
973
- if not UtilClient.is_unset(request.this_region):
974
- query['ThisRegion'] = request.this_region
975
- if not UtilClient.is_unset(request.top_n):
976
- query['TopN'] = request.top_n
977
- if not UtilClient.is_unset(request.use_multi_account):
978
- query['UseMultiAccount'] = request.use_multi_account
964
+ if not UtilClient.is_unset(request.category_code):
965
+ query['CategoryCode'] = request.category_code
966
+ if not UtilClient.is_unset(request.inspection_report_id):
967
+ query['InspectionReportId'] = request.inspection_report_id
968
+ if not UtilClient.is_unset(request.language):
969
+ query['Language'] = request.language
970
+ if not UtilClient.is_unset(request.max_results):
971
+ query['MaxResults'] = request.max_results
972
+ if not UtilClient.is_unset(request.next_token):
973
+ query['NextToken'] = request.next_token
974
+ if not UtilClient.is_unset(request.resource_type_shrink):
975
+ query['ResourceType'] = request.resource_type_shrink
976
+ if not UtilClient.is_unset(request.risk_level_shrink):
977
+ query['RiskLevel'] = request.risk_level_shrink
979
978
  req = open_api_models.OpenApiRequest(
980
979
  query=OpenApiUtilClient.query(query)
981
980
  )
982
981
  params = open_api_models.Params(
983
- action='GetTransitRouterFlowTopN',
982
+ action='DescribeNisInspectionReportCheckItems',
984
983
  version='2021-12-16',
985
984
  protocol='HTTPS',
986
985
  pathname='/',
@@ -991,62 +990,49 @@ class Client(OpenApiClient):
991
990
  body_type='json'
992
991
  )
993
992
  return TeaCore.from_map(
994
- nis_20211216_models.GetTransitRouterFlowTopNResponse(),
993
+ nis_20211216_models.DescribeNisInspectionReportCheckItemsResponse(),
995
994
  self.call_api(params, req, runtime)
996
995
  )
997
996
 
998
- async def get_transit_router_flow_top_nwith_options_async(
997
+ async def describe_nis_inspection_report_check_items_with_options_async(
999
998
  self,
1000
- tmp_req: nis_20211216_models.GetTransitRouterFlowTopNRequest,
999
+ tmp_req: nis_20211216_models.DescribeNisInspectionReportCheckItemsRequest,
1001
1000
  runtime: util_models.RuntimeOptions,
1002
- ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
1001
+ ) -> nis_20211216_models.DescribeNisInspectionReportCheckItemsResponse:
1002
+ """
1003
+ @summary 报告巡检项列表
1004
+
1005
+ @param tmp_req: DescribeNisInspectionReportCheckItemsRequest
1006
+ @param runtime: runtime options for this request RuntimeOptions
1007
+ @return: DescribeNisInspectionReportCheckItemsResponse
1008
+ """
1003
1009
  UtilClient.validate_model(tmp_req)
1004
- request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
1010
+ request = nis_20211216_models.DescribeNisInspectionReportCheckItemsShrinkRequest()
1005
1011
  OpenApiUtilClient.convert(tmp_req, request)
1006
- if not UtilClient.is_unset(tmp_req.account_ids):
1007
- request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
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')
1008
1016
  query = {}
1009
- if not UtilClient.is_unset(request.account_ids_shrink):
1010
- query['AccountIds'] = request.account_ids_shrink
1011
- if not UtilClient.is_unset(request.bandwith_package_id):
1012
- query['BandwithPackageId'] = request.bandwith_package_id
1013
- if not UtilClient.is_unset(request.begin_time):
1014
- query['BeginTime'] = request.begin_time
1015
- if not UtilClient.is_unset(request.cen_id):
1016
- query['CenId'] = request.cen_id
1017
- if not UtilClient.is_unset(request.direction):
1018
- query['Direction'] = request.direction
1019
- if not UtilClient.is_unset(request.end_time):
1020
- query['EndTime'] = request.end_time
1021
- if not UtilClient.is_unset(request.group_by):
1022
- query['GroupBy'] = request.group_by
1023
- if not UtilClient.is_unset(request.order_by):
1024
- query['OrderBy'] = request.order_by
1025
- if not UtilClient.is_unset(request.other_ip):
1026
- query['OtherIp'] = request.other_ip
1027
- if not UtilClient.is_unset(request.other_port):
1028
- query['OtherPort'] = request.other_port
1029
- if not UtilClient.is_unset(request.other_region):
1030
- query['OtherRegion'] = request.other_region
1031
- if not UtilClient.is_unset(request.protocol):
1032
- query['Protocol'] = request.protocol
1033
- if not UtilClient.is_unset(request.sort):
1034
- query['Sort'] = request.sort
1035
- if not UtilClient.is_unset(request.this_ip):
1036
- query['ThisIp'] = request.this_ip
1037
- if not UtilClient.is_unset(request.this_port):
1038
- query['ThisPort'] = request.this_port
1039
- if not UtilClient.is_unset(request.this_region):
1040
- query['ThisRegion'] = request.this_region
1041
- if not UtilClient.is_unset(request.top_n):
1042
- query['TopN'] = request.top_n
1043
- if not UtilClient.is_unset(request.use_multi_account):
1044
- query['UseMultiAccount'] = request.use_multi_account
1017
+ if not UtilClient.is_unset(request.category_code):
1018
+ query['CategoryCode'] = request.category_code
1019
+ if not UtilClient.is_unset(request.inspection_report_id):
1020
+ query['InspectionReportId'] = request.inspection_report_id
1021
+ if not UtilClient.is_unset(request.language):
1022
+ query['Language'] = request.language
1023
+ if not UtilClient.is_unset(request.max_results):
1024
+ query['MaxResults'] = request.max_results
1025
+ if not UtilClient.is_unset(request.next_token):
1026
+ query['NextToken'] = request.next_token
1027
+ if not UtilClient.is_unset(request.resource_type_shrink):
1028
+ query['ResourceType'] = request.resource_type_shrink
1029
+ if not UtilClient.is_unset(request.risk_level_shrink):
1030
+ query['RiskLevel'] = request.risk_level_shrink
1045
1031
  req = open_api_models.OpenApiRequest(
1046
1032
  query=OpenApiUtilClient.query(query)
1047
1033
  )
1048
1034
  params = open_api_models.Params(
1049
- action='GetTransitRouterFlowTopN',
1035
+ action='DescribeNisInspectionReportCheckItems',
1050
1036
  version='2021-12-16',
1051
1037
  protocol='HTTPS',
1052
1038
  pathname='/',
@@ -1057,76 +1043,57 @@ class Client(OpenApiClient):
1057
1043
  body_type='json'
1058
1044
  )
1059
1045
  return TeaCore.from_map(
1060
- nis_20211216_models.GetTransitRouterFlowTopNResponse(),
1046
+ nis_20211216_models.DescribeNisInspectionReportCheckItemsResponse(),
1061
1047
  await self.call_api_async(params, req, runtime)
1062
1048
  )
1063
1049
 
1064
- def get_transit_router_flow_top_n(
1050
+ def describe_nis_inspection_report_check_items(
1065
1051
  self,
1066
- request: nis_20211216_models.GetTransitRouterFlowTopNRequest,
1067
- ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
1052
+ request: nis_20211216_models.DescribeNisInspectionReportCheckItemsRequest,
1053
+ ) -> nis_20211216_models.DescribeNisInspectionReportCheckItemsResponse:
1054
+ """
1055
+ @summary 报告巡检项列表
1056
+
1057
+ @param request: DescribeNisInspectionReportCheckItemsRequest
1058
+ @return: DescribeNisInspectionReportCheckItemsResponse
1059
+ """
1068
1060
  runtime = util_models.RuntimeOptions()
1069
- return self.get_transit_router_flow_top_nwith_options(request, runtime)
1061
+ return self.describe_nis_inspection_report_check_items_with_options(request, runtime)
1070
1062
 
1071
- async def get_transit_router_flow_top_n_async(
1063
+ async def describe_nis_inspection_report_check_items_async(
1072
1064
  self,
1073
- request: nis_20211216_models.GetTransitRouterFlowTopNRequest,
1074
- ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
1065
+ request: nis_20211216_models.DescribeNisInspectionReportCheckItemsRequest,
1066
+ ) -> nis_20211216_models.DescribeNisInspectionReportCheckItemsResponse:
1067
+ """
1068
+ @summary 报告巡检项列表
1069
+
1070
+ @param request: DescribeNisInspectionReportCheckItemsRequest
1071
+ @return: DescribeNisInspectionReportCheckItemsResponse
1072
+ """
1075
1073
  runtime = util_models.RuntimeOptions()
1076
- return await self.get_transit_router_flow_top_nwith_options_async(request, runtime)
1074
+ return await self.describe_nis_inspection_report_check_items_with_options_async(request, runtime)
1077
1075
 
1078
- def get_vbr_flow_top_nwith_options(
1076
+ def describe_nis_inspection_report_status_with_options(
1079
1077
  self,
1080
- tmp_req: nis_20211216_models.GetVbrFlowTopNRequest,
1078
+ request: nis_20211216_models.DescribeNisInspectionReportStatusRequest,
1081
1079
  runtime: util_models.RuntimeOptions,
1082
- ) -> nis_20211216_models.GetVbrFlowTopNResponse:
1083
- UtilClient.validate_model(tmp_req)
1084
- request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
1085
- OpenApiUtilClient.convert(tmp_req, request)
1086
- if not UtilClient.is_unset(tmp_req.account_ids):
1087
- request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
1080
+ ) -> nis_20211216_models.DescribeNisInspectionReportStatusResponse:
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)
1088
1089
  query = {}
1089
- if not UtilClient.is_unset(request.account_ids_shrink):
1090
- query['AccountIds'] = request.account_ids_shrink
1091
- if not UtilClient.is_unset(request.attachment_id):
1092
- query['AttachmentId'] = request.attachment_id
1093
- if not UtilClient.is_unset(request.begin_time):
1094
- query['BeginTime'] = request.begin_time
1095
- if not UtilClient.is_unset(request.cen_id):
1096
- query['CenId'] = request.cen_id
1097
- if not UtilClient.is_unset(request.cloud_ip):
1098
- query['CloudIp'] = request.cloud_ip
1099
- if not UtilClient.is_unset(request.cloud_port):
1100
- query['CloudPort'] = request.cloud_port
1101
- if not UtilClient.is_unset(request.direction):
1102
- query['Direction'] = request.direction
1103
- if not UtilClient.is_unset(request.end_time):
1104
- query['EndTime'] = request.end_time
1105
- if not UtilClient.is_unset(request.group_by):
1106
- query['GroupBy'] = request.group_by
1107
- if not UtilClient.is_unset(request.order_by):
1108
- query['OrderBy'] = request.order_by
1109
- if not UtilClient.is_unset(request.other_ip):
1110
- query['OtherIp'] = request.other_ip
1111
- if not UtilClient.is_unset(request.other_port):
1112
- query['OtherPort'] = request.other_port
1113
- if not UtilClient.is_unset(request.protocol):
1114
- query['Protocol'] = request.protocol
1115
- if not UtilClient.is_unset(request.region_id):
1116
- query['RegionId'] = request.region_id
1117
- if not UtilClient.is_unset(request.sort):
1118
- query['Sort'] = request.sort
1119
- if not UtilClient.is_unset(request.top_n):
1120
- query['TopN'] = request.top_n
1121
- if not UtilClient.is_unset(request.use_multi_account):
1122
- query['UseMultiAccount'] = request.use_multi_account
1123
- if not UtilClient.is_unset(request.virtual_border_router_id):
1124
- query['VirtualBorderRouterId'] = request.virtual_border_router_id
1090
+ if not UtilClient.is_unset(request.inspection_report_id):
1091
+ query['InspectionReportId'] = request.inspection_report_id
1125
1092
  req = open_api_models.OpenApiRequest(
1126
1093
  query=OpenApiUtilClient.query(query)
1127
1094
  )
1128
1095
  params = open_api_models.Params(
1129
- action='GetVbrFlowTopN',
1096
+ action='DescribeNisInspectionReportStatus',
1130
1097
  version='2021-12-16',
1131
1098
  protocol='HTTPS',
1132
1099
  pathname='/',
@@ -1137,62 +1104,31 @@ class Client(OpenApiClient):
1137
1104
  body_type='json'
1138
1105
  )
1139
1106
  return TeaCore.from_map(
1140
- nis_20211216_models.GetVbrFlowTopNResponse(),
1107
+ nis_20211216_models.DescribeNisInspectionReportStatusResponse(),
1141
1108
  self.call_api(params, req, runtime)
1142
1109
  )
1143
1110
 
1144
- async def get_vbr_flow_top_nwith_options_async(
1111
+ async def describe_nis_inspection_report_status_with_options_async(
1145
1112
  self,
1146
- tmp_req: nis_20211216_models.GetVbrFlowTopNRequest,
1113
+ request: nis_20211216_models.DescribeNisInspectionReportStatusRequest,
1147
1114
  runtime: util_models.RuntimeOptions,
1148
- ) -> nis_20211216_models.GetVbrFlowTopNResponse:
1149
- UtilClient.validate_model(tmp_req)
1150
- request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
1151
- OpenApiUtilClient.convert(tmp_req, request)
1152
- if not UtilClient.is_unset(tmp_req.account_ids):
1153
- request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
1115
+ ) -> nis_20211216_models.DescribeNisInspectionReportStatusResponse:
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)
1154
1124
  query = {}
1155
- if not UtilClient.is_unset(request.account_ids_shrink):
1156
- query['AccountIds'] = request.account_ids_shrink
1157
- if not UtilClient.is_unset(request.attachment_id):
1158
- query['AttachmentId'] = request.attachment_id
1159
- if not UtilClient.is_unset(request.begin_time):
1160
- query['BeginTime'] = request.begin_time
1161
- if not UtilClient.is_unset(request.cen_id):
1162
- query['CenId'] = request.cen_id
1163
- if not UtilClient.is_unset(request.cloud_ip):
1164
- query['CloudIp'] = request.cloud_ip
1165
- if not UtilClient.is_unset(request.cloud_port):
1166
- query['CloudPort'] = request.cloud_port
1167
- if not UtilClient.is_unset(request.direction):
1168
- query['Direction'] = request.direction
1169
- if not UtilClient.is_unset(request.end_time):
1170
- query['EndTime'] = request.end_time
1171
- if not UtilClient.is_unset(request.group_by):
1172
- query['GroupBy'] = request.group_by
1173
- if not UtilClient.is_unset(request.order_by):
1174
- query['OrderBy'] = request.order_by
1175
- if not UtilClient.is_unset(request.other_ip):
1176
- query['OtherIp'] = request.other_ip
1177
- if not UtilClient.is_unset(request.other_port):
1178
- query['OtherPort'] = request.other_port
1179
- if not UtilClient.is_unset(request.protocol):
1180
- query['Protocol'] = request.protocol
1181
- if not UtilClient.is_unset(request.region_id):
1182
- query['RegionId'] = request.region_id
1183
- if not UtilClient.is_unset(request.sort):
1184
- query['Sort'] = request.sort
1185
- if not UtilClient.is_unset(request.top_n):
1186
- query['TopN'] = request.top_n
1187
- if not UtilClient.is_unset(request.use_multi_account):
1188
- query['UseMultiAccount'] = request.use_multi_account
1189
- if not UtilClient.is_unset(request.virtual_border_router_id):
1190
- query['VirtualBorderRouterId'] = request.virtual_border_router_id
1125
+ if not UtilClient.is_unset(request.inspection_report_id):
1126
+ query['InspectionReportId'] = request.inspection_report_id
1191
1127
  req = open_api_models.OpenApiRequest(
1192
1128
  query=OpenApiUtilClient.query(query)
1193
1129
  )
1194
1130
  params = open_api_models.Params(
1195
- action='GetVbrFlowTopN',
1131
+ action='DescribeNisInspectionReportStatus',
1196
1132
  version='2021-12-16',
1197
1133
  protocol='HTTPS',
1198
1134
  pathname='/',
@@ -1203,20 +1139,1818 @@ class Client(OpenApiClient):
1203
1139
  body_type='json'
1204
1140
  )
1205
1141
  return TeaCore.from_map(
1206
- nis_20211216_models.GetVbrFlowTopNResponse(),
1142
+ nis_20211216_models.DescribeNisInspectionReportStatusResponse(),
1207
1143
  await self.call_api_async(params, req, runtime)
1208
1144
  )
1209
1145
 
1210
- def get_vbr_flow_top_n(
1146
+ def describe_nis_inspection_report_status(
1211
1147
  self,
1212
- request: nis_20211216_models.GetVbrFlowTopNRequest,
1213
- ) -> nis_20211216_models.GetVbrFlowTopNResponse:
1148
+ request: nis_20211216_models.DescribeNisInspectionReportStatusRequest,
1149
+ ) -> nis_20211216_models.DescribeNisInspectionReportStatusResponse:
1150
+ """
1151
+ @summary 查询报告状态
1152
+
1153
+ @param request: DescribeNisInspectionReportStatusRequest
1154
+ @return: DescribeNisInspectionReportStatusResponse
1155
+ """
1214
1156
  runtime = util_models.RuntimeOptions()
1215
- return self.get_vbr_flow_top_nwith_options(request, runtime)
1157
+ return self.describe_nis_inspection_report_status_with_options(request, runtime)
1216
1158
 
1217
- async def get_vbr_flow_top_n_async(
1159
+ async def describe_nis_inspection_report_status_async(
1218
1160
  self,
1219
- request: nis_20211216_models.GetVbrFlowTopNRequest,
1220
- ) -> nis_20211216_models.GetVbrFlowTopNResponse:
1161
+ request: nis_20211216_models.DescribeNisInspectionReportStatusRequest,
1162
+ ) -> nis_20211216_models.DescribeNisInspectionReportStatusResponse:
1163
+ """
1164
+ @summary 查询报告状态
1165
+
1166
+ @param request: DescribeNisInspectionReportStatusRequest
1167
+ @return: DescribeNisInspectionReportStatusResponse
1168
+ """
1221
1169
  runtime = util_models.RuntimeOptions()
1222
- return await self.get_vbr_flow_top_nwith_options_async(request, runtime)
1170
+ return await self.describe_nis_inspection_report_status_with_options_async(request, runtime)
1171
+
1172
+ def describe_nis_inspection_report_summary_with_options(
1173
+ self,
1174
+ request: nis_20211216_models.DescribeNisInspectionReportSummaryRequest,
1175
+ runtime: util_models.RuntimeOptions,
1176
+ ) -> nis_20211216_models.DescribeNisInspectionReportSummaryResponse:
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)
1185
+ query = {}
1186
+ if not UtilClient.is_unset(request.inspection_report_id):
1187
+ query['InspectionReportId'] = request.inspection_report_id
1188
+ req = open_api_models.OpenApiRequest(
1189
+ query=OpenApiUtilClient.query(query)
1190
+ )
1191
+ params = open_api_models.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 TeaCore.from_map(
1203
+ nis_20211216_models.DescribeNisInspectionReportSummaryResponse(),
1204
+ self.call_api(params, req, runtime)
1205
+ )
1206
+
1207
+ async def describe_nis_inspection_report_summary_with_options_async(
1208
+ self,
1209
+ request: nis_20211216_models.DescribeNisInspectionReportSummaryRequest,
1210
+ runtime: util_models.RuntimeOptions,
1211
+ ) -> nis_20211216_models.DescribeNisInspectionReportSummaryResponse:
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)
1220
+ query = {}
1221
+ if not UtilClient.is_unset(request.inspection_report_id):
1222
+ query['InspectionReportId'] = request.inspection_report_id
1223
+ req = open_api_models.OpenApiRequest(
1224
+ query=OpenApiUtilClient.query(query)
1225
+ )
1226
+ params = open_api_models.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 TeaCore.from_map(
1238
+ nis_20211216_models.DescribeNisInspectionReportSummaryResponse(),
1239
+ await self.call_api_async(params, req, runtime)
1240
+ )
1241
+
1242
+ def describe_nis_inspection_report_summary(
1243
+ self,
1244
+ request: nis_20211216_models.DescribeNisInspectionReportSummaryRequest,
1245
+ ) -> nis_20211216_models.DescribeNisInspectionReportSummaryResponse:
1246
+ """
1247
+ @summary 报告总结信息
1248
+
1249
+ @param request: DescribeNisInspectionReportSummaryRequest
1250
+ @return: DescribeNisInspectionReportSummaryResponse
1251
+ """
1252
+ runtime = util_models.RuntimeOptions()
1253
+ return self.describe_nis_inspection_report_summary_with_options(request, runtime)
1254
+
1255
+ async def describe_nis_inspection_report_summary_async(
1256
+ self,
1257
+ request: nis_20211216_models.DescribeNisInspectionReportSummaryRequest,
1258
+ ) -> nis_20211216_models.DescribeNisInspectionReportSummaryResponse:
1259
+ """
1260
+ @summary 报告总结信息
1261
+
1262
+ @param request: DescribeNisInspectionReportSummaryRequest
1263
+ @return: DescribeNisInspectionReportSummaryResponse
1264
+ """
1265
+ runtime = util_models.RuntimeOptions()
1266
+ return await self.describe_nis_inspection_report_summary_with_options_async(request, runtime)
1267
+
1268
+ def describe_nis_inspection_task_with_options(
1269
+ self,
1270
+ request: nis_20211216_models.DescribeNisInspectionTaskRequest,
1271
+ runtime: util_models.RuntimeOptions,
1272
+ ) -> nis_20211216_models.DescribeNisInspectionTaskResponse:
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)
1281
+ query = {}
1282
+ if not UtilClient.is_unset(request.inspection_task_id):
1283
+ query['InspectionTaskId'] = request.inspection_task_id
1284
+ req = open_api_models.OpenApiRequest(
1285
+ query=OpenApiUtilClient.query(query)
1286
+ )
1287
+ params = open_api_models.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 TeaCore.from_map(
1299
+ nis_20211216_models.DescribeNisInspectionTaskResponse(),
1300
+ self.call_api(params, req, runtime)
1301
+ )
1302
+
1303
+ async def describe_nis_inspection_task_with_options_async(
1304
+ self,
1305
+ request: nis_20211216_models.DescribeNisInspectionTaskRequest,
1306
+ runtime: util_models.RuntimeOptions,
1307
+ ) -> nis_20211216_models.DescribeNisInspectionTaskResponse:
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)
1316
+ query = {}
1317
+ if not UtilClient.is_unset(request.inspection_task_id):
1318
+ query['InspectionTaskId'] = request.inspection_task_id
1319
+ req = open_api_models.OpenApiRequest(
1320
+ query=OpenApiUtilClient.query(query)
1321
+ )
1322
+ params = open_api_models.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 TeaCore.from_map(
1334
+ nis_20211216_models.DescribeNisInspectionTaskResponse(),
1335
+ await self.call_api_async(params, req, runtime)
1336
+ )
1337
+
1338
+ def describe_nis_inspection_task(
1339
+ self,
1340
+ request: nis_20211216_models.DescribeNisInspectionTaskRequest,
1341
+ ) -> nis_20211216_models.DescribeNisInspectionTaskResponse:
1342
+ """
1343
+ @summary 查询巡检任务
1344
+
1345
+ @param request: DescribeNisInspectionTaskRequest
1346
+ @return: DescribeNisInspectionTaskResponse
1347
+ """
1348
+ runtime = util_models.RuntimeOptions()
1349
+ return self.describe_nis_inspection_task_with_options(request, runtime)
1350
+
1351
+ async def describe_nis_inspection_task_async(
1352
+ self,
1353
+ request: nis_20211216_models.DescribeNisInspectionTaskRequest,
1354
+ ) -> nis_20211216_models.DescribeNisInspectionTaskResponse:
1355
+ """
1356
+ @summary 查询巡检任务
1357
+
1358
+ @param request: DescribeNisInspectionTaskRequest
1359
+ @return: DescribeNisInspectionTaskResponse
1360
+ """
1361
+ runtime = util_models.RuntimeOptions()
1362
+ return await self.describe_nis_inspection_task_with_options_async(request, runtime)
1363
+
1364
+ def get_internet_tuple_with_options(
1365
+ self,
1366
+ tmp_req: nis_20211216_models.GetInternetTupleRequest,
1367
+ runtime: util_models.RuntimeOptions,
1368
+ ) -> nis_20211216_models.GetInternetTupleResponse:
1369
+ """
1370
+ @deprecated OpenAPI GetInternetTuple is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
1371
+
1372
+ @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.
1373
+
1374
+ @param tmp_req: GetInternetTupleRequest
1375
+ @param runtime: runtime options for this request RuntimeOptions
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')
1386
+ query = {}
1387
+ if not UtilClient.is_unset(request.account_ids):
1388
+ query['AccountIds'] = request.account_ids
1389
+ if not UtilClient.is_unset(request.begin_time):
1390
+ query['BeginTime'] = request.begin_time
1391
+ if not UtilClient.is_unset(request.cloud_ip):
1392
+ query['CloudIp'] = request.cloud_ip
1393
+ if not UtilClient.is_unset(request.cloud_ip_list_shrink):
1394
+ query['CloudIpList'] = request.cloud_ip_list_shrink
1395
+ if not UtilClient.is_unset(request.cloud_isp):
1396
+ query['CloudIsp'] = request.cloud_isp
1397
+ if not UtilClient.is_unset(request.cloud_port):
1398
+ query['CloudPort'] = request.cloud_port
1399
+ if not UtilClient.is_unset(request.direction):
1400
+ query['Direction'] = request.direction
1401
+ if not UtilClient.is_unset(request.end_time):
1402
+ query['EndTime'] = request.end_time
1403
+ if not UtilClient.is_unset(request.instance_id):
1404
+ query['InstanceId'] = request.instance_id
1405
+ if not UtilClient.is_unset(request.instance_list_shrink):
1406
+ query['InstanceList'] = request.instance_list_shrink
1407
+ if not UtilClient.is_unset(request.order_by):
1408
+ query['OrderBy'] = request.order_by
1409
+ if not UtilClient.is_unset(request.other_city):
1410
+ query['OtherCity'] = request.other_city
1411
+ if not UtilClient.is_unset(request.other_country):
1412
+ query['OtherCountry'] = request.other_country
1413
+ if not UtilClient.is_unset(request.other_ip):
1414
+ query['OtherIp'] = request.other_ip
1415
+ if not UtilClient.is_unset(request.other_isp):
1416
+ query['OtherIsp'] = request.other_isp
1417
+ if not UtilClient.is_unset(request.other_port):
1418
+ query['OtherPort'] = request.other_port
1419
+ if not UtilClient.is_unset(request.protocol):
1420
+ query['Protocol'] = request.protocol
1421
+ if not UtilClient.is_unset(request.region_id):
1422
+ query['RegionId'] = request.region_id
1423
+ if not UtilClient.is_unset(request.sort):
1424
+ query['Sort'] = request.sort
1425
+ if not UtilClient.is_unset(request.top_n):
1426
+ query['TopN'] = request.top_n
1427
+ if not UtilClient.is_unset(request.tuple_type):
1428
+ query['TupleType'] = request.tuple_type
1429
+ if not UtilClient.is_unset(request.use_multi_account):
1430
+ query['UseMultiAccount'] = request.use_multi_account
1431
+ req = open_api_models.OpenApiRequest(
1432
+ query=OpenApiUtilClient.query(query)
1433
+ )
1434
+ params = open_api_models.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 TeaCore.from_map(
1446
+ nis_20211216_models.GetInternetTupleResponse(),
1447
+ self.call_api(params, req, runtime)
1448
+ )
1449
+
1450
+ async def get_internet_tuple_with_options_async(
1451
+ self,
1452
+ tmp_req: nis_20211216_models.GetInternetTupleRequest,
1453
+ runtime: util_models.RuntimeOptions,
1454
+ ) -> nis_20211216_models.GetInternetTupleResponse:
1455
+ """
1456
+ @deprecated OpenAPI GetInternetTuple is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
1457
+
1458
+ @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.
1459
+
1460
+ @param tmp_req: GetInternetTupleRequest
1461
+ @param runtime: runtime options for this request RuntimeOptions
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')
1472
+ query = {}
1473
+ if not UtilClient.is_unset(request.account_ids):
1474
+ query['AccountIds'] = request.account_ids
1475
+ if not UtilClient.is_unset(request.begin_time):
1476
+ query['BeginTime'] = request.begin_time
1477
+ if not UtilClient.is_unset(request.cloud_ip):
1478
+ query['CloudIp'] = request.cloud_ip
1479
+ if not UtilClient.is_unset(request.cloud_ip_list_shrink):
1480
+ query['CloudIpList'] = request.cloud_ip_list_shrink
1481
+ if not UtilClient.is_unset(request.cloud_isp):
1482
+ query['CloudIsp'] = request.cloud_isp
1483
+ if not UtilClient.is_unset(request.cloud_port):
1484
+ query['CloudPort'] = request.cloud_port
1485
+ if not UtilClient.is_unset(request.direction):
1486
+ query['Direction'] = request.direction
1487
+ if not UtilClient.is_unset(request.end_time):
1488
+ query['EndTime'] = request.end_time
1489
+ if not UtilClient.is_unset(request.instance_id):
1490
+ query['InstanceId'] = request.instance_id
1491
+ if not UtilClient.is_unset(request.instance_list_shrink):
1492
+ query['InstanceList'] = request.instance_list_shrink
1493
+ if not UtilClient.is_unset(request.order_by):
1494
+ query['OrderBy'] = request.order_by
1495
+ if not UtilClient.is_unset(request.other_city):
1496
+ query['OtherCity'] = request.other_city
1497
+ if not UtilClient.is_unset(request.other_country):
1498
+ query['OtherCountry'] = request.other_country
1499
+ if not UtilClient.is_unset(request.other_ip):
1500
+ query['OtherIp'] = request.other_ip
1501
+ if not UtilClient.is_unset(request.other_isp):
1502
+ query['OtherIsp'] = request.other_isp
1503
+ if not UtilClient.is_unset(request.other_port):
1504
+ query['OtherPort'] = request.other_port
1505
+ if not UtilClient.is_unset(request.protocol):
1506
+ query['Protocol'] = request.protocol
1507
+ if not UtilClient.is_unset(request.region_id):
1508
+ query['RegionId'] = request.region_id
1509
+ if not UtilClient.is_unset(request.sort):
1510
+ query['Sort'] = request.sort
1511
+ if not UtilClient.is_unset(request.top_n):
1512
+ query['TopN'] = request.top_n
1513
+ if not UtilClient.is_unset(request.tuple_type):
1514
+ query['TupleType'] = request.tuple_type
1515
+ if not UtilClient.is_unset(request.use_multi_account):
1516
+ query['UseMultiAccount'] = request.use_multi_account
1517
+ req = open_api_models.OpenApiRequest(
1518
+ query=OpenApiUtilClient.query(query)
1519
+ )
1520
+ params = open_api_models.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 TeaCore.from_map(
1532
+ nis_20211216_models.GetInternetTupleResponse(),
1533
+ await self.call_api_async(params, req, runtime)
1534
+ )
1535
+
1536
+ def get_internet_tuple(
1537
+ self,
1538
+ request: nis_20211216_models.GetInternetTupleRequest,
1539
+ ) -> nis_20211216_models.GetInternetTupleResponse:
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()
1550
+ return self.get_internet_tuple_with_options(request, runtime)
1551
+
1552
+ async def get_internet_tuple_async(
1553
+ self,
1554
+ request: nis_20211216_models.GetInternetTupleRequest,
1555
+ ) -> nis_20211216_models.GetInternetTupleResponse:
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()
1566
+ return await self.get_internet_tuple_with_options_async(request, runtime)
1567
+
1568
+ def get_nat_top_nwith_options(
1569
+ self,
1570
+ request: nis_20211216_models.GetNatTopNRequest,
1571
+ runtime: util_models.RuntimeOptions,
1572
+ ) -> nis_20211216_models.GetNatTopNResponse:
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)
1584
+ query = {}
1585
+ if not UtilClient.is_unset(request.begin_time):
1586
+ query['BeginTime'] = request.begin_time
1587
+ if not UtilClient.is_unset(request.end_time):
1588
+ query['EndTime'] = request.end_time
1589
+ if not UtilClient.is_unset(request.ip):
1590
+ query['Ip'] = request.ip
1591
+ if not UtilClient.is_unset(request.nat_gateway_id):
1592
+ query['NatGatewayId'] = request.nat_gateway_id
1593
+ if not UtilClient.is_unset(request.order_by):
1594
+ query['OrderBy'] = request.order_by
1595
+ if not UtilClient.is_unset(request.region_id):
1596
+ query['RegionId'] = request.region_id
1597
+ if not UtilClient.is_unset(request.top_n):
1598
+ query['TopN'] = request.top_n
1599
+ req = open_api_models.OpenApiRequest(
1600
+ query=OpenApiUtilClient.query(query)
1601
+ )
1602
+ params = open_api_models.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 TeaCore.from_map(
1614
+ nis_20211216_models.GetNatTopNResponse(),
1615
+ self.call_api(params, req, runtime)
1616
+ )
1617
+
1618
+ async def get_nat_top_nwith_options_async(
1619
+ self,
1620
+ request: nis_20211216_models.GetNatTopNRequest,
1621
+ runtime: util_models.RuntimeOptions,
1622
+ ) -> nis_20211216_models.GetNatTopNResponse:
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)
1634
+ query = {}
1635
+ if not UtilClient.is_unset(request.begin_time):
1636
+ query['BeginTime'] = request.begin_time
1637
+ if not UtilClient.is_unset(request.end_time):
1638
+ query['EndTime'] = request.end_time
1639
+ if not UtilClient.is_unset(request.ip):
1640
+ query['Ip'] = request.ip
1641
+ if not UtilClient.is_unset(request.nat_gateway_id):
1642
+ query['NatGatewayId'] = request.nat_gateway_id
1643
+ if not UtilClient.is_unset(request.order_by):
1644
+ query['OrderBy'] = request.order_by
1645
+ if not UtilClient.is_unset(request.region_id):
1646
+ query['RegionId'] = request.region_id
1647
+ if not UtilClient.is_unset(request.top_n):
1648
+ query['TopN'] = request.top_n
1649
+ req = open_api_models.OpenApiRequest(
1650
+ query=OpenApiUtilClient.query(query)
1651
+ )
1652
+ params = open_api_models.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 TeaCore.from_map(
1664
+ nis_20211216_models.GetNatTopNResponse(),
1665
+ await self.call_api_async(params, req, runtime)
1666
+ )
1667
+
1668
+ def get_nat_top_n(
1669
+ self,
1670
+ request: nis_20211216_models.GetNatTopNRequest,
1671
+ ) -> nis_20211216_models.GetNatTopNResponse:
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()
1682
+ return self.get_nat_top_nwith_options(request, runtime)
1683
+
1684
+ async def get_nat_top_n_async(
1685
+ self,
1686
+ request: nis_20211216_models.GetNatTopNRequest,
1687
+ ) -> nis_20211216_models.GetNatTopNResponse:
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()
1698
+ return await self.get_nat_top_nwith_options_async(request, runtime)
1699
+
1700
+ def get_network_reachable_analysis_with_options(
1701
+ self,
1702
+ request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
1703
+ runtime: util_models.RuntimeOptions,
1704
+ ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
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)
1717
+ query = {}
1718
+ if not UtilClient.is_unset(request.network_reachable_analysis_id):
1719
+ query['NetworkReachableAnalysisId'] = request.network_reachable_analysis_id
1720
+ if not UtilClient.is_unset(request.region_id):
1721
+ query['RegionId'] = request.region_id
1722
+ req = open_api_models.OpenApiRequest(
1723
+ query=OpenApiUtilClient.query(query)
1724
+ )
1725
+ params = open_api_models.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 TeaCore.from_map(
1737
+ nis_20211216_models.GetNetworkReachableAnalysisResponse(),
1738
+ self.call_api(params, req, runtime)
1739
+ )
1740
+
1741
+ async def get_network_reachable_analysis_with_options_async(
1742
+ self,
1743
+ request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
1744
+ runtime: util_models.RuntimeOptions,
1745
+ ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
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)
1758
+ query = {}
1759
+ if not UtilClient.is_unset(request.network_reachable_analysis_id):
1760
+ query['NetworkReachableAnalysisId'] = request.network_reachable_analysis_id
1761
+ if not UtilClient.is_unset(request.region_id):
1762
+ query['RegionId'] = request.region_id
1763
+ req = open_api_models.OpenApiRequest(
1764
+ query=OpenApiUtilClient.query(query)
1765
+ )
1766
+ params = open_api_models.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 TeaCore.from_map(
1778
+ nis_20211216_models.GetNetworkReachableAnalysisResponse(),
1779
+ await self.call_api_async(params, req, runtime)
1780
+ )
1781
+
1782
+ def get_network_reachable_analysis(
1783
+ self,
1784
+ request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
1785
+ ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
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()
1797
+ return self.get_network_reachable_analysis_with_options(request, runtime)
1798
+
1799
+ async def get_network_reachable_analysis_async(
1800
+ self,
1801
+ request: nis_20211216_models.GetNetworkReachableAnalysisRequest,
1802
+ ) -> nis_20211216_models.GetNetworkReachableAnalysisResponse:
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()
1814
+ return await self.get_network_reachable_analysis_with_options_async(request, runtime)
1815
+
1816
+ def get_nis_network_metrics_with_options(
1817
+ self,
1818
+ tmp_req: nis_20211216_models.GetNisNetworkMetricsRequest,
1819
+ runtime: util_models.RuntimeOptions,
1820
+ ) -> nis_20211216_models.GetNisNetworkMetricsResponse:
1821
+ """
1822
+ @summary 获取云网络指标趋势
1823
+
1824
+ @param tmp_req: GetNisNetworkMetricsRequest
1825
+ @param runtime: runtime options for this request RuntimeOptions
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')
1833
+ query = {}
1834
+ if not UtilClient.is_unset(request.account_ids):
1835
+ query['AccountIds'] = request.account_ids
1836
+ if not UtilClient.is_unset(request.begin_time):
1837
+ query['BeginTime'] = request.begin_time
1838
+ if not UtilClient.is_unset(request.dimensions_shrink):
1839
+ query['Dimensions'] = request.dimensions_shrink
1840
+ if not UtilClient.is_unset(request.end_time):
1841
+ query['EndTime'] = request.end_time
1842
+ if not UtilClient.is_unset(request.metric_name):
1843
+ query['MetricName'] = request.metric_name
1844
+ if not UtilClient.is_unset(request.region_no):
1845
+ query['RegionNo'] = request.region_no
1846
+ if not UtilClient.is_unset(request.resource_type):
1847
+ query['ResourceType'] = request.resource_type
1848
+ if not UtilClient.is_unset(request.scan_by):
1849
+ query['ScanBy'] = request.scan_by
1850
+ if not UtilClient.is_unset(request.use_cross_account):
1851
+ query['UseCrossAccount'] = request.use_cross_account
1852
+ req = open_api_models.OpenApiRequest(
1853
+ query=OpenApiUtilClient.query(query)
1854
+ )
1855
+ params = open_api_models.Params(
1856
+ action='GetNisNetworkMetrics',
1857
+ version='2021-12-16',
1858
+ protocol='HTTPS',
1859
+ pathname='/',
1860
+ method='POST',
1861
+ auth_type='AK',
1862
+ style='RPC',
1863
+ req_body_type='formData',
1864
+ body_type='json'
1865
+ )
1866
+ return TeaCore.from_map(
1867
+ nis_20211216_models.GetNisNetworkMetricsResponse(),
1868
+ self.call_api(params, req, runtime)
1869
+ )
1870
+
1871
+ async def get_nis_network_metrics_with_options_async(
1872
+ self,
1873
+ tmp_req: nis_20211216_models.GetNisNetworkMetricsRequest,
1874
+ runtime: util_models.RuntimeOptions,
1875
+ ) -> nis_20211216_models.GetNisNetworkMetricsResponse:
1876
+ """
1877
+ @summary 获取云网络指标趋势
1878
+
1879
+ @param tmp_req: GetNisNetworkMetricsRequest
1880
+ @param runtime: runtime options for this request RuntimeOptions
1881
+ @return: GetNisNetworkMetricsResponse
1882
+ """
1883
+ UtilClient.validate_model(tmp_req)
1884
+ request = nis_20211216_models.GetNisNetworkMetricsShrinkRequest()
1885
+ OpenApiUtilClient.convert(tmp_req, request)
1886
+ if not UtilClient.is_unset(tmp_req.dimensions):
1887
+ request.dimensions_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.dimensions, 'Dimensions', 'json')
1888
+ query = {}
1889
+ if not UtilClient.is_unset(request.account_ids):
1890
+ query['AccountIds'] = request.account_ids
1891
+ if not UtilClient.is_unset(request.begin_time):
1892
+ query['BeginTime'] = request.begin_time
1893
+ if not UtilClient.is_unset(request.dimensions_shrink):
1894
+ query['Dimensions'] = request.dimensions_shrink
1895
+ if not UtilClient.is_unset(request.end_time):
1896
+ query['EndTime'] = request.end_time
1897
+ if not UtilClient.is_unset(request.metric_name):
1898
+ query['MetricName'] = request.metric_name
1899
+ if not UtilClient.is_unset(request.region_no):
1900
+ query['RegionNo'] = request.region_no
1901
+ if not UtilClient.is_unset(request.resource_type):
1902
+ query['ResourceType'] = request.resource_type
1903
+ if not UtilClient.is_unset(request.scan_by):
1904
+ query['ScanBy'] = request.scan_by
1905
+ if not UtilClient.is_unset(request.use_cross_account):
1906
+ query['UseCrossAccount'] = request.use_cross_account
1907
+ req = open_api_models.OpenApiRequest(
1908
+ query=OpenApiUtilClient.query(query)
1909
+ )
1910
+ params = open_api_models.Params(
1911
+ action='GetNisNetworkMetrics',
1912
+ version='2021-12-16',
1913
+ protocol='HTTPS',
1914
+ pathname='/',
1915
+ method='POST',
1916
+ auth_type='AK',
1917
+ style='RPC',
1918
+ req_body_type='formData',
1919
+ body_type='json'
1920
+ )
1921
+ return TeaCore.from_map(
1922
+ nis_20211216_models.GetNisNetworkMetricsResponse(),
1923
+ await self.call_api_async(params, req, runtime)
1924
+ )
1925
+
1926
+ def get_nis_network_metrics(
1927
+ self,
1928
+ request: nis_20211216_models.GetNisNetworkMetricsRequest,
1929
+ ) -> nis_20211216_models.GetNisNetworkMetricsResponse:
1930
+ """
1931
+ @summary 获取云网络指标趋势
1932
+
1933
+ @param request: GetNisNetworkMetricsRequest
1934
+ @return: GetNisNetworkMetricsResponse
1935
+ """
1936
+ runtime = util_models.RuntimeOptions()
1937
+ return self.get_nis_network_metrics_with_options(request, runtime)
1938
+
1939
+ async def get_nis_network_metrics_async(
1940
+ self,
1941
+ request: nis_20211216_models.GetNisNetworkMetricsRequest,
1942
+ ) -> nis_20211216_models.GetNisNetworkMetricsResponse:
1943
+ """
1944
+ @summary 获取云网络指标趋势
1945
+
1946
+ @param request: GetNisNetworkMetricsRequest
1947
+ @return: GetNisNetworkMetricsResponse
1948
+ """
1949
+ runtime = util_models.RuntimeOptions()
1950
+ return await self.get_nis_network_metrics_with_options_async(request, runtime)
1951
+
1952
+ def get_nis_network_ranking_with_options(
1953
+ self,
1954
+ tmp_req: nis_20211216_models.GetNisNetworkRankingRequest,
1955
+ runtime: util_models.RuntimeOptions,
1956
+ ) -> nis_20211216_models.GetNisNetworkRankingResponse:
1957
+ """
1958
+ @summary 获取云网络指标排名
1959
+
1960
+ @param tmp_req: GetNisNetworkRankingRequest
1961
+ @param runtime: runtime options for this request RuntimeOptions
1962
+ @return: GetNisNetworkRankingResponse
1963
+ """
1964
+ UtilClient.validate_model(tmp_req)
1965
+ request = nis_20211216_models.GetNisNetworkRankingShrinkRequest()
1966
+ OpenApiUtilClient.convert(tmp_req, request)
1967
+ if not UtilClient.is_unset(tmp_req.filter):
1968
+ request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
1969
+ query = {}
1970
+ if not UtilClient.is_unset(request.account_ids):
1971
+ query['AccountIds'] = request.account_ids
1972
+ if not UtilClient.is_unset(request.begin_time):
1973
+ query['BeginTime'] = request.begin_time
1974
+ if not UtilClient.is_unset(request.direction):
1975
+ query['Direction'] = request.direction
1976
+ if not UtilClient.is_unset(request.end_time):
1977
+ query['EndTime'] = request.end_time
1978
+ if not UtilClient.is_unset(request.filter_shrink):
1979
+ query['Filter'] = request.filter_shrink
1980
+ if not UtilClient.is_unset(request.group_by):
1981
+ query['GroupBy'] = request.group_by
1982
+ if not UtilClient.is_unset(request.order_by):
1983
+ query['OrderBy'] = request.order_by
1984
+ if not UtilClient.is_unset(request.region_no):
1985
+ query['RegionNo'] = request.region_no
1986
+ if not UtilClient.is_unset(request.resource_type):
1987
+ query['ResourceType'] = request.resource_type
1988
+ if not UtilClient.is_unset(request.sort):
1989
+ query['Sort'] = request.sort
1990
+ if not UtilClient.is_unset(request.top_n):
1991
+ query['TopN'] = request.top_n
1992
+ if not UtilClient.is_unset(request.use_cross_account):
1993
+ query['UseCrossAccount'] = request.use_cross_account
1994
+ req = open_api_models.OpenApiRequest(
1995
+ query=OpenApiUtilClient.query(query)
1996
+ )
1997
+ params = open_api_models.Params(
1998
+ action='GetNisNetworkRanking',
1999
+ version='2021-12-16',
2000
+ protocol='HTTPS',
2001
+ pathname='/',
2002
+ method='POST',
2003
+ auth_type='AK',
2004
+ style='RPC',
2005
+ req_body_type='formData',
2006
+ body_type='json'
2007
+ )
2008
+ return TeaCore.from_map(
2009
+ nis_20211216_models.GetNisNetworkRankingResponse(),
2010
+ self.call_api(params, req, runtime)
2011
+ )
2012
+
2013
+ async def get_nis_network_ranking_with_options_async(
2014
+ self,
2015
+ tmp_req: nis_20211216_models.GetNisNetworkRankingRequest,
2016
+ runtime: util_models.RuntimeOptions,
2017
+ ) -> nis_20211216_models.GetNisNetworkRankingResponse:
2018
+ """
2019
+ @summary 获取云网络指标排名
2020
+
2021
+ @param tmp_req: GetNisNetworkRankingRequest
2022
+ @param runtime: runtime options for this request RuntimeOptions
2023
+ @return: GetNisNetworkRankingResponse
2024
+ """
2025
+ UtilClient.validate_model(tmp_req)
2026
+ request = nis_20211216_models.GetNisNetworkRankingShrinkRequest()
2027
+ OpenApiUtilClient.convert(tmp_req, request)
2028
+ if not UtilClient.is_unset(tmp_req.filter):
2029
+ request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
2030
+ query = {}
2031
+ if not UtilClient.is_unset(request.account_ids):
2032
+ query['AccountIds'] = request.account_ids
2033
+ if not UtilClient.is_unset(request.begin_time):
2034
+ query['BeginTime'] = request.begin_time
2035
+ if not UtilClient.is_unset(request.direction):
2036
+ query['Direction'] = request.direction
2037
+ if not UtilClient.is_unset(request.end_time):
2038
+ query['EndTime'] = request.end_time
2039
+ if not UtilClient.is_unset(request.filter_shrink):
2040
+ query['Filter'] = request.filter_shrink
2041
+ if not UtilClient.is_unset(request.group_by):
2042
+ query['GroupBy'] = request.group_by
2043
+ if not UtilClient.is_unset(request.order_by):
2044
+ query['OrderBy'] = request.order_by
2045
+ if not UtilClient.is_unset(request.region_no):
2046
+ query['RegionNo'] = request.region_no
2047
+ if not UtilClient.is_unset(request.resource_type):
2048
+ query['ResourceType'] = request.resource_type
2049
+ if not UtilClient.is_unset(request.sort):
2050
+ query['Sort'] = request.sort
2051
+ if not UtilClient.is_unset(request.top_n):
2052
+ query['TopN'] = request.top_n
2053
+ if not UtilClient.is_unset(request.use_cross_account):
2054
+ query['UseCrossAccount'] = request.use_cross_account
2055
+ req = open_api_models.OpenApiRequest(
2056
+ query=OpenApiUtilClient.query(query)
2057
+ )
2058
+ params = open_api_models.Params(
2059
+ action='GetNisNetworkRanking',
2060
+ version='2021-12-16',
2061
+ protocol='HTTPS',
2062
+ pathname='/',
2063
+ method='POST',
2064
+ auth_type='AK',
2065
+ style='RPC',
2066
+ req_body_type='formData',
2067
+ body_type='json'
2068
+ )
2069
+ return TeaCore.from_map(
2070
+ nis_20211216_models.GetNisNetworkRankingResponse(),
2071
+ await self.call_api_async(params, req, runtime)
2072
+ )
2073
+
2074
+ def get_nis_network_ranking(
2075
+ self,
2076
+ request: nis_20211216_models.GetNisNetworkRankingRequest,
2077
+ ) -> nis_20211216_models.GetNisNetworkRankingResponse:
2078
+ """
2079
+ @summary 获取云网络指标排名
2080
+
2081
+ @param request: GetNisNetworkRankingRequest
2082
+ @return: GetNisNetworkRankingResponse
2083
+ """
2084
+ runtime = util_models.RuntimeOptions()
2085
+ return self.get_nis_network_ranking_with_options(request, runtime)
2086
+
2087
+ async def get_nis_network_ranking_async(
2088
+ self,
2089
+ request: nis_20211216_models.GetNisNetworkRankingRequest,
2090
+ ) -> nis_20211216_models.GetNisNetworkRankingResponse:
2091
+ """
2092
+ @summary 获取云网络指标排名
2093
+
2094
+ @param request: GetNisNetworkRankingRequest
2095
+ @return: GetNisNetworkRankingResponse
2096
+ """
2097
+ runtime = util_models.RuntimeOptions()
2098
+ return await self.get_nis_network_ranking_with_options_async(request, runtime)
2099
+
2100
+ def get_transit_router_flow_top_nwith_options(
2101
+ self,
2102
+ tmp_req: nis_20211216_models.GetTransitRouterFlowTopNRequest,
2103
+ runtime: util_models.RuntimeOptions,
2104
+ ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
2105
+ """
2106
+ @deprecated OpenAPI GetTransitRouterFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2107
+
2108
+ @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.
2109
+
2110
+ @param tmp_req: GetTransitRouterFlowTopNRequest
2111
+ @param runtime: runtime options for this request RuntimeOptions
2112
+ @return: GetTransitRouterFlowTopNResponse
2113
+ Deprecated
2114
+ """
2115
+ UtilClient.validate_model(tmp_req)
2116
+ request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
2117
+ OpenApiUtilClient.convert(tmp_req, request)
2118
+ if not UtilClient.is_unset(tmp_req.account_ids):
2119
+ request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
2120
+ query = {}
2121
+ if not UtilClient.is_unset(request.account_ids_shrink):
2122
+ query['AccountIds'] = request.account_ids_shrink
2123
+ if not UtilClient.is_unset(request.bandwith_package_id):
2124
+ query['BandwithPackageId'] = request.bandwith_package_id
2125
+ if not UtilClient.is_unset(request.begin_time):
2126
+ query['BeginTime'] = request.begin_time
2127
+ if not UtilClient.is_unset(request.cen_id):
2128
+ query['CenId'] = request.cen_id
2129
+ if not UtilClient.is_unset(request.direction):
2130
+ query['Direction'] = request.direction
2131
+ if not UtilClient.is_unset(request.end_time):
2132
+ query['EndTime'] = request.end_time
2133
+ if not UtilClient.is_unset(request.group_by):
2134
+ query['GroupBy'] = request.group_by
2135
+ if not UtilClient.is_unset(request.order_by):
2136
+ query['OrderBy'] = request.order_by
2137
+ if not UtilClient.is_unset(request.other_ip):
2138
+ query['OtherIp'] = request.other_ip
2139
+ if not UtilClient.is_unset(request.other_port):
2140
+ query['OtherPort'] = request.other_port
2141
+ if not UtilClient.is_unset(request.other_region):
2142
+ query['OtherRegion'] = request.other_region
2143
+ if not UtilClient.is_unset(request.protocol):
2144
+ query['Protocol'] = request.protocol
2145
+ if not UtilClient.is_unset(request.sort):
2146
+ query['Sort'] = request.sort
2147
+ if not UtilClient.is_unset(request.this_ip):
2148
+ query['ThisIp'] = request.this_ip
2149
+ if not UtilClient.is_unset(request.this_port):
2150
+ query['ThisPort'] = request.this_port
2151
+ if not UtilClient.is_unset(request.this_region):
2152
+ query['ThisRegion'] = request.this_region
2153
+ if not UtilClient.is_unset(request.top_n):
2154
+ query['TopN'] = request.top_n
2155
+ if not UtilClient.is_unset(request.use_multi_account):
2156
+ query['UseMultiAccount'] = request.use_multi_account
2157
+ req = open_api_models.OpenApiRequest(
2158
+ query=OpenApiUtilClient.query(query)
2159
+ )
2160
+ params = open_api_models.Params(
2161
+ action='GetTransitRouterFlowTopN',
2162
+ version='2021-12-16',
2163
+ protocol='HTTPS',
2164
+ pathname='/',
2165
+ method='POST',
2166
+ auth_type='AK',
2167
+ style='RPC',
2168
+ req_body_type='formData',
2169
+ body_type='json'
2170
+ )
2171
+ return TeaCore.from_map(
2172
+ nis_20211216_models.GetTransitRouterFlowTopNResponse(),
2173
+ self.call_api(params, req, runtime)
2174
+ )
2175
+
2176
+ async def get_transit_router_flow_top_nwith_options_async(
2177
+ self,
2178
+ tmp_req: nis_20211216_models.GetTransitRouterFlowTopNRequest,
2179
+ runtime: util_models.RuntimeOptions,
2180
+ ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
2181
+ """
2182
+ @deprecated OpenAPI GetTransitRouterFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2183
+
2184
+ @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.
2185
+
2186
+ @param tmp_req: GetTransitRouterFlowTopNRequest
2187
+ @param runtime: runtime options for this request RuntimeOptions
2188
+ @return: GetTransitRouterFlowTopNResponse
2189
+ Deprecated
2190
+ """
2191
+ UtilClient.validate_model(tmp_req)
2192
+ request = nis_20211216_models.GetTransitRouterFlowTopNShrinkRequest()
2193
+ OpenApiUtilClient.convert(tmp_req, request)
2194
+ if not UtilClient.is_unset(tmp_req.account_ids):
2195
+ request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
2196
+ query = {}
2197
+ if not UtilClient.is_unset(request.account_ids_shrink):
2198
+ query['AccountIds'] = request.account_ids_shrink
2199
+ if not UtilClient.is_unset(request.bandwith_package_id):
2200
+ query['BandwithPackageId'] = request.bandwith_package_id
2201
+ if not UtilClient.is_unset(request.begin_time):
2202
+ query['BeginTime'] = request.begin_time
2203
+ if not UtilClient.is_unset(request.cen_id):
2204
+ query['CenId'] = request.cen_id
2205
+ if not UtilClient.is_unset(request.direction):
2206
+ query['Direction'] = request.direction
2207
+ if not UtilClient.is_unset(request.end_time):
2208
+ query['EndTime'] = request.end_time
2209
+ if not UtilClient.is_unset(request.group_by):
2210
+ query['GroupBy'] = request.group_by
2211
+ if not UtilClient.is_unset(request.order_by):
2212
+ query['OrderBy'] = request.order_by
2213
+ if not UtilClient.is_unset(request.other_ip):
2214
+ query['OtherIp'] = request.other_ip
2215
+ if not UtilClient.is_unset(request.other_port):
2216
+ query['OtherPort'] = request.other_port
2217
+ if not UtilClient.is_unset(request.other_region):
2218
+ query['OtherRegion'] = request.other_region
2219
+ if not UtilClient.is_unset(request.protocol):
2220
+ query['Protocol'] = request.protocol
2221
+ if not UtilClient.is_unset(request.sort):
2222
+ query['Sort'] = request.sort
2223
+ if not UtilClient.is_unset(request.this_ip):
2224
+ query['ThisIp'] = request.this_ip
2225
+ if not UtilClient.is_unset(request.this_port):
2226
+ query['ThisPort'] = request.this_port
2227
+ if not UtilClient.is_unset(request.this_region):
2228
+ query['ThisRegion'] = request.this_region
2229
+ if not UtilClient.is_unset(request.top_n):
2230
+ query['TopN'] = request.top_n
2231
+ if not UtilClient.is_unset(request.use_multi_account):
2232
+ query['UseMultiAccount'] = request.use_multi_account
2233
+ req = open_api_models.OpenApiRequest(
2234
+ query=OpenApiUtilClient.query(query)
2235
+ )
2236
+ params = open_api_models.Params(
2237
+ action='GetTransitRouterFlowTopN',
2238
+ version='2021-12-16',
2239
+ protocol='HTTPS',
2240
+ pathname='/',
2241
+ method='POST',
2242
+ auth_type='AK',
2243
+ style='RPC',
2244
+ req_body_type='formData',
2245
+ body_type='json'
2246
+ )
2247
+ return TeaCore.from_map(
2248
+ nis_20211216_models.GetTransitRouterFlowTopNResponse(),
2249
+ await self.call_api_async(params, req, runtime)
2250
+ )
2251
+
2252
+ def get_transit_router_flow_top_n(
2253
+ self,
2254
+ request: nis_20211216_models.GetTransitRouterFlowTopNRequest,
2255
+ ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
2256
+ """
2257
+ @deprecated OpenAPI GetTransitRouterFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2258
+
2259
+ @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.
2260
+
2261
+ @param request: GetTransitRouterFlowTopNRequest
2262
+ @return: GetTransitRouterFlowTopNResponse
2263
+ Deprecated
2264
+ """
2265
+ runtime = util_models.RuntimeOptions()
2266
+ return self.get_transit_router_flow_top_nwith_options(request, runtime)
2267
+
2268
+ async def get_transit_router_flow_top_n_async(
2269
+ self,
2270
+ request: nis_20211216_models.GetTransitRouterFlowTopNRequest,
2271
+ ) -> nis_20211216_models.GetTransitRouterFlowTopNResponse:
2272
+ """
2273
+ @deprecated OpenAPI GetTransitRouterFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2274
+
2275
+ @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.
2276
+
2277
+ @param request: GetTransitRouterFlowTopNRequest
2278
+ @return: GetTransitRouterFlowTopNResponse
2279
+ Deprecated
2280
+ """
2281
+ runtime = util_models.RuntimeOptions()
2282
+ return await self.get_transit_router_flow_top_nwith_options_async(request, runtime)
2283
+
2284
+ def get_vbr_flow_top_nwith_options(
2285
+ self,
2286
+ tmp_req: nis_20211216_models.GetVbrFlowTopNRequest,
2287
+ runtime: util_models.RuntimeOptions,
2288
+ ) -> nis_20211216_models.GetVbrFlowTopNResponse:
2289
+ """
2290
+ @deprecated OpenAPI GetVbrFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2291
+
2292
+ @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.
2293
+
2294
+ @param tmp_req: GetVbrFlowTopNRequest
2295
+ @param runtime: runtime options for this request RuntimeOptions
2296
+ @return: GetVbrFlowTopNResponse
2297
+ Deprecated
2298
+ """
2299
+ UtilClient.validate_model(tmp_req)
2300
+ request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
2301
+ OpenApiUtilClient.convert(tmp_req, request)
2302
+ if not UtilClient.is_unset(tmp_req.account_ids):
2303
+ request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
2304
+ query = {}
2305
+ if not UtilClient.is_unset(request.account_ids_shrink):
2306
+ query['AccountIds'] = request.account_ids_shrink
2307
+ if not UtilClient.is_unset(request.attachment_id):
2308
+ query['AttachmentId'] = request.attachment_id
2309
+ if not UtilClient.is_unset(request.begin_time):
2310
+ query['BeginTime'] = request.begin_time
2311
+ if not UtilClient.is_unset(request.cen_id):
2312
+ query['CenId'] = request.cen_id
2313
+ if not UtilClient.is_unset(request.cloud_ip):
2314
+ query['CloudIp'] = request.cloud_ip
2315
+ if not UtilClient.is_unset(request.cloud_port):
2316
+ query['CloudPort'] = request.cloud_port
2317
+ if not UtilClient.is_unset(request.direction):
2318
+ query['Direction'] = request.direction
2319
+ if not UtilClient.is_unset(request.end_time):
2320
+ query['EndTime'] = request.end_time
2321
+ if not UtilClient.is_unset(request.group_by):
2322
+ query['GroupBy'] = request.group_by
2323
+ if not UtilClient.is_unset(request.order_by):
2324
+ query['OrderBy'] = request.order_by
2325
+ if not UtilClient.is_unset(request.other_ip):
2326
+ query['OtherIp'] = request.other_ip
2327
+ if not UtilClient.is_unset(request.other_port):
2328
+ query['OtherPort'] = request.other_port
2329
+ if not UtilClient.is_unset(request.protocol):
2330
+ query['Protocol'] = request.protocol
2331
+ if not UtilClient.is_unset(request.region_id):
2332
+ query['RegionId'] = request.region_id
2333
+ if not UtilClient.is_unset(request.sort):
2334
+ query['Sort'] = request.sort
2335
+ if not UtilClient.is_unset(request.top_n):
2336
+ query['TopN'] = request.top_n
2337
+ if not UtilClient.is_unset(request.use_multi_account):
2338
+ query['UseMultiAccount'] = request.use_multi_account
2339
+ if not UtilClient.is_unset(request.virtual_border_router_id):
2340
+ query['VirtualBorderRouterId'] = request.virtual_border_router_id
2341
+ req = open_api_models.OpenApiRequest(
2342
+ query=OpenApiUtilClient.query(query)
2343
+ )
2344
+ params = open_api_models.Params(
2345
+ action='GetVbrFlowTopN',
2346
+ version='2021-12-16',
2347
+ protocol='HTTPS',
2348
+ pathname='/',
2349
+ method='POST',
2350
+ auth_type='AK',
2351
+ style='RPC',
2352
+ req_body_type='formData',
2353
+ body_type='json'
2354
+ )
2355
+ return TeaCore.from_map(
2356
+ nis_20211216_models.GetVbrFlowTopNResponse(),
2357
+ self.call_api(params, req, runtime)
2358
+ )
2359
+
2360
+ async def get_vbr_flow_top_nwith_options_async(
2361
+ self,
2362
+ tmp_req: nis_20211216_models.GetVbrFlowTopNRequest,
2363
+ runtime: util_models.RuntimeOptions,
2364
+ ) -> nis_20211216_models.GetVbrFlowTopNResponse:
2365
+ """
2366
+ @deprecated OpenAPI GetVbrFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2367
+
2368
+ @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.
2369
+
2370
+ @param tmp_req: GetVbrFlowTopNRequest
2371
+ @param runtime: runtime options for this request RuntimeOptions
2372
+ @return: GetVbrFlowTopNResponse
2373
+ Deprecated
2374
+ """
2375
+ UtilClient.validate_model(tmp_req)
2376
+ request = nis_20211216_models.GetVbrFlowTopNShrinkRequest()
2377
+ OpenApiUtilClient.convert(tmp_req, request)
2378
+ if not UtilClient.is_unset(tmp_req.account_ids):
2379
+ request.account_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.account_ids, 'AccountIds', 'json')
2380
+ query = {}
2381
+ if not UtilClient.is_unset(request.account_ids_shrink):
2382
+ query['AccountIds'] = request.account_ids_shrink
2383
+ if not UtilClient.is_unset(request.attachment_id):
2384
+ query['AttachmentId'] = request.attachment_id
2385
+ if not UtilClient.is_unset(request.begin_time):
2386
+ query['BeginTime'] = request.begin_time
2387
+ if not UtilClient.is_unset(request.cen_id):
2388
+ query['CenId'] = request.cen_id
2389
+ if not UtilClient.is_unset(request.cloud_ip):
2390
+ query['CloudIp'] = request.cloud_ip
2391
+ if not UtilClient.is_unset(request.cloud_port):
2392
+ query['CloudPort'] = request.cloud_port
2393
+ if not UtilClient.is_unset(request.direction):
2394
+ query['Direction'] = request.direction
2395
+ if not UtilClient.is_unset(request.end_time):
2396
+ query['EndTime'] = request.end_time
2397
+ if not UtilClient.is_unset(request.group_by):
2398
+ query['GroupBy'] = request.group_by
2399
+ if not UtilClient.is_unset(request.order_by):
2400
+ query['OrderBy'] = request.order_by
2401
+ if not UtilClient.is_unset(request.other_ip):
2402
+ query['OtherIp'] = request.other_ip
2403
+ if not UtilClient.is_unset(request.other_port):
2404
+ query['OtherPort'] = request.other_port
2405
+ if not UtilClient.is_unset(request.protocol):
2406
+ query['Protocol'] = request.protocol
2407
+ if not UtilClient.is_unset(request.region_id):
2408
+ query['RegionId'] = request.region_id
2409
+ if not UtilClient.is_unset(request.sort):
2410
+ query['Sort'] = request.sort
2411
+ if not UtilClient.is_unset(request.top_n):
2412
+ query['TopN'] = request.top_n
2413
+ if not UtilClient.is_unset(request.use_multi_account):
2414
+ query['UseMultiAccount'] = request.use_multi_account
2415
+ if not UtilClient.is_unset(request.virtual_border_router_id):
2416
+ query['VirtualBorderRouterId'] = request.virtual_border_router_id
2417
+ req = open_api_models.OpenApiRequest(
2418
+ query=OpenApiUtilClient.query(query)
2419
+ )
2420
+ params = open_api_models.Params(
2421
+ action='GetVbrFlowTopN',
2422
+ version='2021-12-16',
2423
+ protocol='HTTPS',
2424
+ pathname='/',
2425
+ method='POST',
2426
+ auth_type='AK',
2427
+ style='RPC',
2428
+ req_body_type='formData',
2429
+ body_type='json'
2430
+ )
2431
+ return TeaCore.from_map(
2432
+ nis_20211216_models.GetVbrFlowTopNResponse(),
2433
+ await self.call_api_async(params, req, runtime)
2434
+ )
2435
+
2436
+ def get_vbr_flow_top_n(
2437
+ self,
2438
+ request: nis_20211216_models.GetVbrFlowTopNRequest,
2439
+ ) -> nis_20211216_models.GetVbrFlowTopNResponse:
2440
+ """
2441
+ @deprecated OpenAPI GetVbrFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2442
+
2443
+ @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.
2444
+
2445
+ @param request: GetVbrFlowTopNRequest
2446
+ @return: GetVbrFlowTopNResponse
2447
+ Deprecated
2448
+ """
2449
+ runtime = util_models.RuntimeOptions()
2450
+ return self.get_vbr_flow_top_nwith_options(request, runtime)
2451
+
2452
+ async def get_vbr_flow_top_n_async(
2453
+ self,
2454
+ request: nis_20211216_models.GetVbrFlowTopNRequest,
2455
+ ) -> nis_20211216_models.GetVbrFlowTopNResponse:
2456
+ """
2457
+ @deprecated OpenAPI GetVbrFlowTopN is deprecated, please use nis::2021-12-16::GetNisNetworkRanking instead.
2458
+
2459
+ @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.
2460
+
2461
+ @param request: GetVbrFlowTopNRequest
2462
+ @return: GetVbrFlowTopNResponse
2463
+ Deprecated
2464
+ """
2465
+ runtime = util_models.RuntimeOptions()
2466
+ return await self.get_vbr_flow_top_nwith_options_async(request, runtime)
2467
+
2468
+ def list_nis_inspection_resource_type_with_options(
2469
+ self,
2470
+ runtime: util_models.RuntimeOptions,
2471
+ ) -> nis_20211216_models.ListNisInspectionResourceTypeResponse:
2472
+ """
2473
+ @summary 巡检资源类型列表
2474
+
2475
+ @param request: ListNisInspectionResourceTypeRequest
2476
+ @param runtime: runtime options for this request RuntimeOptions
2477
+ @return: ListNisInspectionResourceTypeResponse
2478
+ """
2479
+ req = open_api_models.OpenApiRequest()
2480
+ params = open_api_models.Params(
2481
+ action='ListNisInspectionResourceType',
2482
+ version='2021-12-16',
2483
+ protocol='HTTPS',
2484
+ pathname='/',
2485
+ method='POST',
2486
+ auth_type='AK',
2487
+ style='RPC',
2488
+ req_body_type='formData',
2489
+ body_type='json'
2490
+ )
2491
+ return TeaCore.from_map(
2492
+ nis_20211216_models.ListNisInspectionResourceTypeResponse(),
2493
+ self.call_api(params, req, runtime)
2494
+ )
2495
+
2496
+ async def list_nis_inspection_resource_type_with_options_async(
2497
+ self,
2498
+ runtime: util_models.RuntimeOptions,
2499
+ ) -> nis_20211216_models.ListNisInspectionResourceTypeResponse:
2500
+ """
2501
+ @summary 巡检资源类型列表
2502
+
2503
+ @param request: ListNisInspectionResourceTypeRequest
2504
+ @param runtime: runtime options for this request RuntimeOptions
2505
+ @return: ListNisInspectionResourceTypeResponse
2506
+ """
2507
+ req = open_api_models.OpenApiRequest()
2508
+ params = open_api_models.Params(
2509
+ action='ListNisInspectionResourceType',
2510
+ version='2021-12-16',
2511
+ protocol='HTTPS',
2512
+ pathname='/',
2513
+ method='POST',
2514
+ auth_type='AK',
2515
+ style='RPC',
2516
+ req_body_type='formData',
2517
+ body_type='json'
2518
+ )
2519
+ return TeaCore.from_map(
2520
+ nis_20211216_models.ListNisInspectionResourceTypeResponse(),
2521
+ await self.call_api_async(params, req, runtime)
2522
+ )
2523
+
2524
+ def list_nis_inspection_resource_type(self) -> nis_20211216_models.ListNisInspectionResourceTypeResponse:
2525
+ """
2526
+ @summary 巡检资源类型列表
2527
+
2528
+ @return: ListNisInspectionResourceTypeResponse
2529
+ """
2530
+ runtime = util_models.RuntimeOptions()
2531
+ return self.list_nis_inspection_resource_type_with_options(runtime)
2532
+
2533
+ async def list_nis_inspection_resource_type_async(self) -> nis_20211216_models.ListNisInspectionResourceTypeResponse:
2534
+ """
2535
+ @summary 巡检资源类型列表
2536
+
2537
+ @return: ListNisInspectionResourceTypeResponse
2538
+ """
2539
+ runtime = util_models.RuntimeOptions()
2540
+ return await self.list_nis_inspection_resource_type_with_options_async(runtime)
2541
+
2542
+ def list_nis_inspection_task_reports_with_options(
2543
+ self,
2544
+ request: nis_20211216_models.ListNisInspectionTaskReportsRequest,
2545
+ runtime: util_models.RuntimeOptions,
2546
+ ) -> nis_20211216_models.ListNisInspectionTaskReportsResponse:
2547
+ """
2548
+ @summary 查询巡检报告列表
2549
+
2550
+ @param request: ListNisInspectionTaskReportsRequest
2551
+ @param runtime: runtime options for this request RuntimeOptions
2552
+ @return: ListNisInspectionTaskReportsResponse
2553
+ """
2554
+ UtilClient.validate_model(request)
2555
+ query = {}
2556
+ if not UtilClient.is_unset(request.inspection_task_id):
2557
+ query['InspectionTaskId'] = request.inspection_task_id
2558
+ if not UtilClient.is_unset(request.max_results):
2559
+ query['MaxResults'] = request.max_results
2560
+ if not UtilClient.is_unset(request.next_token):
2561
+ query['NextToken'] = request.next_token
2562
+ req = open_api_models.OpenApiRequest(
2563
+ query=OpenApiUtilClient.query(query)
2564
+ )
2565
+ params = open_api_models.Params(
2566
+ action='ListNisInspectionTaskReports',
2567
+ version='2021-12-16',
2568
+ protocol='HTTPS',
2569
+ pathname='/',
2570
+ method='POST',
2571
+ auth_type='AK',
2572
+ style='RPC',
2573
+ req_body_type='formData',
2574
+ body_type='json'
2575
+ )
2576
+ return TeaCore.from_map(
2577
+ nis_20211216_models.ListNisInspectionTaskReportsResponse(),
2578
+ self.call_api(params, req, runtime)
2579
+ )
2580
+
2581
+ async def list_nis_inspection_task_reports_with_options_async(
2582
+ self,
2583
+ request: nis_20211216_models.ListNisInspectionTaskReportsRequest,
2584
+ runtime: util_models.RuntimeOptions,
2585
+ ) -> nis_20211216_models.ListNisInspectionTaskReportsResponse:
2586
+ """
2587
+ @summary 查询巡检报告列表
2588
+
2589
+ @param request: ListNisInspectionTaskReportsRequest
2590
+ @param runtime: runtime options for this request RuntimeOptions
2591
+ @return: ListNisInspectionTaskReportsResponse
2592
+ """
2593
+ UtilClient.validate_model(request)
2594
+ query = {}
2595
+ if not UtilClient.is_unset(request.inspection_task_id):
2596
+ query['InspectionTaskId'] = request.inspection_task_id
2597
+ if not UtilClient.is_unset(request.max_results):
2598
+ query['MaxResults'] = request.max_results
2599
+ if not UtilClient.is_unset(request.next_token):
2600
+ query['NextToken'] = request.next_token
2601
+ req = open_api_models.OpenApiRequest(
2602
+ query=OpenApiUtilClient.query(query)
2603
+ )
2604
+ params = open_api_models.Params(
2605
+ action='ListNisInspectionTaskReports',
2606
+ version='2021-12-16',
2607
+ protocol='HTTPS',
2608
+ pathname='/',
2609
+ method='POST',
2610
+ auth_type='AK',
2611
+ style='RPC',
2612
+ req_body_type='formData',
2613
+ body_type='json'
2614
+ )
2615
+ return TeaCore.from_map(
2616
+ nis_20211216_models.ListNisInspectionTaskReportsResponse(),
2617
+ await self.call_api_async(params, req, runtime)
2618
+ )
2619
+
2620
+ def list_nis_inspection_task_reports(
2621
+ self,
2622
+ request: nis_20211216_models.ListNisInspectionTaskReportsRequest,
2623
+ ) -> nis_20211216_models.ListNisInspectionTaskReportsResponse:
2624
+ """
2625
+ @summary 查询巡检报告列表
2626
+
2627
+ @param request: ListNisInspectionTaskReportsRequest
2628
+ @return: ListNisInspectionTaskReportsResponse
2629
+ """
2630
+ runtime = util_models.RuntimeOptions()
2631
+ return self.list_nis_inspection_task_reports_with_options(request, runtime)
2632
+
2633
+ async def list_nis_inspection_task_reports_async(
2634
+ self,
2635
+ request: nis_20211216_models.ListNisInspectionTaskReportsRequest,
2636
+ ) -> nis_20211216_models.ListNisInspectionTaskReportsResponse:
2637
+ """
2638
+ @summary 查询巡检报告列表
2639
+
2640
+ @param request: ListNisInspectionTaskReportsRequest
2641
+ @return: ListNisInspectionTaskReportsResponse
2642
+ """
2643
+ runtime = util_models.RuntimeOptions()
2644
+ return await self.list_nis_inspection_task_reports_with_options_async(request, runtime)
2645
+
2646
+ def list_nis_inspection_tasks_with_options(
2647
+ self,
2648
+ request: nis_20211216_models.ListNisInspectionTasksRequest,
2649
+ runtime: util_models.RuntimeOptions,
2650
+ ) -> nis_20211216_models.ListNisInspectionTasksResponse:
2651
+ """
2652
+ @summary 巡检任务列表
2653
+
2654
+ @param request: ListNisInspectionTasksRequest
2655
+ @param runtime: runtime options for this request RuntimeOptions
2656
+ @return: ListNisInspectionTasksResponse
2657
+ """
2658
+ UtilClient.validate_model(request)
2659
+ query = {}
2660
+ if not UtilClient.is_unset(request.inspection_name):
2661
+ query['InspectionName'] = request.inspection_name
2662
+ if not UtilClient.is_unset(request.inspection_project):
2663
+ query['InspectionProject'] = request.inspection_project
2664
+ if not UtilClient.is_unset(request.inspection_task_id):
2665
+ query['InspectionTaskId'] = request.inspection_task_id
2666
+ if not UtilClient.is_unset(request.max_results):
2667
+ query['MaxResults'] = request.max_results
2668
+ if not UtilClient.is_unset(request.next_token):
2669
+ query['NextToken'] = request.next_token
2670
+ if not UtilClient.is_unset(request.status):
2671
+ query['Status'] = request.status
2672
+ req = open_api_models.OpenApiRequest(
2673
+ query=OpenApiUtilClient.query(query)
2674
+ )
2675
+ params = open_api_models.Params(
2676
+ action='ListNisInspectionTasks',
2677
+ version='2021-12-16',
2678
+ protocol='HTTPS',
2679
+ pathname='/',
2680
+ method='POST',
2681
+ auth_type='AK',
2682
+ style='RPC',
2683
+ req_body_type='formData',
2684
+ body_type='json'
2685
+ )
2686
+ return TeaCore.from_map(
2687
+ nis_20211216_models.ListNisInspectionTasksResponse(),
2688
+ self.call_api(params, req, runtime)
2689
+ )
2690
+
2691
+ async def list_nis_inspection_tasks_with_options_async(
2692
+ self,
2693
+ request: nis_20211216_models.ListNisInspectionTasksRequest,
2694
+ runtime: util_models.RuntimeOptions,
2695
+ ) -> nis_20211216_models.ListNisInspectionTasksResponse:
2696
+ """
2697
+ @summary 巡检任务列表
2698
+
2699
+ @param request: ListNisInspectionTasksRequest
2700
+ @param runtime: runtime options for this request RuntimeOptions
2701
+ @return: ListNisInspectionTasksResponse
2702
+ """
2703
+ UtilClient.validate_model(request)
2704
+ query = {}
2705
+ if not UtilClient.is_unset(request.inspection_name):
2706
+ query['InspectionName'] = request.inspection_name
2707
+ if not UtilClient.is_unset(request.inspection_project):
2708
+ query['InspectionProject'] = request.inspection_project
2709
+ if not UtilClient.is_unset(request.inspection_task_id):
2710
+ query['InspectionTaskId'] = request.inspection_task_id
2711
+ if not UtilClient.is_unset(request.max_results):
2712
+ query['MaxResults'] = request.max_results
2713
+ if not UtilClient.is_unset(request.next_token):
2714
+ query['NextToken'] = request.next_token
2715
+ if not UtilClient.is_unset(request.status):
2716
+ query['Status'] = request.status
2717
+ req = open_api_models.OpenApiRequest(
2718
+ query=OpenApiUtilClient.query(query)
2719
+ )
2720
+ params = open_api_models.Params(
2721
+ action='ListNisInspectionTasks',
2722
+ version='2021-12-16',
2723
+ protocol='HTTPS',
2724
+ pathname='/',
2725
+ method='POST',
2726
+ auth_type='AK',
2727
+ style='RPC',
2728
+ req_body_type='formData',
2729
+ body_type='json'
2730
+ )
2731
+ return TeaCore.from_map(
2732
+ nis_20211216_models.ListNisInspectionTasksResponse(),
2733
+ await self.call_api_async(params, req, runtime)
2734
+ )
2735
+
2736
+ def list_nis_inspection_tasks(
2737
+ self,
2738
+ request: nis_20211216_models.ListNisInspectionTasksRequest,
2739
+ ) -> nis_20211216_models.ListNisInspectionTasksResponse:
2740
+ """
2741
+ @summary 巡检任务列表
2742
+
2743
+ @param request: ListNisInspectionTasksRequest
2744
+ @return: ListNisInspectionTasksResponse
2745
+ """
2746
+ runtime = util_models.RuntimeOptions()
2747
+ return self.list_nis_inspection_tasks_with_options(request, runtime)
2748
+
2749
+ async def list_nis_inspection_tasks_async(
2750
+ self,
2751
+ request: nis_20211216_models.ListNisInspectionTasksRequest,
2752
+ ) -> nis_20211216_models.ListNisInspectionTasksResponse:
2753
+ """
2754
+ @summary 巡检任务列表
2755
+
2756
+ @param request: ListNisInspectionTasksRequest
2757
+ @return: ListNisInspectionTasksResponse
2758
+ """
2759
+ runtime = util_models.RuntimeOptions()
2760
+ return await self.list_nis_inspection_tasks_with_options_async(request, runtime)
2761
+
2762
+ def start_nis_inspection_task_with_options(
2763
+ self,
2764
+ request: nis_20211216_models.StartNisInspectionTaskRequest,
2765
+ runtime: util_models.RuntimeOptions,
2766
+ ) -> nis_20211216_models.StartNisInspectionTaskResponse:
2767
+ """
2768
+ @summary 请补充描述开启任务
2769
+
2770
+ @param request: StartNisInspectionTaskRequest
2771
+ @param runtime: runtime options for this request RuntimeOptions
2772
+ @return: StartNisInspectionTaskResponse
2773
+ """
2774
+ UtilClient.validate_model(request)
2775
+ query = {}
2776
+ if not UtilClient.is_unset(request.inspection_task_id):
2777
+ query['InspectionTaskId'] = request.inspection_task_id
2778
+ req = open_api_models.OpenApiRequest(
2779
+ query=OpenApiUtilClient.query(query)
2780
+ )
2781
+ params = open_api_models.Params(
2782
+ action='StartNisInspectionTask',
2783
+ version='2021-12-16',
2784
+ protocol='HTTPS',
2785
+ pathname='/',
2786
+ method='POST',
2787
+ auth_type='AK',
2788
+ style='RPC',
2789
+ req_body_type='formData',
2790
+ body_type='json'
2791
+ )
2792
+ return TeaCore.from_map(
2793
+ nis_20211216_models.StartNisInspectionTaskResponse(),
2794
+ self.call_api(params, req, runtime)
2795
+ )
2796
+
2797
+ async def start_nis_inspection_task_with_options_async(
2798
+ self,
2799
+ request: nis_20211216_models.StartNisInspectionTaskRequest,
2800
+ runtime: util_models.RuntimeOptions,
2801
+ ) -> nis_20211216_models.StartNisInspectionTaskResponse:
2802
+ """
2803
+ @summary 请补充描述开启任务
2804
+
2805
+ @param request: StartNisInspectionTaskRequest
2806
+ @param runtime: runtime options for this request RuntimeOptions
2807
+ @return: StartNisInspectionTaskResponse
2808
+ """
2809
+ UtilClient.validate_model(request)
2810
+ query = {}
2811
+ if not UtilClient.is_unset(request.inspection_task_id):
2812
+ query['InspectionTaskId'] = request.inspection_task_id
2813
+ req = open_api_models.OpenApiRequest(
2814
+ query=OpenApiUtilClient.query(query)
2815
+ )
2816
+ params = open_api_models.Params(
2817
+ action='StartNisInspectionTask',
2818
+ version='2021-12-16',
2819
+ protocol='HTTPS',
2820
+ pathname='/',
2821
+ method='POST',
2822
+ auth_type='AK',
2823
+ style='RPC',
2824
+ req_body_type='formData',
2825
+ body_type='json'
2826
+ )
2827
+ return TeaCore.from_map(
2828
+ nis_20211216_models.StartNisInspectionTaskResponse(),
2829
+ await self.call_api_async(params, req, runtime)
2830
+ )
2831
+
2832
+ def start_nis_inspection_task(
2833
+ self,
2834
+ request: nis_20211216_models.StartNisInspectionTaskRequest,
2835
+ ) -> nis_20211216_models.StartNisInspectionTaskResponse:
2836
+ """
2837
+ @summary 请补充描述开启任务
2838
+
2839
+ @param request: StartNisInspectionTaskRequest
2840
+ @return: StartNisInspectionTaskResponse
2841
+ """
2842
+ runtime = util_models.RuntimeOptions()
2843
+ return self.start_nis_inspection_task_with_options(request, runtime)
2844
+
2845
+ async def start_nis_inspection_task_async(
2846
+ self,
2847
+ request: nis_20211216_models.StartNisInspectionTaskRequest,
2848
+ ) -> nis_20211216_models.StartNisInspectionTaskResponse:
2849
+ """
2850
+ @summary 请补充描述开启任务
2851
+
2852
+ @param request: StartNisInspectionTaskRequest
2853
+ @return: StartNisInspectionTaskResponse
2854
+ """
2855
+ runtime = util_models.RuntimeOptions()
2856
+ return await self.start_nis_inspection_task_with_options_async(request, runtime)
2857
+
2858
+ def update_nis_inspection_task_with_options(
2859
+ self,
2860
+ request: nis_20211216_models.UpdateNisInspectionTaskRequest,
2861
+ runtime: util_models.RuntimeOptions,
2862
+ ) -> nis_20211216_models.UpdateNisInspectionTaskResponse:
2863
+ """
2864
+ @summary 修改巡检项
2865
+
2866
+ @param request: UpdateNisInspectionTaskRequest
2867
+ @param runtime: runtime options for this request RuntimeOptions
2868
+ @return: UpdateNisInspectionTaskResponse
2869
+ """
2870
+ UtilClient.validate_model(request)
2871
+ query = {}
2872
+ if not UtilClient.is_unset(request.inspection_task_id):
2873
+ query['InspectionTaskId'] = request.inspection_task_id
2874
+ if not UtilClient.is_unset(request.status):
2875
+ query['Status'] = request.status
2876
+ req = open_api_models.OpenApiRequest(
2877
+ query=OpenApiUtilClient.query(query)
2878
+ )
2879
+ params = open_api_models.Params(
2880
+ action='UpdateNisInspectionTask',
2881
+ version='2021-12-16',
2882
+ protocol='HTTPS',
2883
+ pathname='/',
2884
+ method='POST',
2885
+ auth_type='AK',
2886
+ style='RPC',
2887
+ req_body_type='formData',
2888
+ body_type='json'
2889
+ )
2890
+ return TeaCore.from_map(
2891
+ nis_20211216_models.UpdateNisInspectionTaskResponse(),
2892
+ self.call_api(params, req, runtime)
2893
+ )
2894
+
2895
+ async def update_nis_inspection_task_with_options_async(
2896
+ self,
2897
+ request: nis_20211216_models.UpdateNisInspectionTaskRequest,
2898
+ runtime: util_models.RuntimeOptions,
2899
+ ) -> nis_20211216_models.UpdateNisInspectionTaskResponse:
2900
+ """
2901
+ @summary 修改巡检项
2902
+
2903
+ @param request: UpdateNisInspectionTaskRequest
2904
+ @param runtime: runtime options for this request RuntimeOptions
2905
+ @return: UpdateNisInspectionTaskResponse
2906
+ """
2907
+ UtilClient.validate_model(request)
2908
+ query = {}
2909
+ if not UtilClient.is_unset(request.inspection_task_id):
2910
+ query['InspectionTaskId'] = request.inspection_task_id
2911
+ if not UtilClient.is_unset(request.status):
2912
+ query['Status'] = request.status
2913
+ req = open_api_models.OpenApiRequest(
2914
+ query=OpenApiUtilClient.query(query)
2915
+ )
2916
+ params = open_api_models.Params(
2917
+ action='UpdateNisInspectionTask',
2918
+ version='2021-12-16',
2919
+ protocol='HTTPS',
2920
+ pathname='/',
2921
+ method='POST',
2922
+ auth_type='AK',
2923
+ style='RPC',
2924
+ req_body_type='formData',
2925
+ body_type='json'
2926
+ )
2927
+ return TeaCore.from_map(
2928
+ nis_20211216_models.UpdateNisInspectionTaskResponse(),
2929
+ await self.call_api_async(params, req, runtime)
2930
+ )
2931
+
2932
+ def update_nis_inspection_task(
2933
+ self,
2934
+ request: nis_20211216_models.UpdateNisInspectionTaskRequest,
2935
+ ) -> nis_20211216_models.UpdateNisInspectionTaskResponse:
2936
+ """
2937
+ @summary 修改巡检项
2938
+
2939
+ @param request: UpdateNisInspectionTaskRequest
2940
+ @return: UpdateNisInspectionTaskResponse
2941
+ """
2942
+ runtime = util_models.RuntimeOptions()
2943
+ return self.update_nis_inspection_task_with_options(request, runtime)
2944
+
2945
+ async def update_nis_inspection_task_async(
2946
+ self,
2947
+ request: nis_20211216_models.UpdateNisInspectionTaskRequest,
2948
+ ) -> nis_20211216_models.UpdateNisInspectionTaskResponse:
2949
+ """
2950
+ @summary 修改巡检项
2951
+
2952
+ @param request: UpdateNisInspectionTaskRequest
2953
+ @return: UpdateNisInspectionTaskResponse
2954
+ """
2955
+ runtime = util_models.RuntimeOptions()
2956
+ return await self.update_nis_inspection_task_with_options_async(request, runtime)