def main():
    endpoint = 'reverse_proxy/location'
    key_to_check_for_changes = ['access_control', 'allowed_networks', 'auth_profile', 'backend', 'be_path', 'comment', 'denied_networks', 'hot_standby', 'path', 'status', 'stickysession_id', 'stickysession_status', 'websocket_passthrough']
    module = UTMModule(argument_spec=dict(name=dict(type='str', required=True), access_control=dict(type='str', required=False, default='0', choices=['0', '1']), allowed_networks=dict(type='list', elements='str', required=False, default=['REF_NetworkAny']), auth_profile=dict(type='str', required=False, default=''), backend=dict(type='list', elements='str', required=False, default=[]), be_path=dict(type='str', required=False, default=''), comment=dict(type='str', required=False, default=''), denied_networks=dict(type='list', elements='str', required=False, default=[]), hot_standby=dict(type='bool', required=False, default=False), path=dict(type='str', required=False, default='/'), status=dict(type='bool', required=False, default=True), stickysession_id=dict(type='str', required=False, default='ROUTEID'), stickysession_status=dict(type='bool', required=False, default=False), websocket_passthrough=dict(type='bool', required=False, default=False)))
    try:
        UTM(module, endpoint, key_to_check_for_changes).execute()
    except Exception as e:
        module.fail_json(msg=to_native(e))
def main():
    endpoint = 'reverse_proxy/location'
    key_to_check_for_changes = ['access_control', 'allowed_networks', 'auth_profile', 'backend', 'be_path', 'comment', 'denied_networks', 'hot_standby', 'path', 'status', 'stickysession_id', 'stickysession_status', 'websocket_passthrough']
    module = UTMModule(argument_spec=dict(name=dict(type='str', required=True), access_control=dict(type='str', required=False, default='0', choices=['0', '1']), allowed_networks=dict(type='list', elements='str', required=False, default=['REF_NetworkAny']), auth_profile=dict(type='str', required=False, default=), backend=dict(type='list', elements='str', required=False, default=[]), be_path=dict(type='str', required=False, default=), comment=dict(type='str', required=False, default=), denied_networks=dict(type='list', elements='str', required=False, default=[]), hot_standby=dict(type='bool', required=False, default=False), path=dict(type='str', required=False, default='/'), status=dict(type='bool', required=False, default=True), stickysession_id=dict(type='str', required=False, default='ROUTEID'), stickysession_status=dict(type='bool', required=False, default=False), websocket_passthrough=dict(type='bool', required=False, default=False)))
    try:
        UTM(module, endpoint, key_to_check_for_changes).execute()
    except Exception as e:
        module.fail_json(msg=to_native(e))