Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 6658bde

Browse files
Merge pull request #39 from packethost/parameterize-get_capacity
Manager: add `legacy` optional param to get_capacity
2 parents f9294fc + f611ef3 commit 6658bde

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
include CHANGELOG.md
2+
include README.md

packet/Manager.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ def get_volume(self, volume_id):
168168
return Volume(data, self)
169169

170170
def get_capacity(self, legacy=None):
171+
"""Get capacity of all facilities.
172+
173+
:param legacy: Indicate set of server types to include in response
174+
175+
Validation of `legacy` is left to the packet api to avoid going out of date if any new value is introduced.
176+
The currently known values are:
177+
- only (current default, will be switched "soon")
178+
- include
179+
- exclude (soon to be default)
180+
"""
171181
params = None
172182
if legacy:
173183
params = {'legacy': legacy}

0 commit comments

Comments
 (0)