Deprecated This repository is Deprecated, meaning that this software is only supported or maintained by Equinix Metal and its community in a case-by-case basis. It has been replaced by
equinix-sdk-go
, which is generated using a similar process to this SDK and is intended to support Equinix services beyond only Metal. Version 0.30.0 of the new SDK is a drop-in replacement for version 0.29.0 of this SDK.
Makefile
includes tasks to fetch the API spec, apply patches, and generate a clientspec/oas3.fetched
a directory of the latest fetched OpenAPI specspec/oas3.patched
a directory of the latest patched OpenAPI specpatches/spec.fetched.json/*.patch
patch files to apply against the fetched OpenAPI specpatches/post/*.patch
patch files to apply against the generated Go codeexamples/
hand crafted examples to demonstrate usagemetal/v1/
generated Go clientSee API.md
To build the client, run make
.
You can see usage of the generated code in the examples
directory. In order to try, export METAL_AUTH_TOKEN
token and execute the code, e.g.
spec/oas3.patched/
dir.git diff spec/oas3.patched/ > ../patches/spec.fetched.json/<patchfilename>
cd ..
patchfilename
should be in format: <patch_index>-<short_patch_decription_or_identifier>.patch
make
to reapply the changes to the fetched OpenAPI spec and confirm that the patched spec includes the expected changes