From 290e6d07d44883e08de714bbebfd5f93260f32f6 Mon Sep 17 00:00:00 2001 From: John Batty Date: Wed, 17 Sep 2025 22:51:03 +0100 Subject: [PATCH] Change AgentPoolQueue pool field to be optional --- CHANGELOG.md | 5 +++++ azure_devops_rust_api/src/build/models.rs | 7 ++++--- vsts-api-patcher/src/patcher.rs | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c49474d..3d1972dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Change `ServiceEndpoint` field to be optional: + - `description` +- Change `AgentPoolQueue` field to be optional: + - `pool` + ## [0.30.0] ### Changes diff --git a/azure_devops_rust_api/src/build/models.rs b/azure_devops_rust_api/src/build/models.rs index 72fab8f7..57eacf4b 100644 --- a/azure_devops_rust_api/src/build/models.rs +++ b/azure_devops_rust_api/src/build/models.rs @@ -16,18 +16,19 @@ pub struct AgentPoolQueue { #[doc = "The name of the queue."] pub name: String, #[doc = "Represents a reference to an agent pool."] - pub pool: TaskAgentPoolReference, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub pool: Option, #[doc = "The full http link to the resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub url: Option, } impl AgentPoolQueue { - pub fn new(id: i32, name: String, pool: TaskAgentPoolReference) -> Self { + pub fn new(id: i32, name: String) -> Self { Self { links: None, id, name, - pool, + pool: None, url: None, } } diff --git a/vsts-api-patcher/src/patcher.rs b/vsts-api-patcher/src/patcher.rs index d10c2a31..cc1a23fd 100644 --- a/vsts-api-patcher/src/patcher.rs +++ b/vsts-api-patcher/src/patcher.rs @@ -1313,9 +1313,9 @@ impl Patcher { // Excluded // _links // url + // pool" r#"[ "id", - "pool", "name" ]"#, ),