Skip to content

Commit

Permalink
fix application_segment_inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Dec 23, 2023
1 parent 635c601 commit 6fa8c59
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 73 deletions.
36 changes: 0 additions & 36 deletions convert_to_utf8.py

This file was deleted.

22 changes: 16 additions & 6 deletions plugins/modules/zpa_application_segment_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
- By default, this field is set to false.
type: bool
required: false
bypass_on_reauth:
description:
- Indicates if Bypass During Reauthentication is enabled for the application
type: bool
required: false
bypass_type:
description:
- Indicates whether users can bypass ZPA to access applications.
Expand Down Expand Up @@ -345,6 +350,7 @@ def core(module):
"udp_protocols",
"enabled",
"bypass_type",
"bypass_on_reauth",
"health_reporting",
"double_encrypt",
"tcp_keep_alive",
Expand Down Expand Up @@ -480,6 +486,7 @@ def core(module):
"inspect_traffic_with_zia", None
),
adp_enabled=existing_app.get("adp_enabled", None),
bypass_on_reauth=existing_app.get("bypass_on_reauth", None),
name=existing_app.get("name", None),
common_apps_dto=existing_app.get(
"common_apps_dto", None
Expand Down Expand Up @@ -514,6 +521,7 @@ def core(module):
description=app.get("description", None),
enabled=app.get("enabled", None),
bypass_type=app.get("bypass_type", None),
bypass_on_reauth=app.get("bypass_on_reauth", None),
domain_names=app.get("domain_names", None),
double_encrypt=app.get("double_encrypt", None),
health_check_type=app.get("health_check_type", None),
Expand All @@ -535,8 +543,8 @@ def core(module):
server_group_ids=app.get("server_group_ids", None),
tcp_port_ranges=convert_ports_list(app.get("tcp_port_range", None)),
udp_port_ranges=convert_ports_list(app.get("udp_port_range", None)),
tcp_protocols=existing_app.get("tcp_protocols", None),
udp_protocols=existing_app.get("udp_protocols", None),
tcp_protocols=app.get("tcp_protocols", None),
udp_protocols=app.get("udp_protocols", None),
)
)
app = client.app_segments_inspection.add_segment_inspection(**app)
Expand Down Expand Up @@ -567,14 +575,15 @@ def main():
apps_config_spec = dict(
name=dict(type="str", required=True),
description=dict(type="str", required=False),
enabled=dict(type="bool", required=False, default=True),
app_types=dict(type="list", elements="str", choices=["INSPECT"], required=True),
enabled=dict(type="bool", required=False, default=False),
app_types=dict(type="list", elements="str", choices=["INSPECT"], required=False),
application_port=dict(type="str", required=False),
application_protocol=dict(type="str", choices=["HTTP", "HTTPS"], required=True),
application_protocol=dict(type="str", choices=["NONE", "HTTP", "HTTPS"], required=False),
certificate_id=dict(type="str", required=False),
trust_untrusted_cert=dict(type="bool", required=False),
allow_options=dict(type="bool", required=False),
domain=dict(type="str", required=True),
domain=dict(type="str", required=False),
protocols=dict(type="list", elements="str", choices=["SMB", "LDAP", "KERBEROS"], required=False),
)
argument_spec.update(
id=dict(type="str", required=False),
Expand All @@ -586,6 +595,7 @@ def main():
is_incomplete_dr_config=dict(type="bool", required=False),
inspect_traffic_with_zia=dict(type="bool", required=False),
adp_enabled=dict(type="bool", required=False),
bypass_on_reauth=dict(type="bool", required=False),
bypass_type=dict(
type="str",
required=False,
Expand Down
31 changes: 0 additions & 31 deletions sanity.py

This file was deleted.

0 comments on commit 6fa8c59

Please sign in to comment.