Skip to content

Conversation

lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented Apr 24, 2023

📝 Description

This change introduces an ExplicitNullValue class that can be used to specify null values that should explicitly be included in API put requests.

For example, you can reset the RDNS for an IP address by explicitly specifying rdns as null when making a request to this endpoint: https://www.linode.com/docs/api/networking/#ip-address-rdns-update__request-body-schema

The corresponding implementation would look like this:

 ip = IPAddress(client, "127.0.0.1")
 ip.rdns = ExplicitNullValue
 ip.save()

✔️ How to Test

tox

@lgarber-akamai lgarber-akamai requested a review from a team April 24, 2023 18:54
Copy link
Contributor

@ezilber-akamai-zz ezilber-akamai-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests passing locally. LGTM!

Copy link
Contributor

@yec-akamai yec-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@lgarber-akamai lgarber-akamai merged commit 98ebfd2 into linode:dev Apr 25, 2023
lgarber-akamai added a commit that referenced this pull request Apr 26, 2023
## 📝 Description

This change adds documentation to the `objects/networking.py` file.

Blocked by #260 

## ✔️ How to Test

```
tox
```
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.

3 participants