Skip to content

Commit

Permalink
feat: add beta SDK for Equinix Metal Load Balancer service (#471)
Browse files Browse the repository at this point in the history
This adds an SDK for the beta Load Balancer service so that we can add
support for that service to CPEM. This SDK is based on the API spec for
the Load Balancer service.
  • Loading branch information
cprivitere committed Oct 24, 2023
2 parents 4668d02 + 2a3d354 commit 45dde1a
Show file tree
Hide file tree
Showing 37 changed files with 9,473 additions and 0 deletions.
24 changes: 24 additions & 0 deletions internal/lbaas/v1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
23 changes: 23 additions & 0 deletions internal/lbaas/v1/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
75 changes: 75 additions & 0 deletions internal/lbaas/v1/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
api_load_balancers.go
api_origins.go
api_pools.go
api_ports.go
api_projects.go
client.go
configuration.go
docs/LoadBalancer.md
docs/LoadBalancerCollection.md
docs/LoadBalancerCreate.md
docs/LoadBalancerLocation.md
docs/LoadBalancerPool.md
docs/LoadBalancerPoolCollection.md
docs/LoadBalancerPoolCreate.md
docs/LoadBalancerPoolCreateProtocol.md
docs/LoadBalancerPoolOrigin.md
docs/LoadBalancerPoolOriginCollection.md
docs/LoadBalancerPoolOriginCreate.md
docs/LoadBalancerPoolOriginPortNumber.md
docs/LoadBalancerPoolOriginUpdate.md
docs/LoadBalancerPoolProtocol.md
docs/LoadBalancerPoolShort.md
docs/LoadBalancerPoolUpdate.md
docs/LoadBalancerPort.md
docs/LoadBalancerPortCollection.md
docs/LoadBalancerPortCreate.md
docs/LoadBalancerPortUpdate.md
docs/LoadBalancerShort.md
docs/LoadBalancerUpdate.md
docs/LoadBalancersApi.md
docs/OriginsApi.md
docs/PoolsApi.md
docs/PortsApi.md
docs/ProjectsApi.md
docs/Provider.md
docs/ResourceCreatedResponse.md
git_push.sh
go.mod
go.sum
model_load_balancer.go
model_load_balancer_collection.go
model_load_balancer_create.go
model_load_balancer_location.go
model_load_balancer_pool.go
model_load_balancer_pool_collection.go
model_load_balancer_pool_create.go
model_load_balancer_pool_create_protocol.go
model_load_balancer_pool_origin.go
model_load_balancer_pool_origin_collection.go
model_load_balancer_pool_origin_create.go
model_load_balancer_pool_origin_port_number.go
model_load_balancer_pool_origin_update.go
model_load_balancer_pool_protocol.go
model_load_balancer_pool_short.go
model_load_balancer_pool_update.go
model_load_balancer_port.go
model_load_balancer_port_collection.go
model_load_balancer_port_create.go
model_load_balancer_port_update.go
model_load_balancer_short.go
model_load_balancer_update.go
model_provider.go
model_resource_created_response.go
response.go
test/api_load_balancers_test.go
test/api_origins_test.go
test/api_pools_test.go
test/api_ports_test.go
test/api_projects_test.go
utils.go
1 change: 1 addition & 0 deletions internal/lbaas/v1/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.0.0
Loading

0 comments on commit 45dde1a

Please sign in to comment.