From 0469fa1a21ae2e412f2cf74dce99212ca36e4e5b Mon Sep 17 00:00:00 2001 From: Jake Fullerton Date: Mon, 29 Jan 2024 15:04:12 -0800 Subject: [PATCH 1/2] update rust endpoint requests --- rs/src/management/http_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rs/src/management/http_client.rs b/rs/src/management/http_client.rs index 68d60e8a..0e8b2d5d 100644 --- a/rs/src/management/http_client.rs +++ b/rs/src/management/http_client.rs @@ -183,8 +183,8 @@ impl TunnelManagementClient { let url = self.build_tunnel_uri( locator, Some(&format!( - "{}/{}/{}", - ENDPOINTS_API_SUB_PATH, endpoint.base.host_id, endpoint.base.connection_mode + "{}/{}", + ENDPOINTS_API_SUB_PATH, endpoint.base.id )), ); let mut request = self.make_tunnel_request(Method::PUT, url, options).await?; From 9fa0a92176c28acb03449a652c762f12159dfd9e Mon Sep 17 00:00:00 2001 From: Jake Fullerton Date: Mon, 29 Jan 2024 15:08:28 -0800 Subject: [PATCH 2/2] update types --- rs/src/contracts/tunnel_endpoint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs/src/contracts/tunnel_endpoint.rs b/rs/src/contracts/tunnel_endpoint.rs index aef96832..a0f8ee02 100644 --- a/rs/src/contracts/tunnel_endpoint.rs +++ b/rs/src/contracts/tunnel_endpoint.rs @@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize}; #[serde(rename_all(serialize = "camelCase", deserialize = "camelCase"))] pub struct TunnelEndpoint { // Gets or sets the ID of this endpoint. - pub id: Option, + pub id: String, // Gets or sets the connection mode of the endpoint. //