From 849afd59f0b6a41ffa3eea05dda3ec49ab5072ae Mon Sep 17 00:00:00 2001 From: Jonathan Gangi Date: Thu, 19 Dec 2024 14:57:02 -0300 Subject: [PATCH] Azure: Add missing alias for dateOffset This commit adds a missing alias for the `date_offset` property on `DeprecationSchedule`. Without this alias the class was unable to properly parse the value from JSON, which may cause the following error when senting the request to configure: ``` 'badRequest', 'message': "The deprecation schedule for image 'X.Y.|' of type 'ARCH' is already published and can not be changed in draft." ``` Refers to SPMM-18578 --- cloudpub/models/ms_azure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudpub/models/ms_azure.py b/cloudpub/models/ms_azure.py index ed46e8e..9616c01 100644 --- a/cloudpub/models/ms_azure.py +++ b/cloudpub/models/ms_azure.py @@ -256,7 +256,7 @@ class DeprecationSchedule(AttrsJSONDecodeMixin): """The date for deprecation.""" date_offset: Optional[str] = field( - validator=optional(instance_of(str)), metadata={"hide_unset": True} + validator=optional(instance_of(str)), metadata={"hide_unset": True, "alias": "dateOffset"} ) """The date offset for deprecation."""