From d39f9ec71f4733fe02d56abae60efbb47fd4e4ec Mon Sep 17 00:00:00 2001 From: EladTanaami <65851884+EladTanaami@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:18:05 +0300 Subject: [PATCH] [fix] update LB documentation in createElastigroupSpotVMs (#601) --- .../schemas/createElastigroupSpotVMs.yaml | 96 +++++++++---------- 1 file changed, 46 insertions(+), 50 deletions(-) diff --git a/api/services/elastigroup/azure/spotVms/schemas/createElastigroupSpotVMs.yaml b/api/services/elastigroup/azure/spotVms/schemas/createElastigroupSpotVMs.yaml index 1de3ad358..49f4a61ee 100644 --- a/api/services/elastigroup/azure/spotVms/schemas/createElastigroupSpotVMs.yaml +++ b/api/services/elastigroup/azure/spotVms/schemas/createElastigroupSpotVMs.yaml @@ -705,59 +705,55 @@ properties: type: object properties: loadBalancers: - title: Load Balancers - description: Add a load balancer. For Azure Gateway, each Backend Pool is a separate load balancer. type: array + description: | + Add a load balancer. For Azure Gateway, each Backend Pool is a separate load balancer. items: - anyOf: - - type: object - title: MULTAI_TARGET_SET - properties: - type: - title: Type - description: "The type of load balancer. Valid Values: - - + MULTAI_TARGET_SET - - + APPLICATION_GATEWAY" - type: string - example: MULTAI_TARGET_SET - enum: - - MULTAI_TARGET_SET - balancerId: - type: string - example: lb-1ee2e3q - targetSetId: - type: string - example: ts-3eq - autoWeight: - type: boolean - example: true - - type: object - title: APPLICATION_GATEWAY - properties: - type: - title: Type - description: "The type of load balancer. Valid Values: - - + MULTAI_TARGET_SET + type: object + properties: + type: + type: string + description: | + The type of load balancer. + enum: [ loadBalancer, applicationGateway ] + example: "loadBalancer" + resourceGroupName: + type: string + description: | + The Resource Group name of the Load Balancer. + example: "testResourceGroup" + name: + type: string + description: | + Name of the Application Gateway/Load Balancer + example: "testLoadBalancer" + sku: + type: string + description: | + * if type is LoadBalancer then possible values are: + * “Standard" + * Basic” + * if ApplicationGateway then possible values are: + * “Standard_Large” + * “Standard_Medium” + * “Standard_Small” + * “Standard_v2 + * “WAF_Large” + * “WAF_Medium" + * “WAF_v2" + example: "Standard" + backendPoolNames: + type: array + items: + type: string + description: | + Name of the Backend Pool to register the Elastigroup VMs to.\ + Each Backend Pool is a separate load balancer.\ + Required if Type is APPLICATION_GATEWAY. + example: + - "testBackendPool1" + - "testBackendPool2" - + APPLICATION_GATEWAY" - type: string - example: APPLICATION_GATEWAY - enum: - - APPLICATION_GATEWAY - resourceGroupName: - title: Resource Group Name - description: "The Resource Group name of the Load Balancer." - type: string - example: azureResourceGroup - applicationGatewayName: - type: string - example: appGateway - backendPoolName: - type: string - example: backendpool490822 managedServiceIdentities: title: Managed Service Identities description: Add a user-assigned managed identity to the VMs in the cluster.