From e5aaa53f913a7d890bfa7523fe573044bb5554e8 Mon Sep 17 00:00:00 2001 From: Bryce Date: Thu, 22 Jan 2026 14:41:58 -0800 Subject: [PATCH] lbinfo --- .../loadbalancer/LoadBalancerInfo.yml | 35 +++++++++++++++++++ .../services/loadbalancer/loadbalancer.yml | 35 +------------------ 2 files changed, 36 insertions(+), 34 deletions(-) create mode 100644 components/schemas/environments/services/loadbalancer/LoadBalancerInfo.yml diff --git a/components/schemas/environments/services/loadbalancer/LoadBalancerInfo.yml b/components/schemas/environments/services/loadbalancer/LoadBalancerInfo.yml new file mode 100644 index 00000000..af96a862 --- /dev/null +++ b/components/schemas/environments/services/loadbalancer/LoadBalancerInfo.yml @@ -0,0 +1,35 @@ +title: LoadBalancerInfo +type: object +description: Information about an environments load balancer configuration, state, and availability settings. +required: + - default_config + - service + - default_type + - current_type +properties: + default_config: + $ref: ../../../environments/services/loadbalancer/LoadBalancerConfig.yml + default_type: + type: string + enum: + - haproxy + - v1 + current_type: + type: string + enum: + - haproxy + - v1 + base_configs: + type: object + required: + - haproxy + - v1 + properties: + haproxy: + $ref: ../../../environments/services/loadbalancer/config/types/haproxy/HaProxyConfig.yml + v1: + $ref: ../../../environments/services/loadbalancer/config/types/v1/V1LbConfig.yml + service: + anyOf: + - $ref: ../../../environments/services/LoadBalancerEnvironmentService.yml + - type: "null" diff --git a/platform/paths/environments/services/loadbalancer/loadbalancer.yml b/platform/paths/environments/services/loadbalancer/loadbalancer.yml index d24d3791..699ca294 100644 --- a/platform/paths/environments/services/loadbalancer/loadbalancer.yml +++ b/platform/paths/environments/services/loadbalancer/loadbalancer.yml @@ -22,39 +22,6 @@ get: - data properties: data: - type: object - description: Information about an environments load balancer configuration, state, and availability settings. - required: - - default_config - - service - - default_type - - current_type - properties: - default_config: - $ref: ../../../../../components/schemas/environments/services/loadbalancer/LoadBalancerConfig.yml - default_type: - type: string - enum: - - haproxy - - v1 - current_type: - type: string - enum: - - haproxy - - v1 - base_configs: - type: object - required: - - haproxy - - v1 - properties: - haproxy: - $ref: ../../../../../components/schemas/environments/services/loadbalancer/config/types/haproxy/HaProxyConfig.yml - v1: - $ref: ../../../../../components/schemas/environments/services/loadbalancer/config/types/v1/V1LbConfig.yml - service: - anyOf: - - $ref: ../../../../../components/schemas/environments/services/LoadBalancerEnvironmentService.yml - - type: "null" + $ref: ../../../../../components/schemas/environments/services/loadbalancer/LoadBalancerInfo.yml default: $ref: ../../../../../components/responses/errors/DefaultError.yml