def METHOD_NAME(mock_client):
    mock_client.get_paasta_oapi_client.return_value = None
    return_code = update_service_autoscale_pause_time("cluster1", "2")
    assert return_code == 1
    mock_client.get_paasta_oapi_client.assert_called_with(
        cluster="cluster1", http_res=True
    )
    mock_api = mock.Mock()
    mock_client.get_paasta_oapi_client.return_value = mock.Mock(default=mock_api)
    mock_api.update_service_autoscaler_pause = mock_update = mock.Mock()
    mock_update.return_value = (None, 500, None)
    return_code = update_service_autoscale_pause_time("cluster1", "3")
    mock_update.assert_called_once_with(
        paastamodels.InlineObject(minutes=3), _return_http_data_only=False
    )
    assert return_code == 2
    mock_update.return_value = (None, 200, None)
    return_code = update_service_autoscale_pause_time("cluster1", "2")
    assert return_code == 0