def METHOD_NAME(module):
    url = module.params.get('api_url')
    username = module.params.get('api_username')
    password = module.params.get('api_password')
    if not url:
        url = os.environ.get('ONE_URL')
    if not username:
        username = os.environ.get('ONE_USERNAME')
    if not password:
        password = os.environ.get('ONE_PASSWORD')
    if not (url and username and password):
        module.fail_json(msg="One or more connection parameters (api_url, api_username, api_password) were not specified")
    from collections import namedtuple
    auth_params = namedtuple('auth', ('url', 'username', 'password'))
    return auth_params(url=url, username=username, password=password)