diff --git a/CHANGELOG.md b/CHANGELOG.md index 5271dc3bd..f71dfcee8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ - **Breaking Change:** Introduce typed enum constants for status attributes - `git`: [v0.3.2](services/git/CHANGELOG.md#v032-2025-05-02) - **Bugfix**: Spelling corrections in documentation +- `alb`: [v0.2.2](services/alb/CHANGELOG.md#v022-2025-05-02) + - **Feature:** Switch to beta2 API ## Release (2025-04-30) - `core`: [v0.17.1](core/CHANGELOG.md#v0171-2025-04-09) diff --git a/services/alb/CHANGELOG.md b/services/alb/CHANGELOG.md index dc05d9c7b..477e351a2 100644 --- a/services/alb/CHANGELOG.md +++ b/services/alb/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.2.2 (2025-05-02) +- **Feature:** Switch to beta2 API + ## v0.2.1 (2025-03-27) - **Bugfix:** Removed ConfigureRegion() from API client diff --git a/services/alb/api_default.go b/services/alb/api_default.go index 93ea132e5..b9b9634bc 100644 --- a/services/alb/api_default.go +++ b/services/alb/api_default.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -58,7 +58,7 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/credentials" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/credentials" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -222,7 +222,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/load-balancers" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/load-balancers" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -374,7 +374,7 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(r.credentialsRef, "credentialsRef")), -1) @@ -520,7 +520,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(r.name, "name")), -1) @@ -666,7 +666,7 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(r.credentialsRef, "credentialsRef")), -1) @@ -812,7 +812,7 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(r.name, "name")), -1) @@ -959,7 +959,7 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/quota" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/quota" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -1102,7 +1102,7 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/credentials" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/credentials" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -1259,7 +1259,7 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/load-balancers" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/load-balancers" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -1407,7 +1407,7 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/regions/{region}/plans" + localVarPath := localBasePath + "/v2beta2/regions/{region}/plans" localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarHeaderParams := make(map[string]string) @@ -1551,7 +1551,7 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(r.credentialsRef, "credentialsRef")), -1) @@ -1708,7 +1708,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(r.name, "name")), -1) @@ -1869,7 +1869,7 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}" + localVarPath := localBasePath + "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(r.name, "name")), -1) diff --git a/services/alb/api_default_test.go b/services/alb/api_default_test.go index 86c3bcfad..88896dda5 100644 --- a/services/alb/api_default_test.go +++ b/services/alb/api_default_test.go @@ -24,10 +24,10 @@ import ( func Test_alb_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateCredentials", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/credentials" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/credentials" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -80,10 +80,10 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService CreateLoadBalancer", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/load-balancers" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/load-balancers" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -136,12 +136,12 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteCredentials", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - credentialsRefValue := "credentialsRef" + credentialsRefValue := "credentialsRef-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(credentialsRefValue, "credentialsRef")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -194,12 +194,12 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteLoadBalancer", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - nameValue := "name" + nameValue := "name-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(nameValue, "name")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -252,12 +252,12 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetCredentials", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - credentialsRefValue := "credentialsRef" + credentialsRefValue := "credentialsRef-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(credentialsRefValue, "credentialsRef")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -310,12 +310,12 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetLoadBalancer", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - nameValue := "name" + nameValue := "name-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(nameValue, "name")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -368,10 +368,10 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetQuota", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/quota" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/quota" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -423,10 +423,10 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListCredentials", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/credentials" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/credentials" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -478,10 +478,10 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListLoadBalancers", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/load-balancers" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/load-balancers" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -533,8 +533,8 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListPlans", func(t *testing.T) { - _apiUrlPath := "/v2beta/regions/{region}/plans" - regionValue := "region" + _apiUrlPath := "/v2beta2/regions/{region}/plans" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -585,12 +585,12 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService UpdateCredentials", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - credentialsRefValue := "credentialsRef" + credentialsRefValue := "credentialsRef-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(credentialsRefValue, "credentialsRef")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -644,12 +644,12 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService UpdateLoadBalancer", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - nameValue := "name" + nameValue := "name-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(nameValue, "name")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -703,14 +703,14 @@ func Test_alb_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService UpdateTargetPool", func(t *testing.T) { - _apiUrlPath := "/v2beta/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}" - projectIdValue := "projectId" + _apiUrlPath := "/v2beta2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - regionValue := "region" + regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - nameValue := "name" + nameValue := "name-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(nameValue, "name")), -1) - targetPoolNameValue := "targetPoolName" + targetPoolNameValue := "targetPoolName-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"targetPoolName"+"}", url.PathEscape(ParameterValueToString(targetPoolNameValue, "targetPoolName")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/alb/client.go b/services/alb/client.go index 3fa03bbab..bfeac6ec7 100644 --- a/services/alb/client.go +++ b/services/alb/client.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Application Load Balancer API API v2beta.0.0 +// APIClient manages communication with the Application Load Balancer API API v2beta2.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration @@ -305,7 +305,7 @@ func (c *APIClient) prepareRequest( var body *bytes.Buffer // Detect postBody type and post. - if postBody != nil { + if !IsNil(postBody) { contentType := headerParams["Content-Type"] if contentType == "" { contentType = detectContentType(postBody) diff --git a/services/alb/configuration.go b/services/alb/configuration.go index a6c48222e..0bd619a23 100644 --- a/services/alb/configuration.go +++ b/services/alb/configuration.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_active_health_check.go b/services/alb/model_active_health_check.go index c9419107b..9acb6db1d 100644 --- a/services/alb/model_active_health_check.go +++ b/services/alb/model_active_health_check.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_certificate_config.go b/services/alb/model_certificate_config.go index 2cd8e571b..22aa93ba7 100644 --- a/services/alb/model_certificate_config.go +++ b/services/alb/model_certificate_config.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -39,7 +39,7 @@ func setCertificateConfigGetCertificateIdsAttributeType(arg *CertificateConfigGe // CertificateConfig struct for CertificateConfig type CertificateConfig struct { - // Certificate IDs for TLS termination + // Certificate IDs for TLS termination. CertificateIds CertificateConfigGetCertificateIdsAttributeType `json:"certificateIds,omitempty"` } diff --git a/services/alb/model_cookie_persistence.go b/services/alb/model_cookie_persistence.go index b5ab16cf2..4346312e3 100644 --- a/services/alb/model_cookie_persistence.go +++ b/services/alb/model_cookie_persistence.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_create_credentials_payload.go b/services/alb/model_create_credentials_payload.go index b7f74d3f2..5617211c2 100644 --- a/services/alb/model_create_credentials_payload.go +++ b/services/alb/model_create_credentials_payload.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_create_credentials_response.go b/services/alb/model_create_credentials_response.go index f06220e2e..8b1cd8f54 100644 --- a/services/alb/model_create_credentials_response.go +++ b/services/alb/model_create_credentials_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_create_load_balancer_payload.go b/services/alb/model_create_load_balancer_payload.go index cad18fecf..62c1482cb 100644 --- a/services/alb/model_create_load_balancer_payload.go +++ b/services/alb/model_create_load_balancer_payload.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -280,7 +280,7 @@ type CreateLoadBalancerPayload struct { PlanId CreateLoadBalancerPayloadGetPlanIdAttributeType `json:"planId,omitempty"` // Transient private application load balancer IP address that can change any time. PrivateAddress CreateLoadBalancerPayloadGetPrivateAddressAttributeType `json:"privateAddress,omitempty"` - // Region of the LoadBalancer + // Region of the LoadBalancer. Region CreateLoadBalancerPayloadGetRegionAttributeType `json:"region,omitempty"` Status CreateLoadBalancerPayloadGetStatusAttributeType `json:"status,omitempty"` // List of all target pools which will be used in the application load balancer. Limited to 20. diff --git a/services/alb/model_credentials_response.go b/services/alb/model_credentials_response.go index 98c80816e..f60183e24 100644 --- a/services/alb/model_credentials_response.go +++ b/services/alb/model_credentials_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_get_credentials_response.go b/services/alb/model_get_credentials_response.go index da5b076b0..d9bf01acd 100644 --- a/services/alb/model_get_credentials_response.go +++ b/services/alb/model_get_credentials_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_get_quota_response.go b/services/alb/model_get_quota_response.go index 0a3a405d0..455f2dcde 100644 --- a/services/alb/model_get_quota_response.go +++ b/services/alb/model_get_quota_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_google_protobuf_any.go b/services/alb/model_google_protobuf_any.go index 10ffa6ee7..c2b7d3f58 100644 --- a/services/alb/model_google_protobuf_any.go +++ b/services/alb/model_google_protobuf_any.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_header.go b/services/alb/model_header.go deleted file mode 100644 index 34f36d5ef..000000000 --- a/services/alb/model_header.go +++ /dev/null @@ -1,178 +0,0 @@ -/* -Application Load Balancer API - -This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. - -API version: 2beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package alb - -import ( - "encoding/json" -) - -// checks if the Header type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Header{} - -/* - types and functions for exactMatch -*/ - -// isNotNullableString -type HeaderGetExactMatchAttributeType = *string - -func getHeaderGetExactMatchAttributeTypeOk(arg HeaderGetExactMatchAttributeType) (ret HeaderGetExactMatchRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setHeaderGetExactMatchAttributeType(arg *HeaderGetExactMatchAttributeType, val HeaderGetExactMatchRetType) { - *arg = &val -} - -type HeaderGetExactMatchArgType = string -type HeaderGetExactMatchRetType = string - -/* - types and functions for name -*/ - -// isNotNullableString -type HeaderGetNameAttributeType = *string - -func getHeaderGetNameAttributeTypeOk(arg HeaderGetNameAttributeType) (ret HeaderGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setHeaderGetNameAttributeType(arg *HeaderGetNameAttributeType, val HeaderGetNameRetType) { - *arg = &val -} - -type HeaderGetNameArgType = string -type HeaderGetNameRetType = string - -// Header struct for Header -type Header struct { - // Exact match for the header value. - ExactMatch HeaderGetExactMatchAttributeType `json:"exactMatch,omitempty"` - // Header name. - Name HeaderGetNameAttributeType `json:"name,omitempty"` -} - -// NewHeader instantiates a new Header object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHeader() *Header { - this := Header{} - return &this -} - -// NewHeaderWithDefaults instantiates a new Header object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHeaderWithDefaults() *Header { - this := Header{} - return &this -} - -// GetExactMatch returns the ExactMatch field value if set, zero value otherwise. -func (o *Header) GetExactMatch() (res HeaderGetExactMatchRetType) { - res, _ = o.GetExactMatchOk() - return -} - -// GetExactMatchOk returns a tuple with the ExactMatch field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Header) GetExactMatchOk() (ret HeaderGetExactMatchRetType, ok bool) { - return getHeaderGetExactMatchAttributeTypeOk(o.ExactMatch) -} - -// HasExactMatch returns a boolean if a field has been set. -func (o *Header) HasExactMatch() bool { - _, ok := o.GetExactMatchOk() - return ok -} - -// SetExactMatch gets a reference to the given string and assigns it to the ExactMatch field. -func (o *Header) SetExactMatch(v HeaderGetExactMatchRetType) { - setHeaderGetExactMatchAttributeType(&o.ExactMatch, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *Header) GetName() (res HeaderGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Header) GetNameOk() (ret HeaderGetNameRetType, ok bool) { - return getHeaderGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -func (o *Header) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *Header) SetName(v HeaderGetNameRetType) { - setHeaderGetNameAttributeType(&o.Name, v) -} - -func (o Header) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getHeaderGetExactMatchAttributeTypeOk(o.ExactMatch); ok { - toSerialize["ExactMatch"] = val - } - if val, ok := getHeaderGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - return toSerialize, nil -} - -type NullableHeader struct { - value *Header - isSet bool -} - -func (v NullableHeader) Get() *Header { - return v.value -} - -func (v *NullableHeader) Set(val *Header) { - v.value = val - v.isSet = true -} - -func (v NullableHeader) IsSet() bool { - return v.isSet -} - -func (v *NullableHeader) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHeader(val *Header) *NullableHeader { - return &NullableHeader{value: val, isSet: true} -} - -func (v NullableHeader) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHeader) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/alb/model_host_config.go b/services/alb/model_host_config.go new file mode 100644 index 000000000..8599578d6 --- /dev/null +++ b/services/alb/model_host_config.go @@ -0,0 +1,177 @@ +/* +Application Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2beta2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package alb + +import ( + "encoding/json" +) + +// checks if the HostConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HostConfig{} + +/* + types and functions for host +*/ + +// isNotNullableString +type HostConfigGetHostAttributeType = *string + +func getHostConfigGetHostAttributeTypeOk(arg HostConfigGetHostAttributeType) (ret HostConfigGetHostRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setHostConfigGetHostAttributeType(arg *HostConfigGetHostAttributeType, val HostConfigGetHostRetType) { + *arg = &val +} + +type HostConfigGetHostArgType = string +type HostConfigGetHostRetType = string + +/* + types and functions for rules +*/ + +// isArray +type HostConfigGetRulesAttributeType = *[]Rule +type HostConfigGetRulesArgType = []Rule +type HostConfigGetRulesRetType = []Rule + +func getHostConfigGetRulesAttributeTypeOk(arg HostConfigGetRulesAttributeType) (ret HostConfigGetRulesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setHostConfigGetRulesAttributeType(arg *HostConfigGetRulesAttributeType, val HostConfigGetRulesRetType) { + *arg = &val +} + +// HostConfig struct for HostConfig +type HostConfig struct { + // Hostname to match. Supports wildcards (e.g. *.example.com). + Host HostConfigGetHostAttributeType `json:"host,omitempty"` + // Routing rules under the specified host, matched by path prefix. + Rules HostConfigGetRulesAttributeType `json:"rules,omitempty"` +} + +// NewHostConfig instantiates a new HostConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHostConfig() *HostConfig { + this := HostConfig{} + return &this +} + +// NewHostConfigWithDefaults instantiates a new HostConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHostConfigWithDefaults() *HostConfig { + this := HostConfig{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *HostConfig) GetHost() (res HostConfigGetHostRetType) { + res, _ = o.GetHostOk() + return +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HostConfig) GetHostOk() (ret HostConfigGetHostRetType, ok bool) { + return getHostConfigGetHostAttributeTypeOk(o.Host) +} + +// HasHost returns a boolean if a field has been set. +func (o *HostConfig) HasHost() bool { + _, ok := o.GetHostOk() + return ok +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *HostConfig) SetHost(v HostConfigGetHostRetType) { + setHostConfigGetHostAttributeType(&o.Host, v) +} + +// GetRules returns the Rules field value if set, zero value otherwise. +func (o *HostConfig) GetRules() (res HostConfigGetRulesRetType) { + res, _ = o.GetRulesOk() + return +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HostConfig) GetRulesOk() (ret HostConfigGetRulesRetType, ok bool) { + return getHostConfigGetRulesAttributeTypeOk(o.Rules) +} + +// HasRules returns a boolean if a field has been set. +func (o *HostConfig) HasRules() bool { + _, ok := o.GetRulesOk() + return ok +} + +// SetRules gets a reference to the given []Rule and assigns it to the Rules field. +func (o *HostConfig) SetRules(v HostConfigGetRulesRetType) { + setHostConfigGetRulesAttributeType(&o.Rules, v) +} + +func (o HostConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getHostConfigGetHostAttributeTypeOk(o.Host); ok { + toSerialize["Host"] = val + } + if val, ok := getHostConfigGetRulesAttributeTypeOk(o.Rules); ok { + toSerialize["Rules"] = val + } + return toSerialize, nil +} + +type NullableHostConfig struct { + value *HostConfig + isSet bool +} + +func (v NullableHostConfig) Get() *HostConfig { + return v.value +} + +func (v *NullableHostConfig) Set(val *HostConfig) { + v.value = val + v.isSet = true +} + +func (v NullableHostConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableHostConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHostConfig(val *HostConfig) *NullableHostConfig { + return &NullableHostConfig{value: val, isSet: true} +} + +func (v NullableHostConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHostConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/alb/model_http_config.go b/services/alb/model_http_config.go deleted file mode 100644 index d42752aae..000000000 --- a/services/alb/model_http_config.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -Application Load Balancer API - -This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. - -API version: 2beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package alb - -import ( - "encoding/json" -) - -// checks if the HTTPConfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPConfig{} - -/* - types and functions for subRules -*/ - -// isArray -type HTTPConfigGetSubRulesAttributeType = *[]SubRule -type HTTPConfigGetSubRulesArgType = []SubRule -type HTTPConfigGetSubRulesRetType = []SubRule - -func getHTTPConfigGetSubRulesAttributeTypeOk(arg HTTPConfigGetSubRulesAttributeType) (ret HTTPConfigGetSubRulesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setHTTPConfigGetSubRulesAttributeType(arg *HTTPConfigGetSubRulesAttributeType, val HTTPConfigGetSubRulesRetType) { - *arg = &val -} - -// HTTPConfig struct for HTTPConfig -type HTTPConfig struct { - SubRules HTTPConfigGetSubRulesAttributeType `json:"subRules,omitempty"` -} - -// NewHTTPConfig instantiates a new HTTPConfig object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPConfig() *HTTPConfig { - this := HTTPConfig{} - return &this -} - -// NewHTTPConfigWithDefaults instantiates a new HTTPConfig object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPConfigWithDefaults() *HTTPConfig { - this := HTTPConfig{} - return &this -} - -// GetSubRules returns the SubRules field value if set, zero value otherwise. -func (o *HTTPConfig) GetSubRules() (res HTTPConfigGetSubRulesRetType) { - res, _ = o.GetSubRulesOk() - return -} - -// GetSubRulesOk returns a tuple with the SubRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPConfig) GetSubRulesOk() (ret HTTPConfigGetSubRulesRetType, ok bool) { - return getHTTPConfigGetSubRulesAttributeTypeOk(o.SubRules) -} - -// HasSubRules returns a boolean if a field has been set. -func (o *HTTPConfig) HasSubRules() bool { - _, ok := o.GetSubRulesOk() - return ok -} - -// SetSubRules gets a reference to the given []SubRule and assigns it to the SubRules field. -func (o *HTTPConfig) SetSubRules(v HTTPConfigGetSubRulesRetType) { - setHTTPConfigGetSubRulesAttributeType(&o.SubRules, v) -} - -func (o HTTPConfig) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getHTTPConfigGetSubRulesAttributeTypeOk(o.SubRules); ok { - toSerialize["SubRules"] = val - } - return toSerialize, nil -} - -type NullableHTTPConfig struct { - value *HTTPConfig - isSet bool -} - -func (v NullableHTTPConfig) Get() *HTTPConfig { - return v.value -} - -func (v *NullableHTTPConfig) Set(val *HTTPConfig) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPConfig) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPConfig) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPConfig(val *HTTPConfig) *NullableHTTPConfig { - return &NullableHTTPConfig{value: val, isSet: true} -} - -func (v NullableHTTPConfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPConfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/alb/model_http_header.go b/services/alb/model_http_header.go new file mode 100644 index 000000000..e144dfeef --- /dev/null +++ b/services/alb/model_http_header.go @@ -0,0 +1,178 @@ +/* +Application Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2beta2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package alb + +import ( + "encoding/json" +) + +// checks if the HttpHeader type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HttpHeader{} + +/* + types and functions for exactMatch +*/ + +// isNotNullableString +type HttpHeaderGetExactMatchAttributeType = *string + +func getHttpHeaderGetExactMatchAttributeTypeOk(arg HttpHeaderGetExactMatchAttributeType) (ret HttpHeaderGetExactMatchRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setHttpHeaderGetExactMatchAttributeType(arg *HttpHeaderGetExactMatchAttributeType, val HttpHeaderGetExactMatchRetType) { + *arg = &val +} + +type HttpHeaderGetExactMatchArgType = string +type HttpHeaderGetExactMatchRetType = string + +/* + types and functions for name +*/ + +// isNotNullableString +type HttpHeaderGetNameAttributeType = *string + +func getHttpHeaderGetNameAttributeTypeOk(arg HttpHeaderGetNameAttributeType) (ret HttpHeaderGetNameRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setHttpHeaderGetNameAttributeType(arg *HttpHeaderGetNameAttributeType, val HttpHeaderGetNameRetType) { + *arg = &val +} + +type HttpHeaderGetNameArgType = string +type HttpHeaderGetNameRetType = string + +// HttpHeader struct for HttpHeader +type HttpHeader struct { + // Exact match for the header value. + ExactMatch HttpHeaderGetExactMatchAttributeType `json:"exactMatch,omitempty"` + // Header name. + Name HttpHeaderGetNameAttributeType `json:"name,omitempty"` +} + +// NewHttpHeader instantiates a new HttpHeader object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHttpHeader() *HttpHeader { + this := HttpHeader{} + return &this +} + +// NewHttpHeaderWithDefaults instantiates a new HttpHeader object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHttpHeaderWithDefaults() *HttpHeader { + this := HttpHeader{} + return &this +} + +// GetExactMatch returns the ExactMatch field value if set, zero value otherwise. +func (o *HttpHeader) GetExactMatch() (res HttpHeaderGetExactMatchRetType) { + res, _ = o.GetExactMatchOk() + return +} + +// GetExactMatchOk returns a tuple with the ExactMatch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HttpHeader) GetExactMatchOk() (ret HttpHeaderGetExactMatchRetType, ok bool) { + return getHttpHeaderGetExactMatchAttributeTypeOk(o.ExactMatch) +} + +// HasExactMatch returns a boolean if a field has been set. +func (o *HttpHeader) HasExactMatch() bool { + _, ok := o.GetExactMatchOk() + return ok +} + +// SetExactMatch gets a reference to the given string and assigns it to the ExactMatch field. +func (o *HttpHeader) SetExactMatch(v HttpHeaderGetExactMatchRetType) { + setHttpHeaderGetExactMatchAttributeType(&o.ExactMatch, v) +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *HttpHeader) GetName() (res HttpHeaderGetNameRetType) { + res, _ = o.GetNameOk() + return +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HttpHeader) GetNameOk() (ret HttpHeaderGetNameRetType, ok bool) { + return getHttpHeaderGetNameAttributeTypeOk(o.Name) +} + +// HasName returns a boolean if a field has been set. +func (o *HttpHeader) HasName() bool { + _, ok := o.GetNameOk() + return ok +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *HttpHeader) SetName(v HttpHeaderGetNameRetType) { + setHttpHeaderGetNameAttributeType(&o.Name, v) +} + +func (o HttpHeader) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getHttpHeaderGetExactMatchAttributeTypeOk(o.ExactMatch); ok { + toSerialize["ExactMatch"] = val + } + if val, ok := getHttpHeaderGetNameAttributeTypeOk(o.Name); ok { + toSerialize["Name"] = val + } + return toSerialize, nil +} + +type NullableHttpHeader struct { + value *HttpHeader + isSet bool +} + +func (v NullableHttpHeader) Get() *HttpHeader { + return v.value +} + +func (v *NullableHttpHeader) Set(val *HttpHeader) { + v.value = val + v.isSet = true +} + +func (v NullableHttpHeader) IsSet() bool { + return v.isSet +} + +func (v *NullableHttpHeader) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHttpHeader(val *HttpHeader) *NullableHttpHeader { + return &NullableHttpHeader{value: val, isSet: true} +} + +func (v NullableHttpHeader) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHttpHeader) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/alb/model_http_health_checks.go b/services/alb/model_http_health_checks.go index 3636dc1a4..a13821e23 100644 --- a/services/alb/model_http_health_checks.go +++ b/services/alb/model_http_health_checks.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_list_credentials_response.go b/services/alb/model_list_credentials_response.go index ed69a1082..abe2721d3 100644 --- a/services/alb/model_list_credentials_response.go +++ b/services/alb/model_list_credentials_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_list_load_balancers_response.go b/services/alb/model_list_load_balancers_response.go index 5b769c206..1829cf391 100644 --- a/services/alb/model_list_load_balancers_response.go +++ b/services/alb/model_list_load_balancers_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_list_plans_response.go b/services/alb/model_list_plans_response.go index 6bb6f1566..7966a0696 100644 --- a/services/alb/model_list_plans_response.go +++ b/services/alb/model_list_plans_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_listener.go b/services/alb/model_listener.go index 3d4d9c3b4..7eabe037d 100644 --- a/services/alb/model_listener.go +++ b/services/alb/model_listener.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,35 +17,14 @@ import ( // checks if the Listener type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Listener{} -/* - types and functions for displayName -*/ - -// isNotNullableString -type ListenerGetDisplayNameAttributeType = *string - -func getListenerGetDisplayNameAttributeTypeOk(arg ListenerGetDisplayNameAttributeType) (ret ListenerGetDisplayNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setListenerGetDisplayNameAttributeType(arg *ListenerGetDisplayNameAttributeType, val ListenerGetDisplayNameRetType) { - *arg = &val -} - -type ListenerGetDisplayNameArgType = string -type ListenerGetDisplayNameRetType = string - /* types and functions for http */ -// isFreeform -type ListenerGetHttpAttributeType = *map[string]interface{} -type ListenerGetHttpArgType = map[string]interface{} -type ListenerGetHttpRetType = map[string]interface{} +// isModel +type ListenerGetHttpAttributeType = *ProtocolOptionsHTTP +type ListenerGetHttpArgType = ProtocolOptionsHTTP +type ListenerGetHttpRetType = ProtocolOptionsHTTP func getListenerGetHttpAttributeTypeOk(arg ListenerGetHttpAttributeType) (ret ListenerGetHttpRetType, ok bool) { if arg == nil { @@ -139,40 +118,17 @@ func setListenerGetProtocolAttributeType(arg *ListenerGetProtocolAttributeType, *arg = &val } -/* - types and functions for rules -*/ - -// isArray -type ListenerGetRulesAttributeType = *[]Rule -type ListenerGetRulesArgType = []Rule -type ListenerGetRulesRetType = []Rule - -func getListenerGetRulesAttributeTypeOk(arg ListenerGetRulesAttributeType) (ret ListenerGetRulesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setListenerGetRulesAttributeType(arg *ListenerGetRulesAttributeType, val ListenerGetRulesRetType) { - *arg = &val -} - // Listener struct for Listener type Listener struct { - DisplayName ListenerGetDisplayNameAttributeType `json:"displayName,omitempty"` - Http ListenerGetHttpAttributeType `json:"http,omitempty"` - Https ListenerGetHttpsAttributeType `json:"https,omitempty"` - // Will be used to reference a listener and will replace display name in the future. Currently uses - as the name if no display name is given. + Http ListenerGetHttpAttributeType `json:"http,omitempty"` + Https ListenerGetHttpsAttributeType `json:"https,omitempty"` + // Unique, system-generated identifier for the listener. It is derived from the protocol and port. Name ListenerGetNameAttributeType `json:"name,omitempty"` - // Port number where we listen for traffic + // Port number on which the listener receives incoming traffic. // Can be cast to int32 without loss of precision. Port ListenerGetPortAttributeType `json:"port,omitempty"` // Protocol is the highest network protocol we understand to load balance. Currently PROTOCOL_HTTP and PROTOCOL_HTTPS are supported. Protocol ListenerGetProtocolAttributeType `json:"protocol,omitempty"` - // Rules define the routing parameters for the HTTP and HTTPS listeners. - Rules ListenerGetRulesAttributeType `json:"rules,omitempty"` } // NewListener instantiates a new Listener object @@ -192,29 +148,6 @@ func NewListenerWithDefaults() *Listener { return &this } -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *Listener) GetDisplayName() (res ListenerGetDisplayNameRetType) { - res, _ = o.GetDisplayNameOk() - return -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Listener) GetDisplayNameOk() (ret ListenerGetDisplayNameRetType, ok bool) { - return getListenerGetDisplayNameAttributeTypeOk(o.DisplayName) -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *Listener) HasDisplayName() bool { - _, ok := o.GetDisplayNameOk() - return ok -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *Listener) SetDisplayName(v ListenerGetDisplayNameRetType) { - setListenerGetDisplayNameAttributeType(&o.DisplayName, v) -} - // GetHttp returns the Http field value if set, zero value otherwise. func (o *Listener) GetHttp() (res ListenerGetHttpRetType) { res, _ = o.GetHttpOk() @@ -233,7 +166,7 @@ func (o *Listener) HasHttp() bool { return ok } -// SetHttp gets a reference to the given map[string]interface{} and assigns it to the Http field. +// SetHttp gets a reference to the given ProtocolOptionsHTTP and assigns it to the Http field. func (o *Listener) SetHttp(v ListenerGetHttpRetType) { setListenerGetHttpAttributeType(&o.Http, v) } @@ -330,34 +263,8 @@ func (o *Listener) SetProtocol(v ListenerGetProtocolRetType) { setListenerGetProtocolAttributeType(&o.Protocol, v) } -// GetRules returns the Rules field value if set, zero value otherwise. -func (o *Listener) GetRules() (res ListenerGetRulesRetType) { - res, _ = o.GetRulesOk() - return -} - -// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Listener) GetRulesOk() (ret ListenerGetRulesRetType, ok bool) { - return getListenerGetRulesAttributeTypeOk(o.Rules) -} - -// HasRules returns a boolean if a field has been set. -func (o *Listener) HasRules() bool { - _, ok := o.GetRulesOk() - return ok -} - -// SetRules gets a reference to the given []Rule and assigns it to the Rules field. -func (o *Listener) SetRules(v ListenerGetRulesRetType) { - setListenerGetRulesAttributeType(&o.Rules, v) -} - func (o Listener) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if val, ok := getListenerGetDisplayNameAttributeTypeOk(o.DisplayName); ok { - toSerialize["DisplayName"] = val - } if val, ok := getListenerGetHttpAttributeTypeOk(o.Http); ok { toSerialize["Http"] = val } @@ -373,9 +280,6 @@ func (o Listener) ToMap() (map[string]interface{}, error) { if val, ok := getListenerGetProtocolAttributeTypeOk(o.Protocol); ok { toSerialize["Protocol"] = val } - if val, ok := getListenerGetRulesAttributeTypeOk(o.Rules); ok { - toSerialize["Rules"] = val - } return toSerialize, nil } diff --git a/services/alb/model_load_balancer.go b/services/alb/model_load_balancer.go index 484a54b55..555460bc4 100644 --- a/services/alb/model_load_balancer.go +++ b/services/alb/model_load_balancer.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -280,7 +280,7 @@ type LoadBalancer struct { PlanId LoadBalancerGetPlanIdAttributeType `json:"planId,omitempty"` // Transient private application load balancer IP address that can change any time. PrivateAddress LoadBalancerGetPrivateAddressAttributeType `json:"privateAddress,omitempty"` - // Region of the LoadBalancer + // Region of the LoadBalancer. Region LoadBalancerGetRegionAttributeType `json:"region,omitempty"` Status LoadBalancerGetStatusAttributeType `json:"status,omitempty"` // List of all target pools which will be used in the application load balancer. Limited to 20. diff --git a/services/alb/model_load_balancer_error.go b/services/alb/model_load_balancer_error.go index b8b1bb18c..290a5bb1b 100644 --- a/services/alb/model_load_balancer_error.go +++ b/services/alb/model_load_balancer_error.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_load_balancer_options.go b/services/alb/model_load_balancer_options.go index a6cf97c8c..c000601bf 100644 --- a/services/alb/model_load_balancer_options.go +++ b/services/alb/model_load_balancer_options.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_loadbalancer_option_access_control.go b/services/alb/model_loadbalancer_option_access_control.go index f0d2c652d..499f871bb 100644 --- a/services/alb/model_loadbalancer_option_access_control.go +++ b/services/alb/model_loadbalancer_option_access_control.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_loadbalancer_option_logs.go b/services/alb/model_loadbalancer_option_logs.go index acd6758a5..c10347d0d 100644 --- a/services/alb/model_loadbalancer_option_logs.go +++ b/services/alb/model_loadbalancer_option_logs.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_loadbalancer_option_metrics.go b/services/alb/model_loadbalancer_option_metrics.go index 9b4bdf9f8..5e0272a55 100644 --- a/services/alb/model_loadbalancer_option_metrics.go +++ b/services/alb/model_loadbalancer_option_metrics.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_loadbalancer_option_observability.go b/services/alb/model_loadbalancer_option_observability.go index 98704fa64..d6ac697a5 100644 --- a/services/alb/model_loadbalancer_option_observability.go +++ b/services/alb/model_loadbalancer_option_observability.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_network.go b/services/alb/model_network.go index 5ba864c40..c65c5e474 100644 --- a/services/alb/model_network.go +++ b/services/alb/model_network.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_plan_details.go b/services/alb/model_plan_details.go index 8727f45cf..5b89aca7e 100644 --- a/services/alb/model_plan_details.go +++ b/services/alb/model_plan_details.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_protocol_options_http.go b/services/alb/model_protocol_options_http.go new file mode 100644 index 000000000..3bf78379b --- /dev/null +++ b/services/alb/model_protocol_options_http.go @@ -0,0 +1,128 @@ +/* +Application Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2beta2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package alb + +import ( + "encoding/json" +) + +// checks if the ProtocolOptionsHTTP type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProtocolOptionsHTTP{} + +/* + types and functions for hosts +*/ + +// isArray +type ProtocolOptionsHTTPGetHostsAttributeType = *[]HostConfig +type ProtocolOptionsHTTPGetHostsArgType = []HostConfig +type ProtocolOptionsHTTPGetHostsRetType = []HostConfig + +func getProtocolOptionsHTTPGetHostsAttributeTypeOk(arg ProtocolOptionsHTTPGetHostsAttributeType) (ret ProtocolOptionsHTTPGetHostsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setProtocolOptionsHTTPGetHostsAttributeType(arg *ProtocolOptionsHTTPGetHostsAttributeType, val ProtocolOptionsHTTPGetHostsRetType) { + *arg = &val +} + +// ProtocolOptionsHTTP struct for ProtocolOptionsHTTP +type ProtocolOptionsHTTP struct { + // Defines routing rules grouped by hostname. + Hosts ProtocolOptionsHTTPGetHostsAttributeType `json:"hosts,omitempty"` +} + +// NewProtocolOptionsHTTP instantiates a new ProtocolOptionsHTTP object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProtocolOptionsHTTP() *ProtocolOptionsHTTP { + this := ProtocolOptionsHTTP{} + return &this +} + +// NewProtocolOptionsHTTPWithDefaults instantiates a new ProtocolOptionsHTTP object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProtocolOptionsHTTPWithDefaults() *ProtocolOptionsHTTP { + this := ProtocolOptionsHTTP{} + return &this +} + +// GetHosts returns the Hosts field value if set, zero value otherwise. +func (o *ProtocolOptionsHTTP) GetHosts() (res ProtocolOptionsHTTPGetHostsRetType) { + res, _ = o.GetHostsOk() + return +} + +// GetHostsOk returns a tuple with the Hosts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtocolOptionsHTTP) GetHostsOk() (ret ProtocolOptionsHTTPGetHostsRetType, ok bool) { + return getProtocolOptionsHTTPGetHostsAttributeTypeOk(o.Hosts) +} + +// HasHosts returns a boolean if a field has been set. +func (o *ProtocolOptionsHTTP) HasHosts() bool { + _, ok := o.GetHostsOk() + return ok +} + +// SetHosts gets a reference to the given []HostConfig and assigns it to the Hosts field. +func (o *ProtocolOptionsHTTP) SetHosts(v ProtocolOptionsHTTPGetHostsRetType) { + setProtocolOptionsHTTPGetHostsAttributeType(&o.Hosts, v) +} + +func (o ProtocolOptionsHTTP) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getProtocolOptionsHTTPGetHostsAttributeTypeOk(o.Hosts); ok { + toSerialize["Hosts"] = val + } + return toSerialize, nil +} + +type NullableProtocolOptionsHTTP struct { + value *ProtocolOptionsHTTP + isSet bool +} + +func (v NullableProtocolOptionsHTTP) Get() *ProtocolOptionsHTTP { + return v.value +} + +func (v *NullableProtocolOptionsHTTP) Set(val *ProtocolOptionsHTTP) { + v.value = val + v.isSet = true +} + +func (v NullableProtocolOptionsHTTP) IsSet() bool { + return v.isSet +} + +func (v *NullableProtocolOptionsHTTP) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProtocolOptionsHTTP(val *ProtocolOptionsHTTP) *NullableProtocolOptionsHTTP { + return &NullableProtocolOptionsHTTP{value: val, isSet: true} +} + +func (v NullableProtocolOptionsHTTP) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProtocolOptionsHTTP) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/alb/model_protocol_options_https.go b/services/alb/model_protocol_options_https.go index 9d6180702..77492f339 100644 --- a/services/alb/model_protocol_options_https.go +++ b/services/alb/model_protocol_options_https.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_query_parameter.go b/services/alb/model_query_parameter.go new file mode 100644 index 000000000..956f00f0e --- /dev/null +++ b/services/alb/model_query_parameter.go @@ -0,0 +1,178 @@ +/* +Application Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2beta2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package alb + +import ( + "encoding/json" +) + +// checks if the QueryParameter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &QueryParameter{} + +/* + types and functions for exactMatch +*/ + +// isNotNullableString +type QueryParameterGetExactMatchAttributeType = *string + +func getQueryParameterGetExactMatchAttributeTypeOk(arg QueryParameterGetExactMatchAttributeType) (ret QueryParameterGetExactMatchRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setQueryParameterGetExactMatchAttributeType(arg *QueryParameterGetExactMatchAttributeType, val QueryParameterGetExactMatchRetType) { + *arg = &val +} + +type QueryParameterGetExactMatchArgType = string +type QueryParameterGetExactMatchRetType = string + +/* + types and functions for name +*/ + +// isNotNullableString +type QueryParameterGetNameAttributeType = *string + +func getQueryParameterGetNameAttributeTypeOk(arg QueryParameterGetNameAttributeType) (ret QueryParameterGetNameRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setQueryParameterGetNameAttributeType(arg *QueryParameterGetNameAttributeType, val QueryParameterGetNameRetType) { + *arg = &val +} + +type QueryParameterGetNameArgType = string +type QueryParameterGetNameRetType = string + +// QueryParameter struct for QueryParameter +type QueryParameter struct { + // Exact match for the parameter value. + ExactMatch QueryParameterGetExactMatchAttributeType `json:"exactMatch,omitempty"` + // Parameter name. + Name QueryParameterGetNameAttributeType `json:"name,omitempty"` +} + +// NewQueryParameter instantiates a new QueryParameter object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewQueryParameter() *QueryParameter { + this := QueryParameter{} + return &this +} + +// NewQueryParameterWithDefaults instantiates a new QueryParameter object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewQueryParameterWithDefaults() *QueryParameter { + this := QueryParameter{} + return &this +} + +// GetExactMatch returns the ExactMatch field value if set, zero value otherwise. +func (o *QueryParameter) GetExactMatch() (res QueryParameterGetExactMatchRetType) { + res, _ = o.GetExactMatchOk() + return +} + +// GetExactMatchOk returns a tuple with the ExactMatch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryParameter) GetExactMatchOk() (ret QueryParameterGetExactMatchRetType, ok bool) { + return getQueryParameterGetExactMatchAttributeTypeOk(o.ExactMatch) +} + +// HasExactMatch returns a boolean if a field has been set. +func (o *QueryParameter) HasExactMatch() bool { + _, ok := o.GetExactMatchOk() + return ok +} + +// SetExactMatch gets a reference to the given string and assigns it to the ExactMatch field. +func (o *QueryParameter) SetExactMatch(v QueryParameterGetExactMatchRetType) { + setQueryParameterGetExactMatchAttributeType(&o.ExactMatch, v) +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *QueryParameter) GetName() (res QueryParameterGetNameRetType) { + res, _ = o.GetNameOk() + return +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryParameter) GetNameOk() (ret QueryParameterGetNameRetType, ok bool) { + return getQueryParameterGetNameAttributeTypeOk(o.Name) +} + +// HasName returns a boolean if a field has been set. +func (o *QueryParameter) HasName() bool { + _, ok := o.GetNameOk() + return ok +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *QueryParameter) SetName(v QueryParameterGetNameRetType) { + setQueryParameterGetNameAttributeType(&o.Name, v) +} + +func (o QueryParameter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getQueryParameterGetExactMatchAttributeTypeOk(o.ExactMatch); ok { + toSerialize["ExactMatch"] = val + } + if val, ok := getQueryParameterGetNameAttributeTypeOk(o.Name); ok { + toSerialize["Name"] = val + } + return toSerialize, nil +} + +type NullableQueryParameter struct { + value *QueryParameter + isSet bool +} + +func (v NullableQueryParameter) Get() *QueryParameter { + return v.value +} + +func (v *NullableQueryParameter) Set(val *QueryParameter) { + v.value = val + v.isSet = true +} + +func (v NullableQueryParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableQueryParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQueryParameter(val *QueryParameter) *NullableQueryParameter { + return &NullableQueryParameter{value: val, isSet: true} +} + +func (v NullableQueryParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQueryParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/alb/model_query_parameters.go b/services/alb/model_query_parameters.go deleted file mode 100644 index a3cc4f01f..000000000 --- a/services/alb/model_query_parameters.go +++ /dev/null @@ -1,178 +0,0 @@ -/* -Application Load Balancer API - -This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. - -API version: 2beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package alb - -import ( - "encoding/json" -) - -// checks if the QueryParameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &QueryParameters{} - -/* - types and functions for exactMatch -*/ - -// isNotNullableString -type QueryParametersGetExactMatchAttributeType = *string - -func getQueryParametersGetExactMatchAttributeTypeOk(arg QueryParametersGetExactMatchAttributeType) (ret QueryParametersGetExactMatchRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setQueryParametersGetExactMatchAttributeType(arg *QueryParametersGetExactMatchAttributeType, val QueryParametersGetExactMatchRetType) { - *arg = &val -} - -type QueryParametersGetExactMatchArgType = string -type QueryParametersGetExactMatchRetType = string - -/* - types and functions for name -*/ - -// isNotNullableString -type QueryParametersGetNameAttributeType = *string - -func getQueryParametersGetNameAttributeTypeOk(arg QueryParametersGetNameAttributeType) (ret QueryParametersGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setQueryParametersGetNameAttributeType(arg *QueryParametersGetNameAttributeType, val QueryParametersGetNameRetType) { - *arg = &val -} - -type QueryParametersGetNameArgType = string -type QueryParametersGetNameRetType = string - -// QueryParameters struct for QueryParameters -type QueryParameters struct { - // Exact match for the parameter value - ExactMatch QueryParametersGetExactMatchAttributeType `json:"exactMatch,omitempty"` - // Parameter name - Name QueryParametersGetNameAttributeType `json:"name,omitempty"` -} - -// NewQueryParameters instantiates a new QueryParameters object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewQueryParameters() *QueryParameters { - this := QueryParameters{} - return &this -} - -// NewQueryParametersWithDefaults instantiates a new QueryParameters object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewQueryParametersWithDefaults() *QueryParameters { - this := QueryParameters{} - return &this -} - -// GetExactMatch returns the ExactMatch field value if set, zero value otherwise. -func (o *QueryParameters) GetExactMatch() (res QueryParametersGetExactMatchRetType) { - res, _ = o.GetExactMatchOk() - return -} - -// GetExactMatchOk returns a tuple with the ExactMatch field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *QueryParameters) GetExactMatchOk() (ret QueryParametersGetExactMatchRetType, ok bool) { - return getQueryParametersGetExactMatchAttributeTypeOk(o.ExactMatch) -} - -// HasExactMatch returns a boolean if a field has been set. -func (o *QueryParameters) HasExactMatch() bool { - _, ok := o.GetExactMatchOk() - return ok -} - -// SetExactMatch gets a reference to the given string and assigns it to the ExactMatch field. -func (o *QueryParameters) SetExactMatch(v QueryParametersGetExactMatchRetType) { - setQueryParametersGetExactMatchAttributeType(&o.ExactMatch, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *QueryParameters) GetName() (res QueryParametersGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *QueryParameters) GetNameOk() (ret QueryParametersGetNameRetType, ok bool) { - return getQueryParametersGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -func (o *QueryParameters) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *QueryParameters) SetName(v QueryParametersGetNameRetType) { - setQueryParametersGetNameAttributeType(&o.Name, v) -} - -func (o QueryParameters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getQueryParametersGetExactMatchAttributeTypeOk(o.ExactMatch); ok { - toSerialize["ExactMatch"] = val - } - if val, ok := getQueryParametersGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - return toSerialize, nil -} - -type NullableQueryParameters struct { - value *QueryParameters - isSet bool -} - -func (v NullableQueryParameters) Get() *QueryParameters { - return v.value -} - -func (v *NullableQueryParameters) Set(val *QueryParameters) { - v.value = val - v.isSet = true -} - -func (v NullableQueryParameters) IsSet() bool { - return v.isSet -} - -func (v *NullableQueryParameters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQueryParameters(val *QueryParameters) *NullableQueryParameters { - return &NullableQueryParameters{value: val, isSet: true} -} - -func (v NullableQueryParameters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableQueryParameters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/alb/model_rule.go b/services/alb/model_rule.go index ddb1c60a4..5e5e1afe0 100644 --- a/services/alb/model_rule.go +++ b/services/alb/model_rule.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,51 +18,140 @@ import ( var _ MappedNullable = &Rule{} /* - types and functions for host + types and functions for cookiePersistence +*/ + +// isModel +type RuleGetCookiePersistenceAttributeType = *CookiePersistence +type RuleGetCookiePersistenceArgType = CookiePersistence +type RuleGetCookiePersistenceRetType = CookiePersistence + +func getRuleGetCookiePersistenceAttributeTypeOk(arg RuleGetCookiePersistenceAttributeType) (ret RuleGetCookiePersistenceRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setRuleGetCookiePersistenceAttributeType(arg *RuleGetCookiePersistenceAttributeType, val RuleGetCookiePersistenceRetType) { + *arg = &val +} + +/* + types and functions for headers +*/ + +// isArray +type RuleGetHeadersAttributeType = *[]HttpHeader +type RuleGetHeadersArgType = []HttpHeader +type RuleGetHeadersRetType = []HttpHeader + +func getRuleGetHeadersAttributeTypeOk(arg RuleGetHeadersAttributeType) (ret RuleGetHeadersRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setRuleGetHeadersAttributeType(arg *RuleGetHeadersAttributeType, val RuleGetHeadersRetType) { + *arg = &val +} + +/* + types and functions for pathPrefix */ // isNotNullableString -type RuleGetHostAttributeType = *string +type RuleGetPathPrefixAttributeType = *string -func getRuleGetHostAttributeTypeOk(arg RuleGetHostAttributeType) (ret RuleGetHostRetType, ok bool) { +func getRuleGetPathPrefixAttributeTypeOk(arg RuleGetPathPrefixAttributeType) (ret RuleGetPathPrefixRetType, ok bool) { if arg == nil { return ret, false } return *arg, true } -func setRuleGetHostAttributeType(arg *RuleGetHostAttributeType, val RuleGetHostRetType) { +func setRuleGetPathPrefixAttributeType(arg *RuleGetPathPrefixAttributeType, val RuleGetPathPrefixRetType) { *arg = &val } -type RuleGetHostArgType = string -type RuleGetHostRetType = string +type RuleGetPathPrefixArgType = string +type RuleGetPathPrefixRetType = string /* - types and functions for http + types and functions for queryParameters */ -// isModel -type RuleGetHttpAttributeType = *HTTPConfig -type RuleGetHttpArgType = HTTPConfig -type RuleGetHttpRetType = HTTPConfig +// isArray +type RuleGetQueryParametersAttributeType = *[]QueryParameter +type RuleGetQueryParametersArgType = []QueryParameter +type RuleGetQueryParametersRetType = []QueryParameter + +func getRuleGetQueryParametersAttributeTypeOk(arg RuleGetQueryParametersAttributeType) (ret RuleGetQueryParametersRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setRuleGetQueryParametersAttributeType(arg *RuleGetQueryParametersAttributeType, val RuleGetQueryParametersRetType) { + *arg = &val +} + +/* + types and functions for targetPool +*/ + +// isNotNullableString +type RuleGetTargetPoolAttributeType = *string + +func getRuleGetTargetPoolAttributeTypeOk(arg RuleGetTargetPoolAttributeType) (ret RuleGetTargetPoolRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setRuleGetTargetPoolAttributeType(arg *RuleGetTargetPoolAttributeType, val RuleGetTargetPoolRetType) { + *arg = &val +} + +type RuleGetTargetPoolArgType = string +type RuleGetTargetPoolRetType = string -func getRuleGetHttpAttributeTypeOk(arg RuleGetHttpAttributeType) (ret RuleGetHttpRetType, ok bool) { +/* + types and functions for webSocket +*/ + +// isBoolean +type RulegetWebSocketAttributeType = *bool +type RulegetWebSocketArgType = bool +type RulegetWebSocketRetType = bool + +func getRulegetWebSocketAttributeTypeOk(arg RulegetWebSocketAttributeType) (ret RulegetWebSocketRetType, ok bool) { if arg == nil { return ret, false } return *arg, true } -func setRuleGetHttpAttributeType(arg *RuleGetHttpAttributeType, val RuleGetHttpRetType) { +func setRulegetWebSocketAttributeType(arg *RulegetWebSocketAttributeType, val RulegetWebSocketRetType) { *arg = &val } // Rule struct for Rule type Rule struct { - // Host for the rule - Host RuleGetHostAttributeType `json:"host,omitempty"` - Http RuleGetHttpAttributeType `json:"http,omitempty"` + CookiePersistence RuleGetCookiePersistenceAttributeType `json:"cookiePersistence,omitempty"` + // Headers for the rule. + Headers RuleGetHeadersAttributeType `json:"headers,omitempty"` + // Path prefix for the rule. If empty or '/', it matches the root path. + PathPrefix RuleGetPathPrefixAttributeType `json:"pathPrefix,omitempty"` + // Query Parameters for the rule. + QueryParameters RuleGetQueryParametersAttributeType `json:"queryParameters,omitempty"` + // Reference target pool by target pool name. + TargetPool RuleGetTargetPoolAttributeType `json:"targetPool,omitempty"` + // If enabled, when client sends an HTTP request with and Upgrade header, indicating the desire to establish a Websocket connection, if backend server supports WebSocket, it responds with HTTP 101 status code, switching protocols from HTTP to WebSocket. Hence the client and the server can exchange data in real-time using one long-lived TCP connection. + WebSocket RulegetWebSocketAttributeType `json:"webSocket,omitempty"` } // NewRule instantiates a new Rule object @@ -82,59 +171,163 @@ func NewRuleWithDefaults() *Rule { return &this } -// GetHost returns the Host field value if set, zero value otherwise. -func (o *Rule) GetHost() (res RuleGetHostRetType) { - res, _ = o.GetHostOk() +// GetCookiePersistence returns the CookiePersistence field value if set, zero value otherwise. +func (o *Rule) GetCookiePersistence() (res RuleGetCookiePersistenceRetType) { + res, _ = o.GetCookiePersistenceOk() + return +} + +// GetCookiePersistenceOk returns a tuple with the CookiePersistence field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rule) GetCookiePersistenceOk() (ret RuleGetCookiePersistenceRetType, ok bool) { + return getRuleGetCookiePersistenceAttributeTypeOk(o.CookiePersistence) +} + +// HasCookiePersistence returns a boolean if a field has been set. +func (o *Rule) HasCookiePersistence() bool { + _, ok := o.GetCookiePersistenceOk() + return ok +} + +// SetCookiePersistence gets a reference to the given CookiePersistence and assigns it to the CookiePersistence field. +func (o *Rule) SetCookiePersistence(v RuleGetCookiePersistenceRetType) { + setRuleGetCookiePersistenceAttributeType(&o.CookiePersistence, v) +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *Rule) GetHeaders() (res RuleGetHeadersRetType) { + res, _ = o.GetHeadersOk() + return +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rule) GetHeadersOk() (ret RuleGetHeadersRetType, ok bool) { + return getRuleGetHeadersAttributeTypeOk(o.Headers) +} + +// HasHeaders returns a boolean if a field has been set. +func (o *Rule) HasHeaders() bool { + _, ok := o.GetHeadersOk() + return ok +} + +// SetHeaders gets a reference to the given []HttpHeader and assigns it to the Headers field. +func (o *Rule) SetHeaders(v RuleGetHeadersRetType) { + setRuleGetHeadersAttributeType(&o.Headers, v) +} + +// GetPathPrefix returns the PathPrefix field value if set, zero value otherwise. +func (o *Rule) GetPathPrefix() (res RuleGetPathPrefixRetType) { + res, _ = o.GetPathPrefixOk() return } -// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// GetPathPrefixOk returns a tuple with the PathPrefix field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rule) GetHostOk() (ret RuleGetHostRetType, ok bool) { - return getRuleGetHostAttributeTypeOk(o.Host) +func (o *Rule) GetPathPrefixOk() (ret RuleGetPathPrefixRetType, ok bool) { + return getRuleGetPathPrefixAttributeTypeOk(o.PathPrefix) } -// HasHost returns a boolean if a field has been set. -func (o *Rule) HasHost() bool { - _, ok := o.GetHostOk() +// HasPathPrefix returns a boolean if a field has been set. +func (o *Rule) HasPathPrefix() bool { + _, ok := o.GetPathPrefixOk() return ok } -// SetHost gets a reference to the given string and assigns it to the Host field. -func (o *Rule) SetHost(v RuleGetHostRetType) { - setRuleGetHostAttributeType(&o.Host, v) +// SetPathPrefix gets a reference to the given string and assigns it to the PathPrefix field. +func (o *Rule) SetPathPrefix(v RuleGetPathPrefixRetType) { + setRuleGetPathPrefixAttributeType(&o.PathPrefix, v) } -// GetHttp returns the Http field value if set, zero value otherwise. -func (o *Rule) GetHttp() (res RuleGetHttpRetType) { - res, _ = o.GetHttpOk() +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *Rule) GetQueryParameters() (res RuleGetQueryParametersRetType) { + res, _ = o.GetQueryParametersOk() return } -// GetHttpOk returns a tuple with the Http field value if set, nil otherwise +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rule) GetHttpOk() (ret RuleGetHttpRetType, ok bool) { - return getRuleGetHttpAttributeTypeOk(o.Http) +func (o *Rule) GetQueryParametersOk() (ret RuleGetQueryParametersRetType, ok bool) { + return getRuleGetQueryParametersAttributeTypeOk(o.QueryParameters) } -// HasHttp returns a boolean if a field has been set. -func (o *Rule) HasHttp() bool { - _, ok := o.GetHttpOk() +// HasQueryParameters returns a boolean if a field has been set. +func (o *Rule) HasQueryParameters() bool { + _, ok := o.GetQueryParametersOk() return ok } -// SetHttp gets a reference to the given HTTPConfig and assigns it to the Http field. -func (o *Rule) SetHttp(v RuleGetHttpRetType) { - setRuleGetHttpAttributeType(&o.Http, v) +// SetQueryParameters gets a reference to the given []QueryParameter and assigns it to the QueryParameters field. +func (o *Rule) SetQueryParameters(v RuleGetQueryParametersRetType) { + setRuleGetQueryParametersAttributeType(&o.QueryParameters, v) +} + +// GetTargetPool returns the TargetPool field value if set, zero value otherwise. +func (o *Rule) GetTargetPool() (res RuleGetTargetPoolRetType) { + res, _ = o.GetTargetPoolOk() + return +} + +// GetTargetPoolOk returns a tuple with the TargetPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rule) GetTargetPoolOk() (ret RuleGetTargetPoolRetType, ok bool) { + return getRuleGetTargetPoolAttributeTypeOk(o.TargetPool) +} + +// HasTargetPool returns a boolean if a field has been set. +func (o *Rule) HasTargetPool() bool { + _, ok := o.GetTargetPoolOk() + return ok +} + +// SetTargetPool gets a reference to the given string and assigns it to the TargetPool field. +func (o *Rule) SetTargetPool(v RuleGetTargetPoolRetType) { + setRuleGetTargetPoolAttributeType(&o.TargetPool, v) +} + +// GetWebSocket returns the WebSocket field value if set, zero value otherwise. +func (o *Rule) GetWebSocket() (res RulegetWebSocketRetType) { + res, _ = o.GetWebSocketOk() + return +} + +// GetWebSocketOk returns a tuple with the WebSocket field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rule) GetWebSocketOk() (ret RulegetWebSocketRetType, ok bool) { + return getRulegetWebSocketAttributeTypeOk(o.WebSocket) +} + +// HasWebSocket returns a boolean if a field has been set. +func (o *Rule) HasWebSocket() bool { + _, ok := o.GetWebSocketOk() + return ok +} + +// SetWebSocket gets a reference to the given bool and assigns it to the WebSocket field. +func (o *Rule) SetWebSocket(v RulegetWebSocketRetType) { + setRulegetWebSocketAttributeType(&o.WebSocket, v) } func (o Rule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if val, ok := getRuleGetHostAttributeTypeOk(o.Host); ok { - toSerialize["Host"] = val + if val, ok := getRuleGetCookiePersistenceAttributeTypeOk(o.CookiePersistence); ok { + toSerialize["CookiePersistence"] = val + } + if val, ok := getRuleGetHeadersAttributeTypeOk(o.Headers); ok { + toSerialize["Headers"] = val + } + if val, ok := getRuleGetPathPrefixAttributeTypeOk(o.PathPrefix); ok { + toSerialize["PathPrefix"] = val + } + if val, ok := getRuleGetQueryParametersAttributeTypeOk(o.QueryParameters); ok { + toSerialize["QueryParameters"] = val + } + if val, ok := getRuleGetTargetPoolAttributeTypeOk(o.TargetPool); ok { + toSerialize["TargetPool"] = val } - if val, ok := getRuleGetHttpAttributeTypeOk(o.Http); ok { - toSerialize["Http"] = val + if val, ok := getRulegetWebSocketAttributeTypeOk(o.WebSocket); ok { + toSerialize["WebSocket"] = val } return toSerialize, nil } diff --git a/services/alb/model_status.go b/services/alb/model_status.go index 982286eca..e6a705bb8 100644 --- a/services/alb/model_status.go +++ b/services/alb/model_status.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_sub_rule.go b/services/alb/model_sub_rule.go deleted file mode 100644 index 34dce09f8..000000000 --- a/services/alb/model_sub_rule.go +++ /dev/null @@ -1,369 +0,0 @@ -/* -Application Load Balancer API - -This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. - -API version: 2beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package alb - -import ( - "encoding/json" -) - -// checks if the SubRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SubRule{} - -/* - types and functions for cookiePersistence -*/ - -// isModel -type SubRuleGetCookiePersistenceAttributeType = *CookiePersistence -type SubRuleGetCookiePersistenceArgType = CookiePersistence -type SubRuleGetCookiePersistenceRetType = CookiePersistence - -func getSubRuleGetCookiePersistenceAttributeTypeOk(arg SubRuleGetCookiePersistenceAttributeType) (ret SubRuleGetCookiePersistenceRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSubRuleGetCookiePersistenceAttributeType(arg *SubRuleGetCookiePersistenceAttributeType, val SubRuleGetCookiePersistenceRetType) { - *arg = &val -} - -/* - types and functions for headers -*/ - -// isArray -type SubRuleGetHeadersAttributeType = *[]Header -type SubRuleGetHeadersArgType = []Header -type SubRuleGetHeadersRetType = []Header - -func getSubRuleGetHeadersAttributeTypeOk(arg SubRuleGetHeadersAttributeType) (ret SubRuleGetHeadersRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSubRuleGetHeadersAttributeType(arg *SubRuleGetHeadersAttributeType, val SubRuleGetHeadersRetType) { - *arg = &val -} - -/* - types and functions for pathPrefix -*/ - -// isNotNullableString -type SubRuleGetPathPrefixAttributeType = *string - -func getSubRuleGetPathPrefixAttributeTypeOk(arg SubRuleGetPathPrefixAttributeType) (ret SubRuleGetPathPrefixRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSubRuleGetPathPrefixAttributeType(arg *SubRuleGetPathPrefixAttributeType, val SubRuleGetPathPrefixRetType) { - *arg = &val -} - -type SubRuleGetPathPrefixArgType = string -type SubRuleGetPathPrefixRetType = string - -/* - types and functions for queryParameters -*/ - -// isArray -type SubRuleGetQueryParametersAttributeType = *[]QueryParameters -type SubRuleGetQueryParametersArgType = []QueryParameters -type SubRuleGetQueryParametersRetType = []QueryParameters - -func getSubRuleGetQueryParametersAttributeTypeOk(arg SubRuleGetQueryParametersAttributeType) (ret SubRuleGetQueryParametersRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSubRuleGetQueryParametersAttributeType(arg *SubRuleGetQueryParametersAttributeType, val SubRuleGetQueryParametersRetType) { - *arg = &val -} - -/* - types and functions for targetPool -*/ - -// isNotNullableString -type SubRuleGetTargetPoolAttributeType = *string - -func getSubRuleGetTargetPoolAttributeTypeOk(arg SubRuleGetTargetPoolAttributeType) (ret SubRuleGetTargetPoolRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSubRuleGetTargetPoolAttributeType(arg *SubRuleGetTargetPoolAttributeType, val SubRuleGetTargetPoolRetType) { - *arg = &val -} - -type SubRuleGetTargetPoolArgType = string -type SubRuleGetTargetPoolRetType = string - -/* - types and functions for webSocket -*/ - -// isBoolean -type SubRulegetWebSocketAttributeType = *bool -type SubRulegetWebSocketArgType = bool -type SubRulegetWebSocketRetType = bool - -func getSubRulegetWebSocketAttributeTypeOk(arg SubRulegetWebSocketAttributeType) (ret SubRulegetWebSocketRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSubRulegetWebSocketAttributeType(arg *SubRulegetWebSocketAttributeType, val SubRulegetWebSocketRetType) { - *arg = &val -} - -// SubRule struct for SubRule -type SubRule struct { - CookiePersistence SubRuleGetCookiePersistenceAttributeType `json:"cookiePersistence,omitempty"` - // Headers for the subRule - Headers SubRuleGetHeadersAttributeType `json:"headers,omitempty"` - // Path prefix for the subRule - PathPrefix SubRuleGetPathPrefixAttributeType `json:"pathPrefix,omitempty"` - // Query Parameters for the subRule - QueryParameters SubRuleGetQueryParametersAttributeType `json:"queryParameters,omitempty"` - // Reference target pool by target pool name. - TargetPool SubRuleGetTargetPoolAttributeType `json:"targetPool,omitempty"` - // If enabled, when client sends an HTTP request with and Upgrade header, indicating the desire to establish a Websocket connection, if backend server supports WebSocket, it responds with HTTP 101 status code, switching protocols from HTTP to WebSocket. Hence the client and the server can exchange data in real-time using one long-lived TCP connection. - WebSocket SubRulegetWebSocketAttributeType `json:"webSocket,omitempty"` -} - -// NewSubRule instantiates a new SubRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSubRule() *SubRule { - this := SubRule{} - return &this -} - -// NewSubRuleWithDefaults instantiates a new SubRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSubRuleWithDefaults() *SubRule { - this := SubRule{} - return &this -} - -// GetCookiePersistence returns the CookiePersistence field value if set, zero value otherwise. -func (o *SubRule) GetCookiePersistence() (res SubRuleGetCookiePersistenceRetType) { - res, _ = o.GetCookiePersistenceOk() - return -} - -// GetCookiePersistenceOk returns a tuple with the CookiePersistence field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SubRule) GetCookiePersistenceOk() (ret SubRuleGetCookiePersistenceRetType, ok bool) { - return getSubRuleGetCookiePersistenceAttributeTypeOk(o.CookiePersistence) -} - -// HasCookiePersistence returns a boolean if a field has been set. -func (o *SubRule) HasCookiePersistence() bool { - _, ok := o.GetCookiePersistenceOk() - return ok -} - -// SetCookiePersistence gets a reference to the given CookiePersistence and assigns it to the CookiePersistence field. -func (o *SubRule) SetCookiePersistence(v SubRuleGetCookiePersistenceRetType) { - setSubRuleGetCookiePersistenceAttributeType(&o.CookiePersistence, v) -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *SubRule) GetHeaders() (res SubRuleGetHeadersRetType) { - res, _ = o.GetHeadersOk() - return -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SubRule) GetHeadersOk() (ret SubRuleGetHeadersRetType, ok bool) { - return getSubRuleGetHeadersAttributeTypeOk(o.Headers) -} - -// HasHeaders returns a boolean if a field has been set. -func (o *SubRule) HasHeaders() bool { - _, ok := o.GetHeadersOk() - return ok -} - -// SetHeaders gets a reference to the given []Header and assigns it to the Headers field. -func (o *SubRule) SetHeaders(v SubRuleGetHeadersRetType) { - setSubRuleGetHeadersAttributeType(&o.Headers, v) -} - -// GetPathPrefix returns the PathPrefix field value if set, zero value otherwise. -func (o *SubRule) GetPathPrefix() (res SubRuleGetPathPrefixRetType) { - res, _ = o.GetPathPrefixOk() - return -} - -// GetPathPrefixOk returns a tuple with the PathPrefix field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SubRule) GetPathPrefixOk() (ret SubRuleGetPathPrefixRetType, ok bool) { - return getSubRuleGetPathPrefixAttributeTypeOk(o.PathPrefix) -} - -// HasPathPrefix returns a boolean if a field has been set. -func (o *SubRule) HasPathPrefix() bool { - _, ok := o.GetPathPrefixOk() - return ok -} - -// SetPathPrefix gets a reference to the given string and assigns it to the PathPrefix field. -func (o *SubRule) SetPathPrefix(v SubRuleGetPathPrefixRetType) { - setSubRuleGetPathPrefixAttributeType(&o.PathPrefix, v) -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *SubRule) GetQueryParameters() (res SubRuleGetQueryParametersRetType) { - res, _ = o.GetQueryParametersOk() - return -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SubRule) GetQueryParametersOk() (ret SubRuleGetQueryParametersRetType, ok bool) { - return getSubRuleGetQueryParametersAttributeTypeOk(o.QueryParameters) -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *SubRule) HasQueryParameters() bool { - _, ok := o.GetQueryParametersOk() - return ok -} - -// SetQueryParameters gets a reference to the given []QueryParameters and assigns it to the QueryParameters field. -func (o *SubRule) SetQueryParameters(v SubRuleGetQueryParametersRetType) { - setSubRuleGetQueryParametersAttributeType(&o.QueryParameters, v) -} - -// GetTargetPool returns the TargetPool field value if set, zero value otherwise. -func (o *SubRule) GetTargetPool() (res SubRuleGetTargetPoolRetType) { - res, _ = o.GetTargetPoolOk() - return -} - -// GetTargetPoolOk returns a tuple with the TargetPool field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SubRule) GetTargetPoolOk() (ret SubRuleGetTargetPoolRetType, ok bool) { - return getSubRuleGetTargetPoolAttributeTypeOk(o.TargetPool) -} - -// HasTargetPool returns a boolean if a field has been set. -func (o *SubRule) HasTargetPool() bool { - _, ok := o.GetTargetPoolOk() - return ok -} - -// SetTargetPool gets a reference to the given string and assigns it to the TargetPool field. -func (o *SubRule) SetTargetPool(v SubRuleGetTargetPoolRetType) { - setSubRuleGetTargetPoolAttributeType(&o.TargetPool, v) -} - -// GetWebSocket returns the WebSocket field value if set, zero value otherwise. -func (o *SubRule) GetWebSocket() (res SubRulegetWebSocketRetType) { - res, _ = o.GetWebSocketOk() - return -} - -// GetWebSocketOk returns a tuple with the WebSocket field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SubRule) GetWebSocketOk() (ret SubRulegetWebSocketRetType, ok bool) { - return getSubRulegetWebSocketAttributeTypeOk(o.WebSocket) -} - -// HasWebSocket returns a boolean if a field has been set. -func (o *SubRule) HasWebSocket() bool { - _, ok := o.GetWebSocketOk() - return ok -} - -// SetWebSocket gets a reference to the given bool and assigns it to the WebSocket field. -func (o *SubRule) SetWebSocket(v SubRulegetWebSocketRetType) { - setSubRulegetWebSocketAttributeType(&o.WebSocket, v) -} - -func (o SubRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getSubRuleGetCookiePersistenceAttributeTypeOk(o.CookiePersistence); ok { - toSerialize["CookiePersistence"] = val - } - if val, ok := getSubRuleGetHeadersAttributeTypeOk(o.Headers); ok { - toSerialize["Headers"] = val - } - if val, ok := getSubRuleGetPathPrefixAttributeTypeOk(o.PathPrefix); ok { - toSerialize["PathPrefix"] = val - } - if val, ok := getSubRuleGetQueryParametersAttributeTypeOk(o.QueryParameters); ok { - toSerialize["QueryParameters"] = val - } - if val, ok := getSubRuleGetTargetPoolAttributeTypeOk(o.TargetPool); ok { - toSerialize["TargetPool"] = val - } - if val, ok := getSubRulegetWebSocketAttributeTypeOk(o.WebSocket); ok { - toSerialize["WebSocket"] = val - } - return toSerialize, nil -} - -type NullableSubRule struct { - value *SubRule - isSet bool -} - -func (v NullableSubRule) Get() *SubRule { - return v.value -} - -func (v *NullableSubRule) Set(val *SubRule) { - v.value = val - v.isSet = true -} - -func (v NullableSubRule) IsSet() bool { - return v.isSet -} - -func (v *NullableSubRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSubRule(val *SubRule) *NullableSubRule { - return &NullableSubRule{value: val, isSet: true} -} - -func (v NullableSubRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSubRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/alb/model_target.go b/services/alb/model_target.go index ee5d7d1ad..9eb2c5208 100644 --- a/services/alb/model_target.go +++ b/services/alb/model_target.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_target_pool.go b/services/alb/model_target_pool.go index b66a21f24..385cf3a86 100644 --- a/services/alb/model_target_pool.go +++ b/services/alb/model_target_pool.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_target_pool_tls_config.go b/services/alb/model_target_pool_tls_config.go index edbc80465..f8c193855 100644 --- a/services/alb/model_target_pool_tls_config.go +++ b/services/alb/model_target_pool_tls_config.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_update_credentials_payload.go b/services/alb/model_update_credentials_payload.go index ee8fa122a..00f94d8a2 100644 --- a/services/alb/model_update_credentials_payload.go +++ b/services/alb/model_update_credentials_payload.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_update_credentials_response.go b/services/alb/model_update_credentials_response.go index 4436281da..3807a9ac2 100644 --- a/services/alb/model_update_credentials_response.go +++ b/services/alb/model_update_credentials_response.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/model_update_load_balancer_payload.go b/services/alb/model_update_load_balancer_payload.go index 32fa2129d..6fe7df7d4 100644 --- a/services/alb/model_update_load_balancer_payload.go +++ b/services/alb/model_update_load_balancer_payload.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -280,7 +280,7 @@ type UpdateLoadBalancerPayload struct { PlanId UpdateLoadBalancerPayloadGetPlanIdAttributeType `json:"planId,omitempty"` // Transient private application load balancer IP address that can change any time. PrivateAddress UpdateLoadBalancerPayloadGetPrivateAddressAttributeType `json:"privateAddress,omitempty"` - // Region of the LoadBalancer + // Region of the LoadBalancer. Region UpdateLoadBalancerPayloadGetRegionAttributeType `json:"region,omitempty"` Status UpdateLoadBalancerPayloadGetStatusAttributeType `json:"status,omitempty"` // List of all target pools which will be used in the application load balancer. Limited to 20. diff --git a/services/alb/model_update_target_pool_payload.go b/services/alb/model_update_target_pool_payload.go index 406b1d449..021ac2b88 100644 --- a/services/alb/model_update_target_pool_payload.go +++ b/services/alb/model_update_target_pool_payload.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/alb/utils.go b/services/alb/utils.go index 54410d27b..f6d6c2fc8 100644 --- a/services/alb/utils.go +++ b/services/alb/utils.go @@ -3,7 +3,7 @@ Application Load Balancer API This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. -API version: 2beta.0.0 +API version: 2beta2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.