mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-09 00:11:28 +02:00
Defines the cloud-side managed gateway provisioning surface (POST/GET /api/integrations/agent-network/managed-proxy) and its response objects so clients consume generated types instead of hand-written ones. POST is idempotent: 202 when the call starts (or restarts) provisioning, 200 when a deployment already exists; 409 names an already-assigned endpoint the managed flow does not own and 503 signals temporarily exhausted endpoint allocation.
17 lines
356 B
Bash
Executable File
17 lines
356 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if ! which realpath > /dev/null 2>&1
|
|
then
|
|
echo realpath is not installed
|
|
echo run: brew install coreutils
|
|
exit 1
|
|
fi
|
|
|
|
old_pwd=$(pwd)
|
|
script_path=$(dirname $(realpath "$0"))
|
|
cd "$script_path"
|
|
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.7.1
|
|
oapi-codegen --config cfg.yaml openapi.yml
|
|
cd "$old_pwd"
|