Skip to content

Commit 849afd5

Browse files
committed
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
1 parent f5a129c commit 849afd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudpub/models/ms_azure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class DeprecationSchedule(AttrsJSONDecodeMixin):
256256
"""The date for deprecation."""
257257

258258
date_offset: Optional[str] = field(
259-
validator=optional(instance_of(str)), metadata={"hide_unset": True}
259+
validator=optional(instance_of(str)), metadata={"hide_unset": True, "alias": "dateOffset"}
260260
)
261261
"""The date offset for deprecation."""
262262

0 commit comments

Comments
 (0)