def class_name_to_resource_name(class_name: str) -> str:
    """Converts a camel case class name to a resource name with spaces.

    >>> class_name_to_resource_name('FooBarObject')
    'Foo Bar Object'

    :param class_name: The name to convert.
    :returns: The resource name.
    """
    s = re.sub('(.)([A-Z][a-z]+)', r'\1 \2', class_name)
    return re.sub('([a-z0-9])([A-Z])', r'\1 \2', s)
Converts a camel case class name to a resource name with spaces.

    >>> class_name_to_resource_name('FooBarObject')
    'Foo Bar Object'

    :param class_name: The name to convert.
    :returns: The resource name.