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

Implement Metros #108

Closed displague closed 3 years ago

displague commented 3 years ago

Equinix Metal resources (Devices, VLANs, IPReservations, SpotMarketRequests, Batches) accept a new metro field.

Use of the field conflicts with the facility field at creation time. One of facility or metro must be provided for these resources at create time. Like facility, this field is immutable.

Regardless of how the resource was created, facility will be included in the response and subsequent fetches. metro may only be included in the response if the resource was created with a metro parameter, but this differs between resources depending on how that resource type operates at a metro level.

Add support for accessing the metro property or handled resource operations throughout this SDK, including: