packet-python icon indicating copy to clipboard operation
packet-python copied to clipboard

add description paramater to manager.create_device

Open pnhowe opened this issue 3 years ago • 2 comments

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.

pnhowe avatar Aug 20 '21 15:08 pnhowe

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 avatar Aug 21 '21 05:08 displague

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

displague avatar Jun 10 '22 13:06 displague