Skip to content

feat: add deprecation info to load balancer type#674

Merged
jooola merged 1 commit into
mainfrom
load-balancer-type-deprecation
Jul 21, 2026
Merged

feat: add deprecation info to load balancer type#674
jooola merged 1 commit into
mainfrom
load-balancer-type-deprecation

Conversation

@jooola

@jooola jooola commented Jul 20, 2026

Copy link
Copy Markdown
Member

Add the deprecation object property to the LoadBalancerType domain.

@jooola
jooola requested a review from lukasmetzner July 20, 2026 16:26
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.07%. Comparing base (629a8f8) to head (8288ff1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #674   +/-   ##
=======================================
  Coverage   97.07%   97.07%           
=======================================
  Files          76       76           
  Lines        4034     4036    +2     
=======================================
+ Hits         3916     3918    +2     
  Misses        118      118           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jooola
jooola force-pushed the load-balancer-type-deprecation branch from 01057a6 to 8288ff1 Compare July 20, 2026 16:30
@jooola
jooola merged commit aeebcf8 into main Jul 21, 2026
11 checks passed
@jooola
jooola deleted the load-balancer-type-deprecation branch July 21, 2026 07:57
lukasmetzner pushed a commit that referenced this pull request Jul 21, 2026
### Removed deprecated Datacenter property from Server and PrimaryIP

Removed the deprecated Datacenter property from the Server and PrimaryIP
resources. Since the property was already removed from the Hetzner Cloud
API, we do not consider this a breaking change (see [changelog
entry](https://docs.hetzner.cloud/changelog#2026-07-01-removing-datacenters)).

> [!IMPORTANT]
> **Action required:** Please update all code that accesses
`server.datacenter` or `primary_ip.datacenter` to use the `location`
property instead, as shown below.

**Before:**

```python
server = client.server.get_by_id(5)
print(server.datacenter)

primary_ip = client.primary_ip.get_by_id(5)
print(primary_ip.datacenter)
```

**After:**

```python
server = client.server.get_by_id(5)
print(server.location)

primary_ip = client.primary_ip.get_by_id(5)
print(primary_ip.location)
```

### Features

- remove datacenter property from server and primary_ip (#668)
([abdadf3](abdadf3))
- add deprecation info to load balancer type (#674)
([aeebcf8](aeebcf8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants