@@ -342,7 +342,6 @@ def show_nat_rulebase(
342342 limit : int = 50 ,
343343 offset : int = 0 ,
344344 order : List [dict ] = None ,
345- show_as_ranges : bool = False ,
346345 show_hits : bool = None ,
347346 use_object_dictionnary : bool = None ,
348347 hits_settings : dict = None ,
@@ -369,13 +368,6 @@ def show_nat_rulebase(
369368 offset (int, optional): Number of the results to initially skip. Defaults to 0
370369 order (List[dict], optional): Sorts results by the given field. By default the results are sorted in the \
371370 descending order by the session publish time.
372- show_as_ranges (bool, optional): When true, the source, destination and services & applications parameters are\
373- displayed as ranges of IP addresses and port numbers rather than network objects. Objects that are not represented\
374- using IP addresses or port numbers are presented as objects. In addition, the response of each rule does not\
375- contain the parameters: source, source-negate, destination, destination-negate, service and service-negate,\
376- but instead it contains the parameters: source-ranges, destination-ranges and service-ranges.\
377- Note: Requesting to show rules as ranges is limited up to 20 rules per request, otherwise an error is returned.\
378- If you wish to request more rules, use the offset and limit parameters to limit your request.
379371 show_hits (bool, optional): N/A
380372 use_object_dictionnary (bool, optional): N/A
381373 hits_settings (dict, optional): N/A
@@ -404,7 +396,6 @@ def show_nat_rulebase(
404396 filter_settings = filter_settings ,
405397 limit = limit ,
406398 order = order ,
407- show_as_ranges = show_as_ranges ,
408399 show_hits = show_hits ,
409400 use_object_dictionnary = use_object_dictionnary ,
410401 hits_settings = hits_settings ,
@@ -418,7 +409,6 @@ def show_nat_rulebase(
418409 limit = limit ,
419410 offset = offset ,
420411 order = order ,
421- show_as_ranges = show_as_ranges ,
422412 show_hits = show_hits ,
423413 use_object_dictionnary = use_object_dictionnary ,
424414 hits_settings = hits_settings ,
@@ -433,7 +423,6 @@ def _show_partial_nat_rulebase(
433423 limit : int = 50 ,
434424 offset : int = 0 ,
435425 order : List [dict ] = None ,
436- show_as_ranges : bool = False ,
437426 show_hits : bool = None ,
438427 use_object_dictionnary : bool = None ,
439428 hits_settings : dict = None ,
@@ -452,13 +441,6 @@ def _show_partial_nat_rulebase(
452441 offset (int, optional): Number of the results to initially skip. Defaults to 0
453442 order (List[dict], optional): Sorts results by the given field. By default the results are sorted in the \
454443 descending order by the session publish time.
455- show_as_ranges (bool, optional): When true, the source, destination and services & applications parameters are\
456- displayed as ranges of IP addresses and port numbers rather than network objects. Objects that are not represented\
457- using IP addresses or port numbers are presented as objects. In addition, the response of each rule does not\
458- contain the parameters: source, source-negate, destination, destination-negate, service and service-negate,\
459- but instead it contains the parameters: source-ranges, destination-ranges and service-ranges.\
460- Note: Requesting to show rules as ranges is limited up to 20 rules per request, otherwise an error is returned.\
461- If you wish to request more rules, use the offset and limit parameters to limit your request.
462444 show_hits (bool, optional): N/A
463445 use_object_dictionnary (bool, optional): N/A
464446 hits_settings (dict, optional): N/A
@@ -493,8 +475,6 @@ def _show_partial_nat_rulebase(
493475 payload ["order" ] = order
494476 if package is not None :
495477 payload ["package" ] = package
496- if show_as_ranges is not None :
497- payload ["show-as-ranges" ] = show_as_ranges
498478 if show_hits is not None :
499479 payload ["show-hits" ] = show_hits
500480 if use_object_dictionnary is not None :
@@ -520,7 +500,6 @@ def _show_all_nat_rulebase(
520500 filter_settings : dict = None ,
521501 limit : int = 50 ,
522502 order : List [dict ] = None ,
523- show_as_ranges : bool = False ,
524503 show_hits : bool = None ,
525504 use_object_dictionnary : bool = None ,
526505 hits_settings : dict = None ,
@@ -540,13 +519,6 @@ def _show_all_nat_rulebase(
540519 offset (int, optional): Number of the results to initially skip. Defaults to 0
541520 order (List[dict], optional): Sorts results by the given field. By default the results are sorted in the \
542521 descending order by the session publish time.
543- show_as_ranges (bool, optional): When true, the source, destination and services & applications parameters are\
544- displayed as ranges of IP addresses and port numbers rather than network objects. Objects that are not represented\
545- using IP addresses or port numbers are presented as objects. In addition, the response of each rule does not\
546- contain the parameters: source, source-negate, destination, destination-negate, service and service-negate,\
547- but instead it contains the parameters: source-ranges, destination-ranges and service-ranges.\
548- Note: Requesting to show rules as ranges is limited up to 20 rules per request, otherwise an error is returned.\
549- If you wish to request more rules, use the offset and limit parameters to limit your request.
550522 show_hits (bool, optional): N/A
551523 use_object_dictionnary (bool, optional): N/A
552524 hits_settings (dict, optional): N/A
@@ -579,7 +551,6 @@ def _show_all_nat_rulebase(
579551 limit = limit ,
580552 offset = 0 ,
581553 order = order ,
582- show_as_ranges = show_as_ranges ,
583554 show_hits = show_hits ,
584555 use_object_dictionnary = use_object_dictionnary ,
585556 hits_settings = hits_settings ,
@@ -593,7 +564,7 @@ def _show_all_nat_rulebase(
593564 number_requests = int (resp .total / limit ) + 1
594565
595566 logger .info (
596- "access -rules - Total: "
567+ "nat -rules - Total: "
597568 + str (resp .total )
598569 + " - Number of requests to do: "
599570 + str (number_requests )
@@ -602,7 +573,7 @@ def _show_all_nat_rulebase(
602573 + "/request) - In progress..."
603574 )
604575 logger .debug (
605- "access -rules - 1/"
576+ "nat -rules - 1/"
606577 + str (number_requests )
607578 + " (limit set to "
608579 + str (limit )
@@ -617,15 +588,14 @@ def _show_all_nat_rulebase(
617588 limit = limit ,
618589 offset = i * limit ,
619590 order = order ,
620- show_as_ranges = show_as_ranges ,
621591 show_hits = show_hits ,
622592 use_object_dictionnary = use_object_dictionnary ,
623593 hits_settings = hits_settings ,
624594 ** kw ,
625595 )
626596
627597 logger .debug (
628- "access -rules - "
598+ "nat -rules - "
629599 + str (i + 1 )
630600 + "/"
631601 + str (number_requests )
@@ -654,7 +624,7 @@ def _show_all_nat_rulebase(
654624 timer_text = "<1s"
655625
656626 logger .info (
657- "access -rules - Total: "
627+ "nat -rules - Total: "
658628 + str (resp .total )
659629 + " - Number of requests done: "
660630 + str (number_requests )
0 commit comments