def get_api_vip_from_cluster(api_client, cluster_info: Union[(dict, models.cluster.Cluster)], pull_secret):
    import warnings
    from tests.config import ClusterConfig, InfraEnvConfig
    warnings.warn('Soon get_api_vip_from_cluster will be deprecated. Avoid using or adding new functionality to this function. The function and solution for that case have not been determined yet. It might be on another module, or as a classmethod within Cluster class. For more information see https://issues.redhat.com/browse/MGMT-4975', PendingDeprecationWarning)
    if isinstance(cluster_info, dict):
        cluster_info = models.cluster.Cluster(**cluster_info)
    cluster = Cluster(api_client=api_client, infra_env_config=InfraEnvConfig(), config=ClusterConfig(cluster_name=ClusterName(cluster_info.name), pull_secret=pull_secret, ssh_public_key=cluster_info.ssh_public_key, cluster_id=cluster_info.id), nodes=None)
    return cluster.get_api_vip(cluster=cluster_info)
def get_api_vip_from_cluster(api_client, cluster_info: Union[(dict, models.cluster.Cluster)], pull_secret):
    import warnings
    from tests.config import ClusterConfig, InfraEnvConfig
    warnings.warn('Soon get_api_vip_from_cluster will be deprecated. Avoid using or adding new functionality to this function. The function and solution for that case have not been determined yet. It might be on another module, or as a classmethod within Cluster class. For more information see https://issues.redhat.com/browse/MGMT-4975', PendingDeprecationWarning)
    if isinstance(cluster_info, dict):
        cluster_info = models.cluster.Cluster(**cluster_info)
    cluster = Cluster(api_client=api_client, infra_env_config=InfraEnvConfig(), config=ClusterConfig(cluster_name=ClusterName(cluster_info.name), pull_secret=pull_secret, ssh_public_key=cluster_info.ssh_public_key, cluster_id=cluster_info.id), nodes=None)
    return cluster.get_api_vip(cluster=cluster_info)