def get_resource_name(singular, name, allow_hash_names=True):
    # print(f'get_resource_name: {singular} {name}')
    resource_name = labels_manager.get_resource_name(
        get_resource_suffix(singular, name))
    if _get_hash_names(singular) and allow_hash_names:
        resource_name = 'cc' + hashlib.blake2b(name.encode(),
                                               digest_size=16).hexdigest()
    # print(f'output resource name: {resource_name}')
    return resource_name
def get_resource_name(submodule, provider_id=None, suffix=None):
    return labels_manager.get_resource_name(
        get_resource_suffix(submodule, provider_id=provider_id, suffix=suffix))