Skip to content

Commit

Permalink
feat: deprecate server_type_info included_traffic return value (#532
Browse files Browse the repository at this point in the history
)

### 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).
  • Loading branch information
jooola authored Jul 25, 2024
1 parent 42a1438 commit 39aa356
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/deprecate-server-type-pricing.yml
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 5 additions & 1 deletion plugins/modules/server_type_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@
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
Expand Down

0 comments on commit 39aa356

Please sign in to comment.