From 39aa356c4c8a8c47b0c510bf3bc217b5bb58dbf5 Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Thu, 25 Jul 2024 13:45:29 +0200 Subject: [PATCH] feat: deprecate `server_type_info` `included_traffic` return value (#532) ### API Changes for Traffic Prices and Server Type Included Traffic There will be a breaking change in the API regarding Traffic Prices and Server Type Included Traffic on 2024-08-05. This release marks the affected fields as `Deprecated`. Please check if this affects any of your code and switch to the replacement fields where necessary. You can learn more about this change in [our changelog](https://docs.hetzner.cloud/changelog#2024-07-25-cloud-api-returns-traffic-information-in-different-format). --- changelogs/fragments/deprecate-server-type-pricing.yml | 3 +++ plugins/modules/server_type_info.py | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/deprecate-server-type-pricing.yml diff --git a/changelogs/fragments/deprecate-server-type-pricing.yml b/changelogs/fragments/deprecate-server-type-pricing.yml new file mode 100644 index 0000000..6df59cd --- /dev/null +++ b/changelogs/fragments/deprecate-server-type-pricing.yml @@ -0,0 +1,3 @@ +minor_changes: + - server_type_info - The 'included_traffic' return value is deprecated and will be set to 'None' on 5 August 2024. + See https://docs.hetzner.cloud/changelog#2024-07-25-cloud-api-returns-traffic-information-in-different-format. diff --git a/plugins/modules/server_type_info.py b/plugins/modules/server_type_info.py index 4f16b52..f03d670 100644 --- a/plugins/modules/server_type_info.py +++ b/plugins/modules/server_type_info.py @@ -96,7 +96,11 @@ hcloud_server_type_info: type: str sample: x86 included_traffic: - description: Free traffic per month in bytes + description: | + Free traffic per month in bytes + + B(Deprecated): This field is deprecated and will be set to C(None) on 5 August 2024. + See U(https://docs.hetzner.cloud/changelog#2024-07-25-cloud-api-returns-traffic-information-in-different-format). returned: always type: int sample: 21990232555520