use clientapi_pbs::apis::configuration::Configuration;
use clientapi_pbs::apis::nodes_api;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut cfg = Configuration::new();
cfg.base_path = format!(
"{}/api2/json",
std::env::var("PBS_HOST").unwrap_or_else(|_| "https://localhost:8007".into()),
);
cfg.bearer_access_token = std::env::var("PBS_TOKEN").ok();
let resp = nodes_api::nodes_get_nodes(&cfg).await?;
println!("Response: {:?}", resp);
Ok(())
}