Skip to content

Commit d60a082

Browse files
committed
TPT-4278: python-sdk: Implement support for Reserved IP for IPv4
1 parent 3a94fc5 commit d60a082

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

linode_api4/groups/networking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def reserved_ip_create(
578578
579579
NOTE: Reserved IP feature may not currently be available to all users.
580580
581-
API Documentation: https://techdocs.akamai.com/linode-api/reference/post-reserve-ip
581+
API Documentation: https://techdocs.akamai.com/linode-api/reference/post-reserved-ip
582582
583583
:param region: The region in which to reserve the IP.
584584
:type region: str or Region
@@ -610,7 +610,7 @@ def reserved_ip_types(self, *filters) -> PaginatedList:
610610
611611
NOTE: Reserved IP feature may not currently be available to all users.
612612
613-
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-reserved-iptypes
613+
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-reserved-ip-types
614614
615615
:param filters: Any number of filters to apply to this query.
616616
See :doc:`Filtering Collections</linode_api4/objects/filtering>`

linode_api4/objects/networking.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ class ReservedIPAddress(Base):
202202
"tags": Property(mutable=True, unordered=True),
203203
"type": Property(),
204204
"assigned_entity": Property(json_object=ReservedIPAssignedEntity),
205+
"interface_id": Property(),
206+
"vpc_nat_1_1": Property(json_object=InstanceIPNAT1To1),
205207
}
206208

207209

@@ -481,7 +483,7 @@ class ReservedIPType(Base):
481483
482484
NOTE: Reserved IP feature may not currently be available to all users.
483485
484-
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-reserved-iptype
486+
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-reserved-ip-types
485487
"""
486488

487489
properties = {

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ remove-all-unused-imports = true
9090
remove-duplicate-keys = false
9191

9292
[tool.pytest.ini_options]
93+
testpaths = ["test"]
94+
python_files = ["*_test.py", "test_*.py"]
9395
markers = [
9496
"smoke: mark a test as a smoke test",
9597
"flaky: mark a test as a flaky test for rerun"

pytest.ini

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)