From dd16d8036119386a3153037facc0c3c7ef704848 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 17 Jul 2026 07:46:45 +0000 Subject: [PATCH] Generate loadbalancer --- .../loadbalancer/model_load_balancer_error.go | 9 ++++++++ .../model_load_balancer_error_test.go | 21 +++++++++++++++++++ services/loadbalancer/oas_commit | 2 +- .../v2api/model_load_balancer_error_type.go | 6 ++++++ 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/services/loadbalancer/model_load_balancer_error.go b/services/loadbalancer/model_load_balancer_error.go index 81d423f5d..eb236fc2e 100644 --- a/services/loadbalancer/model_load_balancer_error.go +++ b/services/loadbalancer/model_load_balancer_error.go @@ -79,6 +79,12 @@ const ( LOADBALANCERERRORTYPE_LOGS_MISCONFIGURED LoadBalancerErrorTypes = "TYPE_LOGS_MISCONFIGURED" // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead LOADBALANCERERRORTYPE_FIP_NOT_FOUND LoadBalancerErrorTypes = "TYPE_FIP_NOT_FOUND" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + LOADBALANCERERRORTYPE_IP_EXHAUSTED LoadBalancerErrorTypes = "TYPE_IP_EXHAUSTED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + LOADBALANCERERRORTYPE_DNS_NOT_CONFIGURED LoadBalancerErrorTypes = "TYPE_DNS_NOT_CONFIGURED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + LOADBALANCERERRORTYPE_VM_PORT_NOT_CONFIGURED LoadBalancerErrorTypes = "TYPE_VM_PORT_NOT_CONFIGURED" ) // All allowed values of LoadBalancerError enum @@ -94,6 +100,9 @@ var AllowedLoadBalancerErrorTypesEnumValues = []LoadBalancerErrorTypes{ "TYPE_METRICS_MISCONFIGURED", "TYPE_LOGS_MISCONFIGURED", "TYPE_FIP_NOT_FOUND", + "TYPE_IP_EXHAUSTED", + "TYPE_DNS_NOT_CONFIGURED", + "TYPE_VM_PORT_NOT_CONFIGURED", } // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead diff --git a/services/loadbalancer/model_load_balancer_error_test.go b/services/loadbalancer/model_load_balancer_error_test.go index 928768681..f82fb6a66 100644 --- a/services/loadbalancer/model_load_balancer_error_test.go +++ b/services/loadbalancer/model_load_balancer_error_test.go @@ -95,6 +95,27 @@ func TestLoadBalancerErrorTypes_UnmarshalJSON(t *testing.T) { }, wantErr: false, }, + { + name: `success - possible enum value no. 11`, + args: args{ + src: []byte(`"TYPE_IP_EXHAUSTED"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 12`, + args: args{ + src: []byte(`"TYPE_DNS_NOT_CONFIGURED"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 13`, + args: args{ + src: []byte(`"TYPE_VM_PORT_NOT_CONFIGURED"`), + }, + wantErr: false, + }, { name: "fail", args: args{ diff --git a/services/loadbalancer/oas_commit b/services/loadbalancer/oas_commit index b129c2291..057339237 100644 --- a/services/loadbalancer/oas_commit +++ b/services/loadbalancer/oas_commit @@ -1 +1 @@ -98c11e0ee4834ddaaa474eccc437d234e6276a70 +12cb969e58d534e131a1b9af36418eef80f00678 diff --git a/services/loadbalancer/v2api/model_load_balancer_error_type.go b/services/loadbalancer/v2api/model_load_balancer_error_type.go index 2d24944b0..86bae1ef8 100644 --- a/services/loadbalancer/v2api/model_load_balancer_error_type.go +++ b/services/loadbalancer/v2api/model_load_balancer_error_type.go @@ -30,6 +30,9 @@ const ( LOADBALANCERERRORTYPE_TYPE_METRICS_MISCONFIGURED LoadBalancerErrorType = "TYPE_METRICS_MISCONFIGURED" LOADBALANCERERRORTYPE_TYPE_LOGS_MISCONFIGURED LoadBalancerErrorType = "TYPE_LOGS_MISCONFIGURED" LOADBALANCERERRORTYPE_TYPE_FIP_NOT_FOUND LoadBalancerErrorType = "TYPE_FIP_NOT_FOUND" + LOADBALANCERERRORTYPE_TYPE_IP_EXHAUSTED LoadBalancerErrorType = "TYPE_IP_EXHAUSTED" + LOADBALANCERERRORTYPE_TYPE_DNS_NOT_CONFIGURED LoadBalancerErrorType = "TYPE_DNS_NOT_CONFIGURED" + LOADBALANCERERRORTYPE_TYPE_VM_PORT_NOT_CONFIGURED LoadBalancerErrorType = "TYPE_VM_PORT_NOT_CONFIGURED" LOADBALANCERERRORTYPE_UNKNOWN_DEFAULT_OPEN_API LoadBalancerErrorType = "unknown_default_open_api" ) @@ -45,6 +48,9 @@ var AllowedLoadBalancerErrorTypeEnumValues = []LoadBalancerErrorType{ "TYPE_METRICS_MISCONFIGURED", "TYPE_LOGS_MISCONFIGURED", "TYPE_FIP_NOT_FOUND", + "TYPE_IP_EXHAUSTED", + "TYPE_DNS_NOT_CONFIGURED", + "TYPE_VM_PORT_NOT_CONFIGURED", "unknown_default_open_api", }