diff --git a/CHANGELOG.md b/CHANGELOG.md index ad1b40c2..3d1972dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Change `ServiceEndpoint` field to be optional: - `description` +- Change `AgentPoolQueue` field to be optional: + - `pool` ## [0.30.0] 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 05d725ad..b8c16832 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" ]"#, ),