packethost / packet-python

A Python client for the Equinix Metal API
http://metal.equinix.com/
GNU Lesser General Public License v3.0
40 stars 50 forks source link

add description paramater to manager.create_device #121

Open pnhowe opened 3 years ago

pnhowe commented 3 years ago

please add the "description" parameter to the create_device method of the Manager. Also I noticed a few other missing parameters: ssh_keys, no_ssh_keys, private_ipv4_subnet_size, ip_addresses. Might be nice to have all the API's create device parameters exposed.

displague commented 3 years ago

Indeed @pnhowe. This client is behind API parity in a number of ways. I'm flagging these attributes to be added in a near release, but I don't have any specific timelines.

The Equinix Metal API Swagger2/OAS2 Spec is public and can be used to generate a client, as in https://github.com/displague/metal-python/blob/main/metal/types/device_create_input.py

I'm working towards making generated clients such as this the primary go-to client and eventually deprecating handwritten clients such as this.

Let us know if you are blocked by this or if you would like to have any contributions reviewed and released to add this functionality.

https://github.com/packethost/packet-python/pull/91 is an open PR to add ip_address and we could further that along if it helps.

displague commented 2 years ago

created_by is an attribute that is missing from the Device class which some users have expressed a desire to have access to.