From 1a0b9612c9e48df2de98314d71e5fd513e22f711 Mon Sep 17 00:00:00 2001 From: gaetan cabaret Date: Tue, 18 Jun 2024 19:48:05 +0200 Subject: [PATCH 1/2] feat(api): support id on cloud region request --- crates/ash_cli/src/console/blueprint.rs | 2 +- crates/ash_cli/src/console/region.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ash_cli/src/console/blueprint.rs b/crates/ash_cli/src/console/blueprint.rs index 96239fc..f9d9cfc 100644 --- a/crates/ash_cli/src/console/blueprint.rs +++ b/crates/ash_cli/src/console/blueprint.rs @@ -79,7 +79,7 @@ fn add_project_regions( region.region.clone().unwrap_or_default() ); let response = task::block_on(async { - console::api::get_project_cloud_region_by_name( + console::api::get_project_cloud_region_by_id_or_name( api_config, project_name, ®ion_name.replace('/', "_"), diff --git a/crates/ash_cli/src/console/region.rs b/crates/ash_cli/src/console/region.rs index 01d9aae..2ea1b9c 100644 --- a/crates/ash_cli/src/console/region.rs +++ b/crates/ash_cli/src/console/region.rs @@ -184,7 +184,7 @@ fn info( let api_config = create_api_config_with_access_token(&mut console)?; let response = task::block_on(async { - console::api::get_project_cloud_region_by_name( + console::api::get_project_cloud_region_by_id_or_name( &api_config, project_id_or_name, ®ion_name.replace('/', "_"), @@ -232,7 +232,7 @@ fn remove( let spinner = spinner_with_message("Removing cloud region...".to_string()); let response = task::block_on(async { - console::api::remove_project_cloud_region_by_name( + console::api::remove_project_cloud_region_by_id_or_name( &api_config, project_id_or_name, ®ion_name.replace('/', "_"), From 48bb771acf207d50a91738d2d0d454ae930b60ae Mon Sep 17 00:00:00 2001 From: gaetan cabaret Date: Mon, 24 Jun 2024 12:21:13 +0200 Subject: [PATCH 2/2] feat: bump api version to 1.7 --- crates/ash_sdk/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ash_sdk/Cargo.toml b/crates/ash_sdk/Cargo.toml index 5f5b27b..e14aa54 100644 --- a/crates/ash_sdk/Cargo.toml +++ b/crates/ash_sdk/Cargo.toml @@ -42,7 +42,7 @@ rustls-pemfile = "1.0.3" sha2 = "0.10.7" oauth2 = "4.4.2" url = "2.4.1" -ash_api = { version = "0.1.6" } +ash_api = { version = "0.1.7" } rcgen = "0.11.3" [dev-dependencies]