def generate_image(self):
    warnings.warn('generate_image is deprecated. Use generate_infra_env instead.', DeprecationWarning)
    self.api_client.generate_image(cluster_id=self.id, ssh_key=self._config.ssh_public_key)
def generate_image(self):
    warnings.warn('generate_image is deprecated. Use generate_infra_env instead.', DeprecationWarning)
    self.api_client.generate_image(cluster_id=self.id, ssh_key=self._config.ssh_public_key)