diff --git a/services/lbapplication/api_default.go b/services/lbapplication/api_default.go index 8236caefc..3c0b1c6b7 100644 --- a/services/lbapplication/api_default.go +++ b/services/lbapplication/api_default.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ @@ -23,10 +23,435 @@ import ( "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) +type DefaultApi interface { + /* + CreateCredentials Create credentials for observability of the application load balancer + Deprecated: Creates and stores credentials for use with Application Load Balancer Observability. + For example, when using ARGUS, credentials must first be created via the ARGUS API + and then stored with this endpoint to be used by the Application Load Balancer. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiCreateCredentialsRequest + */ + CreateCredentials(ctx context.Context, projectId string) ApiCreateCredentialsRequest + /* + CreateCredentialsExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return CreateCredentialsResponse + + Deprecated: Creates and stores credentials for use with Application Load Balancer Observability. + For example, when using ARGUS, credentials must first be created via the ARGUS API + and then stored with this endpoint to be used by the Application Load Balancer. + */ + CreateCredentialsExecute(ctx context.Context, projectId string) (*CreateCredentialsResponse, error) + /* + CreateLoadBalancer Create an application load balancer in a project + Deprecated: Creates an Application Load Balancer. + The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiCreateLoadBalancerRequest + */ + CreateLoadBalancer(ctx context.Context, projectId string) ApiCreateLoadBalancerRequest + /* + CreateLoadBalancerExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return LoadBalancer + + Deprecated: Creates an Application Load Balancer. + The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. + */ + CreateLoadBalancerExecute(ctx context.Context, projectId string) (*LoadBalancer, error) + /* + DeleteCredentials Delete a single credential in a project. + Deprecated: Deletes the stored Observability credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param credentialsRef + @return ApiDeleteCredentialsRequest + */ + DeleteCredentials(ctx context.Context, projectId string, credentialsRef string) ApiDeleteCredentialsRequest + /* + DeleteCredentialsExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param credentialsRef + @return map[string]interface{} + + Deprecated: Deletes the stored Observability credentials. + */ + DeleteCredentialsExecute(ctx context.Context, projectId string, credentialsRef string) (map[string]interface{}, error) + /* + DeleteLoadBalancer Delete a given load balancer in a project. + Deprecated: Deletes the specified Application Load Balancer. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @return ApiDeleteLoadBalancerRequest + */ + DeleteLoadBalancer(ctx context.Context, projectId string, name string) ApiDeleteLoadBalancerRequest + /* + DeleteLoadBalancerExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @return map[string]interface{} + + Deprecated: Deletes the specified Application Load Balancer. + */ + DeleteLoadBalancerExecute(ctx context.Context, projectId string, name string) (map[string]interface{}, error) + /* + DisableService Disables the functionality of load balancers for the project specified. + Deprecated: DEPRECATED! Disabling the Application Load Balancer functionality is now automatic. + This endpoint is kept for compatibility. + Disables the Application Load Balancer functionality for the specified project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiDisableServiceRequest + */ + DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest + /* + DisableServiceExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return map[string]interface{} + + Deprecated: DEPRECATED! Disabling the Application Load Balancer functionality is now automatic. + This endpoint is kept for compatibility. + Disables the Application Load Balancer functionality for the specified project. + */ + DisableServiceExecute(ctx context.Context, projectId string) (map[string]interface{}, error) + /* + EnableService Enables the functionality of application load balancers for the project specified. + Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kept for compatibility. + Enables the Application Load Balancer service for the specified project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiEnableServiceRequest + */ + EnableService(ctx context.Context, projectId string) ApiEnableServiceRequest + /* + EnableServiceExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return map[string]interface{} + + Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kept for compatibility. + Enables the Application Load Balancer service for the specified project. + */ + EnableServiceExecute(ctx context.Context, projectId string) (map[string]interface{}, error) + /* + GetCredentials Get a single credential reference in a project. + Deprecated: Gets the stored Observability credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param credentialsRef + @return ApiGetCredentialsRequest + */ + GetCredentials(ctx context.Context, projectId string, credentialsRef string) ApiGetCredentialsRequest + /* + GetCredentialsExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param credentialsRef + @return GetCredentialsResponse + + Deprecated: Gets the stored Observability credentials. + */ + GetCredentialsExecute(ctx context.Context, projectId string, credentialsRef string) (*GetCredentialsResponse, error) + /* + GetLoadBalancer Get a single application load balancer in a project. + Deprecated: Retrieves details of a specific Application Load Balancer in a project. + Includes creation and update information, current status, and any error descriptions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @return ApiGetLoadBalancerRequest + */ + GetLoadBalancer(ctx context.Context, projectId string, name string) ApiGetLoadBalancerRequest + /* + GetLoadBalancerExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @return LoadBalancer + + Deprecated: Retrieves details of a specific Application Load Balancer in a project. + Includes creation and update information, current status, and any error descriptions. + */ + GetLoadBalancerExecute(ctx context.Context, projectId string, name string) (*LoadBalancer, error) + /* + GetQuota Get the quota of application load balancers and target pools in a project. + Deprecated: Retrieves the configured Application Load Balancer quota for the project. + The default quota is 3. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiGetQuotaRequest + */ + GetQuota(ctx context.Context, projectId string) ApiGetQuotaRequest + /* + GetQuotaExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return GetQuotaResponse + + Deprecated: Retrieves the configured Application Load Balancer quota for the project. + The default quota is 3. + */ + GetQuotaExecute(ctx context.Context, projectId string) (*GetQuotaResponse, error) + /* + GetServiceStatus Return the status of application load balancer functionality for the project specified. + Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kept for compatibility. + Status will return the Application Load Balancer functionality status for the specified project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiGetServiceStatusRequest + */ + GetServiceStatus(ctx context.Context, projectId string) ApiGetServiceStatusRequest + /* + GetServiceStatusExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return GetServiceStatusResponse + + Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kept for compatibility. + Status will return the Application Load Balancer functionality status for the specified project. + */ + GetServiceStatusExecute(ctx context.Context, projectId string) (*GetServiceStatusResponse, error) + /* + ListCredentials List all credentials in a project. + Deprecated: Lists the stored Observability credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListCredentialsRequest + */ + ListCredentials(ctx context.Context, projectId string) ApiListCredentialsRequest + /* + ListCredentialsExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ListCredentialsResponse + + Deprecated: Lists the stored Observability credentials. + */ + ListCredentialsExecute(ctx context.Context, projectId string) (*ListCredentialsResponse, error) + /* + ListLoadBalancers List load balancers in a project. + Deprecated: Lists all Application Load Balancers in a project. + Includes details from creation or updates, along with their status and any error descriptions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListLoadBalancersRequest + */ + ListLoadBalancers(ctx context.Context, projectId string) ApiListLoadBalancersRequest + /* + ListLoadBalancersExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ListLoadBalancersResponse + + Deprecated: Lists all Application Load Balancers in a project. + Includes details from creation or updates, along with their status and any error descriptions. + */ + ListLoadBalancersExecute(ctx context.Context, projectId string) (*ListLoadBalancersResponse, error) + /* + ListPlans List available service plans. + Deprecated: Lists the configured service plans for a project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListPlansRequest + */ + ListPlans(ctx context.Context) ApiListPlansRequest + /* + ListPlansExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ListPlansResponse + + Deprecated: Lists the configured service plans for a project. + */ + ListPlansExecute(ctx context.Context) (*ListPlansResponse, error) + /* + UpdateCredentials Update credentials for observability in a project. + Deprecated: Updates the stored Observability credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param credentialsRef + @return ApiUpdateCredentialsRequest + */ + UpdateCredentials(ctx context.Context, projectId string, credentialsRef string) ApiUpdateCredentialsRequest + /* + UpdateCredentialsExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param credentialsRef + @return UpdateCredentialsResponse + + Deprecated: Updates the stored Observability credentials. + */ + UpdateCredentialsExecute(ctx context.Context, projectId string, credentialsRef string) (*UpdateCredentialsResponse, error) + /* + UpdateLoadBalancer Update a load balancer in a project. + Deprecated: Updates an existing Application Load Balancer by modifying its listeners and target pools. + Ensure the resource version is current to maintain concurrency safety. + The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @return ApiUpdateLoadBalancerRequest + */ + UpdateLoadBalancer(ctx context.Context, projectId string, name string) ApiUpdateLoadBalancerRequest + /* + UpdateLoadBalancerExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @return LoadBalancer + + Deprecated: Updates an existing Application Load Balancer by modifying its listeners and target pools. + Ensure the resource version is current to maintain concurrency safety. + The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. + */ + UpdateLoadBalancerExecute(ctx context.Context, projectId string, name string) (*LoadBalancer, error) + /* + UpdateTargetPool Update a single target pool of a load balancer in a project. + Deprecated: Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). + Only updates the specified target pool, leaving others unchanged. + Cannot be used to create or rename target pools. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @param targetPoolName + @return ApiUpdateTargetPoolRequest + */ + UpdateTargetPool(ctx context.Context, projectId string, name string, targetPoolName string) ApiUpdateTargetPoolRequest + /* + UpdateTargetPoolExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param name + @param targetPoolName + @return TargetPool + + Deprecated: Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). + Only updates the specified target pool, leaving others unchanged. + Cannot be used to create or rename target pools. + */ + UpdateTargetPoolExecute(ctx context.Context, projectId string, name string, targetPoolName string) (*TargetPool, error) +} + +type ApiCreateCredentialsRequest interface { + CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest + XRequestID(xRequestID string) ApiCreateCredentialsRequest + Execute() (*CreateCredentialsResponse, error) +} + +type ApiCreateLoadBalancerRequest interface { + CreateLoadBalancerPayload(createLoadBalancerPayload CreateLoadBalancerPayload) ApiCreateLoadBalancerRequest + XRequestID(xRequestID string) ApiCreateLoadBalancerRequest + Execute() (*LoadBalancer, error) +} + +type ApiDeleteCredentialsRequest interface { + Execute() (map[string]interface{}, error) +} + +type ApiDeleteLoadBalancerRequest interface { + Execute() (map[string]interface{}, error) +} + +type ApiDisableServiceRequest interface { + Execute() (map[string]interface{}, error) +} + +type ApiEnableServiceRequest interface { + XRequestID(xRequestID string) ApiEnableServiceRequest + Execute() (map[string]interface{}, error) +} + +type ApiGetCredentialsRequest interface { + Execute() (*GetCredentialsResponse, error) +} + +type ApiGetLoadBalancerRequest interface { + Execute() (*LoadBalancer, error) +} + +type ApiGetQuotaRequest interface { + Execute() (*GetQuotaResponse, error) +} + +type ApiGetServiceStatusRequest interface { + Execute() (*GetServiceStatusResponse, error) +} + +type ApiListCredentialsRequest interface { + Execute() (*ListCredentialsResponse, error) +} + +type ApiListLoadBalancersRequest interface { + // page_size specifies how many load balancers should be returned on this page. Must be a positive number <= 1000 + PageSize(pageSize string) ApiListLoadBalancersRequest + // page_id is a page identifier returned by the previous response and is used to request the next page + PageId(pageId string) ApiListLoadBalancersRequest + Execute() (*ListLoadBalancersResponse, error) +} + +type ApiListPlansRequest interface { + Execute() (*ListPlansResponse, error) +} + +type ApiUpdateCredentialsRequest interface { + UpdateCredentialsPayload(updateCredentialsPayload UpdateCredentialsPayload) ApiUpdateCredentialsRequest + Execute() (*UpdateCredentialsResponse, error) +} + +type ApiUpdateLoadBalancerRequest interface { + UpdateLoadBalancerPayload(updateLoadBalancerPayload UpdateLoadBalancerPayload) ApiUpdateLoadBalancerRequest + Execute() (*LoadBalancer, error) +} + +type ApiUpdateTargetPoolRequest interface { + UpdateTargetPoolPayload(updateTargetPoolPayload UpdateTargetPoolPayload) ApiUpdateTargetPoolRequest + Execute() (*TargetPool, error) +} + // DefaultApiService DefaultApi service type DefaultApiService service -type ApiCreateCredentialsRequest struct { +type CreateCredentialsRequest struct { ctx context.Context apiService *DefaultApiService projectId string @@ -34,17 +459,17 @@ type ApiCreateCredentialsRequest struct { xRequestID *string } -func (r ApiCreateCredentialsRequest) CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest { +func (r CreateCredentialsRequest) CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest { r.createCredentialsPayload = &createCredentialsPayload return r } -func (r ApiCreateCredentialsRequest) XRequestID(xRequestID string) ApiCreateCredentialsRequest { +func (r CreateCredentialsRequest) XRequestID(xRequestID string) ApiCreateCredentialsRequest { r.xRequestID = &xRequestID return r } -func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) { +func (r CreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -52,7 +477,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro localVarReturnValue *CreateCredentialsResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateCredentials") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateCredentials") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -89,7 +518,7 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro } // body params localVarPostBody = r.createCredentialsPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -99,7 +528,7 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -123,7 +552,7 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -133,7 +562,7 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -143,7 +572,7 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -159,7 +588,7 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro /* CreateCredentials: Create credentials for observability of the application load balancer -Creates and stores credentials for use with Application Load Balancer Observability. +Deprecated: Creates and stores credentials for use with Application Load Balancer Observability. For example, when using ARGUS, credentials must first be created via the ARGUS API and then stored with this endpoint to be used by the Application Load Balancer. @@ -169,15 +598,21 @@ Creates and stores credentials for use with Application Load Balancer Observabil @return ApiCreateCredentialsRequest */ func (a *APIClient) CreateCredentials(ctx context.Context, projectId string) ApiCreateCredentialsRequest { - return ApiCreateCredentialsRequest{ + return CreateCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, } } +/* +Deprecated: Creates and stores credentials for use with Application Load Balancer Observability. + + For example, when using ARGUS, credentials must first be created via the ARGUS API + and then stored with this endpoint to be used by the Application Load Balancer. +*/ func (a *APIClient) CreateCredentialsExecute(ctx context.Context, projectId string) (*CreateCredentialsResponse, error) { - r := ApiCreateCredentialsRequest{ + r := CreateCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -185,7 +620,7 @@ func (a *APIClient) CreateCredentialsExecute(ctx context.Context, projectId stri return r.Execute() } -type ApiCreateLoadBalancerRequest struct { +type CreateLoadBalancerRequest struct { ctx context.Context apiService *DefaultApiService projectId string @@ -193,17 +628,17 @@ type ApiCreateLoadBalancerRequest struct { xRequestID *string } -func (r ApiCreateLoadBalancerRequest) CreateLoadBalancerPayload(createLoadBalancerPayload CreateLoadBalancerPayload) ApiCreateLoadBalancerRequest { +func (r CreateLoadBalancerRequest) CreateLoadBalancerPayload(createLoadBalancerPayload CreateLoadBalancerPayload) ApiCreateLoadBalancerRequest { r.createLoadBalancerPayload = &createLoadBalancerPayload return r } -func (r ApiCreateLoadBalancerRequest) XRequestID(xRequestID string) ApiCreateLoadBalancerRequest { +func (r CreateLoadBalancerRequest) XRequestID(xRequestID string) ApiCreateLoadBalancerRequest { r.xRequestID = &xRequestID return r } -func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { +func (r CreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -211,7 +646,11 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { localVarReturnValue *LoadBalancer ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateLoadBalancer") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateLoadBalancer") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -248,7 +687,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { } // body params localVarPostBody = r.createLoadBalancerPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -258,7 +697,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -282,7 +721,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -292,7 +731,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -302,7 +741,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -318,7 +757,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { /* CreateLoadBalancer: Create an application load balancer in a project -Creates an Application Load Balancer. +Deprecated: Creates an Application Load Balancer. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -327,15 +766,20 @@ Creates an Application Load Balancer. @return ApiCreateLoadBalancerRequest */ func (a *APIClient) CreateLoadBalancer(ctx context.Context, projectId string) ApiCreateLoadBalancerRequest { - return ApiCreateLoadBalancerRequest{ + return CreateLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, } } +/* +Deprecated: Creates an Application Load Balancer. + + The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. +*/ func (a *APIClient) CreateLoadBalancerExecute(ctx context.Context, projectId string) (*LoadBalancer, error) { - r := ApiCreateLoadBalancerRequest{ + r := CreateLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -343,14 +787,14 @@ func (a *APIClient) CreateLoadBalancerExecute(ctx context.Context, projectId str return r.Execute() } -type ApiDeleteCredentialsRequest struct { +type DeleteCredentialsRequest struct { ctx context.Context apiService *DefaultApiService projectId string credentialsRef string } -func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { +func (r DeleteCredentialsRequest) Execute() (map[string]interface{}, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -358,7 +802,11 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { localVarReturnValue map[string]interface{} ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteCredentials") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteCredentials") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -388,7 +836,7 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -398,7 +846,7 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -422,7 +870,7 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -432,7 +880,7 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -442,7 +890,7 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -458,7 +906,7 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { /* DeleteCredentials: Delete a single credential in a project. -Deletes the stored Observability credentials. +Deprecated: Deletes the stored Observability credentials. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -466,7 +914,7 @@ Deletes the stored Observability credentials. @return ApiDeleteCredentialsRequest */ func (a *APIClient) DeleteCredentials(ctx context.Context, projectId string, credentialsRef string) ApiDeleteCredentialsRequest { - return ApiDeleteCredentialsRequest{ + return DeleteCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -474,8 +922,11 @@ func (a *APIClient) DeleteCredentials(ctx context.Context, projectId string, cre } } +/* +Deprecated: Deletes the stored Observability credentials. +*/ func (a *APIClient) DeleteCredentialsExecute(ctx context.Context, projectId string, credentialsRef string) (map[string]interface{}, error) { - r := ApiDeleteCredentialsRequest{ + r := DeleteCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -484,14 +935,14 @@ func (a *APIClient) DeleteCredentialsExecute(ctx context.Context, projectId stri return r.Execute() } -type ApiDeleteLoadBalancerRequest struct { +type DeleteLoadBalancerRequest struct { ctx context.Context apiService *DefaultApiService projectId string name string } -func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) { +func (r DeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -499,7 +950,11 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) localVarReturnValue map[string]interface{} ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteLoadBalancer") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteLoadBalancer") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -529,7 +984,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -539,7 +994,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -563,7 +1018,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -573,7 +1028,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -583,7 +1038,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -599,7 +1054,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) /* DeleteLoadBalancer: Delete a given load balancer in a project. -Deletes the specified Application Load Balancer. +Deprecated: Deletes the specified Application Load Balancer. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -607,7 +1062,7 @@ Deletes the specified Application Load Balancer. @return ApiDeleteLoadBalancerRequest */ func (a *APIClient) DeleteLoadBalancer(ctx context.Context, projectId string, name string) ApiDeleteLoadBalancerRequest { - return ApiDeleteLoadBalancerRequest{ + return DeleteLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -615,8 +1070,11 @@ func (a *APIClient) DeleteLoadBalancer(ctx context.Context, projectId string, na } } +/* +Deprecated: Deletes the specified Application Load Balancer. +*/ func (a *APIClient) DeleteLoadBalancerExecute(ctx context.Context, projectId string, name string) (map[string]interface{}, error) { - r := ApiDeleteLoadBalancerRequest{ + r := DeleteLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -625,13 +1083,13 @@ func (a *APIClient) DeleteLoadBalancerExecute(ctx context.Context, projectId str return r.Execute() } -type ApiDisableServiceRequest struct { +type DisableServiceRequest struct { ctx context.Context apiService *DefaultApiService projectId string } -func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { +func (r DisableServiceRequest) Execute() (map[string]interface{}, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -639,7 +1097,11 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { localVarReturnValue map[string]interface{} ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DisableService") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DisableService") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -668,7 +1130,7 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -678,7 +1140,7 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -702,7 +1164,7 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -712,7 +1174,7 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -722,7 +1184,7 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -748,7 +1210,7 @@ Deprecated: DEPRECATED! Disabling the Application Load Balancer functionality is @return ApiDisableServiceRequest */ func (a *APIClient) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest { - return ApiDisableServiceRequest{ + return DisableServiceRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -762,7 +1224,7 @@ Deprecated: DEPRECATED! Disabling the Application Load Balancer functionality is Disables the Application Load Balancer functionality for the specified project. */ func (a *APIClient) DisableServiceExecute(ctx context.Context, projectId string) (map[string]interface{}, error) { - r := ApiDisableServiceRequest{ + r := DisableServiceRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -770,19 +1232,19 @@ func (a *APIClient) DisableServiceExecute(ctx context.Context, projectId string) return r.Execute() } -type ApiEnableServiceRequest struct { +type EnableServiceRequest struct { ctx context.Context apiService *DefaultApiService projectId string xRequestID *string } -func (r ApiEnableServiceRequest) XRequestID(xRequestID string) ApiEnableServiceRequest { +func (r EnableServiceRequest) XRequestID(xRequestID string) ApiEnableServiceRequest { r.xRequestID = &xRequestID return r } -func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { +func (r EnableServiceRequest) Execute() (map[string]interface{}, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -790,7 +1252,11 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { localVarReturnValue map[string]interface{} ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.EnableService") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.EnableService") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -822,7 +1288,7 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { if r.xRequestID != nil { parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Request-ID", r.xRequestID, "") } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -832,7 +1298,7 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -856,7 +1322,7 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -866,7 +1332,7 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -876,7 +1342,7 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -901,7 +1367,7 @@ Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kep @return ApiEnableServiceRequest */ func (a *APIClient) EnableService(ctx context.Context, projectId string) ApiEnableServiceRequest { - return ApiEnableServiceRequest{ + return EnableServiceRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -914,7 +1380,7 @@ Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kep Enables the Application Load Balancer service for the specified project. */ func (a *APIClient) EnableServiceExecute(ctx context.Context, projectId string) (map[string]interface{}, error) { - r := ApiEnableServiceRequest{ + r := EnableServiceRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -922,14 +1388,14 @@ func (a *APIClient) EnableServiceExecute(ctx context.Context, projectId string) return r.Execute() } -type ApiGetCredentialsRequest struct { +type GetCredentialsRequest struct { ctx context.Context apiService *DefaultApiService projectId string credentialsRef string } -func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { +func (r GetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -937,7 +1403,11 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { localVarReturnValue *GetCredentialsResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCredentials") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCredentials") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -967,7 +1437,7 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -977,7 +1447,7 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -1001,7 +1471,7 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1011,7 +1481,7 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1021,7 +1491,7 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -1037,7 +1507,7 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { /* GetCredentials: Get a single credential reference in a project. -Gets the stored Observability credentials. +Deprecated: Gets the stored Observability credentials. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -1045,7 +1515,7 @@ Gets the stored Observability credentials. @return ApiGetCredentialsRequest */ func (a *APIClient) GetCredentials(ctx context.Context, projectId string, credentialsRef string) ApiGetCredentialsRequest { - return ApiGetCredentialsRequest{ + return GetCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1053,8 +1523,11 @@ func (a *APIClient) GetCredentials(ctx context.Context, projectId string, creden } } +/* +Deprecated: Gets the stored Observability credentials. +*/ func (a *APIClient) GetCredentialsExecute(ctx context.Context, projectId string, credentialsRef string) (*GetCredentialsResponse, error) { - r := ApiGetCredentialsRequest{ + r := GetCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1063,14 +1536,14 @@ func (a *APIClient) GetCredentialsExecute(ctx context.Context, projectId string, return r.Execute() } -type ApiGetLoadBalancerRequest struct { +type GetLoadBalancerRequest struct { ctx context.Context apiService *DefaultApiService projectId string name string } -func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { +func (r GetLoadBalancerRequest) Execute() (*LoadBalancer, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1078,7 +1551,11 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { localVarReturnValue *LoadBalancer ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetLoadBalancer") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetLoadBalancer") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -1108,7 +1585,7 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -1118,7 +1595,7 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -1142,7 +1619,7 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1152,7 +1629,7 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1162,7 +1639,7 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -1178,7 +1655,7 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { /* GetLoadBalancer: Get a single application load balancer in a project. -Retrieves details of a specific Application Load Balancer in a project. +Deprecated: Retrieves details of a specific Application Load Balancer in a project. Includes creation and update information, current status, and any error descriptions. @@ -1188,7 +1665,7 @@ Retrieves details of a specific Application Load Balancer in a project. @return ApiGetLoadBalancerRequest */ func (a *APIClient) GetLoadBalancer(ctx context.Context, projectId string, name string) ApiGetLoadBalancerRequest { - return ApiGetLoadBalancerRequest{ + return GetLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1196,8 +1673,13 @@ func (a *APIClient) GetLoadBalancer(ctx context.Context, projectId string, name } } +/* +Deprecated: Retrieves details of a specific Application Load Balancer in a project. + + Includes creation and update information, current status, and any error descriptions. +*/ func (a *APIClient) GetLoadBalancerExecute(ctx context.Context, projectId string, name string) (*LoadBalancer, error) { - r := ApiGetLoadBalancerRequest{ + r := GetLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1206,13 +1688,13 @@ func (a *APIClient) GetLoadBalancerExecute(ctx context.Context, projectId string return r.Execute() } -type ApiGetQuotaRequest struct { +type GetQuotaRequest struct { ctx context.Context apiService *DefaultApiService projectId string } -func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { +func (r GetQuotaRequest) Execute() (*GetQuotaResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1220,7 +1702,11 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { localVarReturnValue *GetQuotaResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetQuota") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetQuota") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -1249,7 +1735,7 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -1259,7 +1745,7 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -1283,7 +1769,7 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1293,7 +1779,7 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1303,7 +1789,7 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -1319,7 +1805,7 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { /* GetQuota: Get the quota of application load balancers and target pools in a project. -Retrieves the configured Application Load Balancer quota for the project. +Deprecated: Retrieves the configured Application Load Balancer quota for the project. The default quota is 3. @@ -1328,15 +1814,20 @@ Retrieves the configured Application Load Balancer quota for the project. @return ApiGetQuotaRequest */ func (a *APIClient) GetQuota(ctx context.Context, projectId string) ApiGetQuotaRequest { - return ApiGetQuotaRequest{ + return GetQuotaRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, } } +/* +Deprecated: Retrieves the configured Application Load Balancer quota for the project. + + The default quota is 3. +*/ func (a *APIClient) GetQuotaExecute(ctx context.Context, projectId string) (*GetQuotaResponse, error) { - r := ApiGetQuotaRequest{ + r := GetQuotaRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1344,13 +1835,13 @@ func (a *APIClient) GetQuotaExecute(ctx context.Context, projectId string) (*Get return r.Execute() } -type ApiGetServiceStatusRequest struct { +type GetServiceStatusRequest struct { ctx context.Context apiService *DefaultApiService projectId string } -func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) { +func (r GetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1358,7 +1849,11 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) localVarReturnValue *GetServiceStatusResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetServiceStatus") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetServiceStatus") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -1387,7 +1882,7 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -1397,7 +1892,7 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -1421,7 +1916,7 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1431,7 +1926,7 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1441,7 +1936,7 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -1466,7 +1961,7 @@ Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kep @return ApiGetServiceStatusRequest */ func (a *APIClient) GetServiceStatus(ctx context.Context, projectId string) ApiGetServiceStatusRequest { - return ApiGetServiceStatusRequest{ + return GetServiceStatusRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1479,7 +1974,7 @@ Deprecated: DEPRECATED! Checking the status is now obsolete. The endpoint is kep Status will return the Application Load Balancer functionality status for the specified project. */ func (a *APIClient) GetServiceStatusExecute(ctx context.Context, projectId string) (*GetServiceStatusResponse, error) { - r := ApiGetServiceStatusRequest{ + r := GetServiceStatusRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1487,13 +1982,13 @@ func (a *APIClient) GetServiceStatusExecute(ctx context.Context, projectId strin return r.Execute() } -type ApiListCredentialsRequest struct { +type ListCredentialsRequest struct { ctx context.Context apiService *DefaultApiService projectId string } -func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { +func (r ListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1501,7 +1996,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { localVarReturnValue *ListCredentialsResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListCredentials") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListCredentials") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -1530,7 +2029,7 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -1540,7 +2039,7 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -1564,7 +2063,7 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1574,7 +2073,7 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1584,7 +2083,7 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -1600,22 +2099,25 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { /* ListCredentials: List all credentials in a project. -Lists the stored Observability credentials. +Deprecated: Lists the stored Observability credentials. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListCredentialsRequest */ func (a *APIClient) ListCredentials(ctx context.Context, projectId string) ApiListCredentialsRequest { - return ApiListCredentialsRequest{ + return ListCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, } } +/* +Deprecated: Lists the stored Observability credentials. +*/ func (a *APIClient) ListCredentialsExecute(ctx context.Context, projectId string) (*ListCredentialsResponse, error) { - r := ApiListCredentialsRequest{ + r := ListCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1623,7 +2125,7 @@ func (a *APIClient) ListCredentialsExecute(ctx context.Context, projectId string return r.Execute() } -type ApiListLoadBalancersRequest struct { +type ListLoadBalancersRequest struct { ctx context.Context apiService *DefaultApiService projectId string @@ -1633,19 +2135,19 @@ type ApiListLoadBalancersRequest struct { // page_size specifies how many load balancers should be returned on this page. Must be a positive number <= 1000 -func (r ApiListLoadBalancersRequest) PageSize(pageSize string) ApiListLoadBalancersRequest { +func (r ListLoadBalancersRequest) PageSize(pageSize string) ApiListLoadBalancersRequest { r.pageSize = &pageSize return r } // page_id is a page identifier returned by the previous response and is used to request the next page -func (r ApiListLoadBalancersRequest) PageId(pageId string) ApiListLoadBalancersRequest { +func (r ListLoadBalancersRequest) PageId(pageId string) ApiListLoadBalancersRequest { r.pageId = &pageId return r } -func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, error) { +func (r ListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1653,7 +2155,11 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro localVarReturnValue *ListLoadBalancersResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListLoadBalancers") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListLoadBalancers") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -1688,7 +2194,7 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -1698,7 +2204,7 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -1722,7 +2228,7 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1732,7 +2238,7 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1742,7 +2248,7 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -1758,7 +2264,7 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro /* ListLoadBalancers: List load balancers in a project. -Lists all Application Load Balancers in a project. +Deprecated: Lists all Application Load Balancers in a project. Includes details from creation or updates, along with their status and any error descriptions. @@ -1767,15 +2273,20 @@ Lists all Application Load Balancers in a project. @return ApiListLoadBalancersRequest */ func (a *APIClient) ListLoadBalancers(ctx context.Context, projectId string) ApiListLoadBalancersRequest { - return ApiListLoadBalancersRequest{ + return ListLoadBalancersRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, } } +/* +Deprecated: Lists all Application Load Balancers in a project. + + Includes details from creation or updates, along with their status and any error descriptions. +*/ func (a *APIClient) ListLoadBalancersExecute(ctx context.Context, projectId string) (*ListLoadBalancersResponse, error) { - r := ApiListLoadBalancersRequest{ + r := ListLoadBalancersRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1783,12 +2294,12 @@ func (a *APIClient) ListLoadBalancersExecute(ctx context.Context, projectId stri return r.Execute() } -type ApiListPlansRequest struct { +type ListPlansRequest struct { ctx context.Context apiService *DefaultApiService } -func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { +func (r ListPlansRequest) Execute() (*ListPlansResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1796,7 +2307,11 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { localVarReturnValue *ListPlansResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListPlans") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListPlans") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -1824,7 +2339,7 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -1834,7 +2349,7 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -1858,7 +2373,7 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1868,7 +2383,7 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -1878,7 +2393,7 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -1894,27 +2409,30 @@ func (r ApiListPlansRequest) Execute() (*ListPlansResponse, error) { /* ListPlans: List available service plans. -Lists the configured service plans for a project. +Deprecated: Lists the configured service plans for a project. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListPlansRequest */ func (a *APIClient) ListPlans(ctx context.Context) ApiListPlansRequest { - return ApiListPlansRequest{ + return ListPlansRequest{ apiService: a.defaultApi, ctx: ctx, } } +/* +Deprecated: Lists the configured service plans for a project. +*/ func (a *APIClient) ListPlansExecute(ctx context.Context) (*ListPlansResponse, error) { - r := ApiListPlansRequest{ + r := ListPlansRequest{ apiService: a.defaultApi, ctx: ctx, } return r.Execute() } -type ApiUpdateCredentialsRequest struct { +type UpdateCredentialsRequest struct { ctx context.Context apiService *DefaultApiService projectId string @@ -1922,12 +2440,12 @@ type ApiUpdateCredentialsRequest struct { updateCredentialsPayload *UpdateCredentialsPayload } -func (r ApiUpdateCredentialsRequest) UpdateCredentialsPayload(updateCredentialsPayload UpdateCredentialsPayload) ApiUpdateCredentialsRequest { +func (r UpdateCredentialsRequest) UpdateCredentialsPayload(updateCredentialsPayload UpdateCredentialsPayload) ApiUpdateCredentialsRequest { r.updateCredentialsPayload = &updateCredentialsPayload return r } -func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, error) { +func (r UpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1935,7 +2453,11 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro localVarReturnValue *UpdateCredentialsResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateCredentials") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateCredentials") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -1970,7 +2492,7 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro } // body params localVarPostBody = r.updateCredentialsPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -1980,7 +2502,7 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -2004,7 +2526,7 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -2014,7 +2536,7 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -2024,7 +2546,7 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -2040,7 +2562,7 @@ func (r ApiUpdateCredentialsRequest) Execute() (*UpdateCredentialsResponse, erro /* UpdateCredentials: Update credentials for observability in a project. -Updates the stored Observability credentials. +Deprecated: Updates the stored Observability credentials. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -2048,7 +2570,7 @@ Updates the stored Observability credentials. @return ApiUpdateCredentialsRequest */ func (a *APIClient) UpdateCredentials(ctx context.Context, projectId string, credentialsRef string) ApiUpdateCredentialsRequest { - return ApiUpdateCredentialsRequest{ + return UpdateCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -2056,8 +2578,11 @@ func (a *APIClient) UpdateCredentials(ctx context.Context, projectId string, cre } } +/* +Deprecated: Updates the stored Observability credentials. +*/ func (a *APIClient) UpdateCredentialsExecute(ctx context.Context, projectId string, credentialsRef string) (*UpdateCredentialsResponse, error) { - r := ApiUpdateCredentialsRequest{ + r := UpdateCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -2066,7 +2591,7 @@ func (a *APIClient) UpdateCredentialsExecute(ctx context.Context, projectId stri return r.Execute() } -type ApiUpdateLoadBalancerRequest struct { +type UpdateLoadBalancerRequest struct { ctx context.Context apiService *DefaultApiService projectId string @@ -2074,12 +2599,12 @@ type ApiUpdateLoadBalancerRequest struct { updateLoadBalancerPayload *UpdateLoadBalancerPayload } -func (r ApiUpdateLoadBalancerRequest) UpdateLoadBalancerPayload(updateLoadBalancerPayload UpdateLoadBalancerPayload) ApiUpdateLoadBalancerRequest { +func (r UpdateLoadBalancerRequest) UpdateLoadBalancerPayload(updateLoadBalancerPayload UpdateLoadBalancerPayload) ApiUpdateLoadBalancerRequest { r.updateLoadBalancerPayload = &updateLoadBalancerPayload return r } -func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { +func (r UpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -2087,7 +2612,11 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { localVarReturnValue *LoadBalancer ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateLoadBalancer") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateLoadBalancer") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -2122,7 +2651,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { } // body params localVarPostBody = r.updateLoadBalancerPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -2132,7 +2661,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -2156,7 +2685,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -2166,7 +2695,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -2176,7 +2705,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -2192,7 +2721,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { /* UpdateLoadBalancer: Update a load balancer in a project. -Updates an existing Application Load Balancer by modifying its listeners and target pools. +Deprecated: Updates an existing Application Load Balancer by modifying its listeners and target pools. Ensure the resource version is current to maintain concurrency safety. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -2203,7 +2732,7 @@ Updates an existing Application Load Balancer by modifying its listeners and tar @return ApiUpdateLoadBalancerRequest */ func (a *APIClient) UpdateLoadBalancer(ctx context.Context, projectId string, name string) ApiUpdateLoadBalancerRequest { - return ApiUpdateLoadBalancerRequest{ + return UpdateLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -2211,8 +2740,14 @@ func (a *APIClient) UpdateLoadBalancer(ctx context.Context, projectId string, na } } +/* +Deprecated: Updates an existing Application Load Balancer by modifying its listeners and target pools. + + Ensure the resource version is current to maintain concurrency safety. + The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. +*/ func (a *APIClient) UpdateLoadBalancerExecute(ctx context.Context, projectId string, name string) (*LoadBalancer, error) { - r := ApiUpdateLoadBalancerRequest{ + r := UpdateLoadBalancerRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -2221,7 +2756,7 @@ func (a *APIClient) UpdateLoadBalancerExecute(ctx context.Context, projectId str return r.Execute() } -type ApiUpdateTargetPoolRequest struct { +type UpdateTargetPoolRequest struct { ctx context.Context apiService *DefaultApiService projectId string @@ -2230,12 +2765,12 @@ type ApiUpdateTargetPoolRequest struct { updateTargetPoolPayload *UpdateTargetPoolPayload } -func (r ApiUpdateTargetPoolRequest) UpdateTargetPoolPayload(updateTargetPoolPayload UpdateTargetPoolPayload) ApiUpdateTargetPoolRequest { +func (r UpdateTargetPoolRequest) UpdateTargetPoolPayload(updateTargetPoolPayload UpdateTargetPoolPayload) ApiUpdateTargetPoolRequest { r.updateTargetPoolPayload = &updateTargetPoolPayload return r } -func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { +func (r UpdateTargetPoolRequest) Execute() (*TargetPool, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -2243,7 +2778,11 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { localVarReturnValue *TargetPool ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateTargetPool") + client, ok := a.client.(*APIClient) + if !ok { + return nil, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateTargetPool") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } @@ -2279,7 +2818,7 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { } // body params localVarPostBody = r.updateTargetPoolPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err } @@ -2289,7 +2828,7 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { *contextHTTPRequest = req } - localVarHTTPResponse, err := a.client.callAPI(req) + localVarHTTPResponse, err := client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { *contextHTTPResponse = localVarHTTPResponse @@ -2313,7 +2852,7 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { } if localVarHTTPResponse.StatusCode == 401 { var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -2323,7 +2862,7 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { return localVarReturnValue, newErr } var v Status - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.ErrorMessage = err.Error() return localVarReturnValue, newErr @@ -2333,7 +2872,7 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { return localVarReturnValue, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr := &oapierror.GenericOpenAPIError{ StatusCode: localVarHTTPResponse.StatusCode, @@ -2349,7 +2888,7 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { /* UpdateTargetPool: Update a single target pool of a load balancer in a project. -Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). +Deprecated: Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). Only updates the specified target pool, leaving others unchanged. Cannot be used to create or rename target pools. @@ -2361,7 +2900,7 @@ Replaces the content of a specific target pool in the Application Load Balancer @return ApiUpdateTargetPoolRequest */ func (a *APIClient) UpdateTargetPool(ctx context.Context, projectId string, name string, targetPoolName string) ApiUpdateTargetPoolRequest { - return ApiUpdateTargetPoolRequest{ + return UpdateTargetPoolRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -2370,8 +2909,14 @@ func (a *APIClient) UpdateTargetPool(ctx context.Context, projectId string, name } } +/* +Deprecated: Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). + + Only updates the specified target pool, leaving others unchanged. + Cannot be used to create or rename target pools. +*/ func (a *APIClient) UpdateTargetPoolExecute(ctx context.Context, projectId string, name string, targetPoolName string) (*TargetPool, error) { - r := ApiUpdateTargetPoolRequest{ + r := UpdateTargetPoolRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, diff --git a/services/lbapplication/api_default_test.go b/services/lbapplication/api_default_test.go index 375b523ef..be03bebde 100644 --- a/services/lbapplication/api_default_test.go +++ b/services/lbapplication/api_default_test.go @@ -25,7 +25,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateCredentials", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/credentials" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -78,7 +78,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateLoadBalancer", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/load-balancers" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -131,9 +131,9 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteCredentials", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/credentials/{credentialsRef}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - credentialsRefValue := "credentialsRef" + credentialsRefValue := "credentialsRef-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(credentialsRefValue, "credentialsRef")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -186,9 +186,9 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteLoadBalancer", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/load-balancers/{name}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - nameValue := "name" + nameValue := "name-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(nameValue, "name")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -241,7 +241,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DisableService", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -293,7 +293,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService EnableService", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -345,9 +345,9 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetCredentials", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/credentials/{credentialsRef}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - credentialsRefValue := "credentialsRef" + credentialsRefValue := "credentialsRef-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(credentialsRefValue, "credentialsRef")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -400,9 +400,9 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetLoadBalancer", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/load-balancers/{name}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - nameValue := "name" + nameValue := "name-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(nameValue, "name")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -455,7 +455,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetQuota", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/quota" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -507,7 +507,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetServiceStatus", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -559,7 +559,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListCredentials", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/credentials" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -611,7 +611,7 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListLoadBalancers", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/load-balancers" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -711,9 +711,9 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateCredentials", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/credentials/{credentialsRef}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - credentialsRefValue := "credentialsRef" + credentialsRefValue := "credentialsRef-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"credentialsRef"+"}", url.PathEscape(ParameterValueToString(credentialsRefValue, "credentialsRef")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -767,9 +767,9 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateLoadBalancer", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/load-balancers/{name}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - nameValue := "name" + nameValue := "name-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"name"+"}", url.PathEscape(ParameterValueToString(nameValue, "name")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -823,11 +823,11 @@ func Test_lbapplication_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateTargetPool", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/load-balancers/{name}/target-pools/{targetPoolName}" - projectIdValue := "projectId" + projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -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/lbapplication/client.go b/services/lbapplication/client.go index 79406adb6..902410d59 100644 --- a/services/lbapplication/client.go +++ b/services/lbapplication/client.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ @@ -51,7 +51,7 @@ type APIClient struct { } type service struct { - client *APIClient + client DefaultApi } // NewAPIClient creates a new API client. @@ -308,7 +308,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/lbapplication/configuration.go b/services/lbapplication/configuration.go index 23ba6d090..697bcaaef 100644 --- a/services/lbapplication/configuration.go +++ b/services/lbapplication/configuration.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ @@ -18,7 +18,7 @@ import ( func NewConfiguration() *config.Configuration { cfg := &config.Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", + UserAgent: "stackit-sdk-go/lbapplication", Debug: false, Servers: config.ServerConfigurations{ { diff --git a/services/lbapplication/model_active_health_check.go b/services/lbapplication/model_active_health_check.go index 3409a88fc..30ec1732e 100644 --- a/services/lbapplication/model_active_health_check.go +++ b/services/lbapplication/model_active_health_check.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_certificate_config.go b/services/lbapplication/model_certificate_config.go index b1ae159a3..fa1794bfc 100644 --- a/services/lbapplication/model_certificate_config.go +++ b/services/lbapplication/model_certificate_config.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_cookie_persistence.go b/services/lbapplication/model_cookie_persistence.go index f0d511aec..860a8dbd9 100644 --- a/services/lbapplication/model_cookie_persistence.go +++ b/services/lbapplication/model_cookie_persistence.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_create_credentials_payload.go b/services/lbapplication/model_create_credentials_payload.go index e78fd80c1..2f72fad02 100644 --- a/services/lbapplication/model_create_credentials_payload.go +++ b/services/lbapplication/model_create_credentials_payload.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_create_credentials_response.go b/services/lbapplication/model_create_credentials_response.go index 864519caa..330180a68 100644 --- a/services/lbapplication/model_create_credentials_response.go +++ b/services/lbapplication/model_create_credentials_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_create_load_balancer_payload.go b/services/lbapplication/model_create_load_balancer_payload.go index facc96954..83a6b06c9 100644 --- a/services/lbapplication/model_create_load_balancer_payload.go +++ b/services/lbapplication/model_create_load_balancer_payload.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_credentials_response.go b/services/lbapplication/model_credentials_response.go index 520cf5748..2b72d0295 100644 --- a/services/lbapplication/model_credentials_response.go +++ b/services/lbapplication/model_credentials_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_get_credentials_response.go b/services/lbapplication/model_get_credentials_response.go index 354b235cc..1dd649319 100644 --- a/services/lbapplication/model_get_credentials_response.go +++ b/services/lbapplication/model_get_credentials_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_get_quota_response.go b/services/lbapplication/model_get_quota_response.go index 91b0a48c7..0bc438008 100644 --- a/services/lbapplication/model_get_quota_response.go +++ b/services/lbapplication/model_get_quota_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_get_service_status_response.go b/services/lbapplication/model_get_service_status_response.go index ef55edb39..39893fdbe 100644 --- a/services/lbapplication/model_get_service_status_response.go +++ b/services/lbapplication/model_get_service_status_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_google_protobuf_any.go b/services/lbapplication/model_google_protobuf_any.go index b12eb82c1..1499863b5 100644 --- a/services/lbapplication/model_google_protobuf_any.go +++ b/services/lbapplication/model_google_protobuf_any.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_header.go b/services/lbapplication/model_header.go index 34a076b57..857c2f26c 100644 --- a/services/lbapplication/model_header.go +++ b/services/lbapplication/model_header.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_http_config.go b/services/lbapplication/model_http_config.go index ac5348237..976e19091 100644 --- a/services/lbapplication/model_http_config.go +++ b/services/lbapplication/model_http_config.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_http_health_checks.go b/services/lbapplication/model_http_health_checks.go index 3eecfd884..8efdf3fa7 100644 --- a/services/lbapplication/model_http_health_checks.go +++ b/services/lbapplication/model_http_health_checks.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_list_credentials_response.go b/services/lbapplication/model_list_credentials_response.go index 2b6a06e19..91c40df57 100644 --- a/services/lbapplication/model_list_credentials_response.go +++ b/services/lbapplication/model_list_credentials_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_list_load_balancers_response.go b/services/lbapplication/model_list_load_balancers_response.go index f6084c135..ef4bfcf96 100644 --- a/services/lbapplication/model_list_load_balancers_response.go +++ b/services/lbapplication/model_list_load_balancers_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_list_plans_response.go b/services/lbapplication/model_list_plans_response.go index 1baf5d189..f9663c31d 100644 --- a/services/lbapplication/model_list_plans_response.go +++ b/services/lbapplication/model_list_plans_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_listener.go b/services/lbapplication/model_listener.go index 07456a62f..94fd63643 100644 --- a/services/lbapplication/model_listener.go +++ b/services/lbapplication/model_listener.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_load_balancer.go b/services/lbapplication/model_load_balancer.go index 6b639f36f..98ce6312f 100644 --- a/services/lbapplication/model_load_balancer.go +++ b/services/lbapplication/model_load_balancer.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_load_balancer_error.go b/services/lbapplication/model_load_balancer_error.go index c2bc60efb..04052f7c5 100644 --- a/services/lbapplication/model_load_balancer_error.go +++ b/services/lbapplication/model_load_balancer_error.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_load_balancer_options.go b/services/lbapplication/model_load_balancer_options.go index 82c0cc6ec..511087fdb 100644 --- a/services/lbapplication/model_load_balancer_options.go +++ b/services/lbapplication/model_load_balancer_options.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_loadbalancer_option_access_control.go b/services/lbapplication/model_loadbalancer_option_access_control.go index 7c2fde916..d73c79df5 100644 --- a/services/lbapplication/model_loadbalancer_option_access_control.go +++ b/services/lbapplication/model_loadbalancer_option_access_control.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_loadbalancer_option_logs.go b/services/lbapplication/model_loadbalancer_option_logs.go index 096ffd401..a39e8cde2 100644 --- a/services/lbapplication/model_loadbalancer_option_logs.go +++ b/services/lbapplication/model_loadbalancer_option_logs.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_loadbalancer_option_metrics.go b/services/lbapplication/model_loadbalancer_option_metrics.go index 7ac5264e5..2f920f295 100644 --- a/services/lbapplication/model_loadbalancer_option_metrics.go +++ b/services/lbapplication/model_loadbalancer_option_metrics.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_loadbalancer_option_observability.go b/services/lbapplication/model_loadbalancer_option_observability.go index a5d70dab4..9d5ca9a02 100644 --- a/services/lbapplication/model_loadbalancer_option_observability.go +++ b/services/lbapplication/model_loadbalancer_option_observability.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_matcher.go b/services/lbapplication/model_matcher.go index 0f205209e..932160319 100644 --- a/services/lbapplication/model_matcher.go +++ b/services/lbapplication/model_matcher.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_network.go b/services/lbapplication/model_network.go index e1e10317d..b86e93d41 100644 --- a/services/lbapplication/model_network.go +++ b/services/lbapplication/model_network.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_plan_details.go b/services/lbapplication/model_plan_details.go index 3fb2540d6..60de37ecd 100644 --- a/services/lbapplication/model_plan_details.go +++ b/services/lbapplication/model_plan_details.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_protocol_options_https.go b/services/lbapplication/model_protocol_options_https.go index 8fa733e81..e4713421b 100644 --- a/services/lbapplication/model_protocol_options_https.go +++ b/services/lbapplication/model_protocol_options_https.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_query_parameters.go b/services/lbapplication/model_query_parameters.go index fcb915944..0c856ca9a 100644 --- a/services/lbapplication/model_query_parameters.go +++ b/services/lbapplication/model_query_parameters.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_rule.go b/services/lbapplication/model_rule.go index f45d20b8e..fa905b6f6 100644 --- a/services/lbapplication/model_rule.go +++ b/services/lbapplication/model_rule.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_status.go b/services/lbapplication/model_status.go index 34384841c..b07b44184 100644 --- a/services/lbapplication/model_status.go +++ b/services/lbapplication/model_status.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_target.go b/services/lbapplication/model_target.go index bc5cedc3e..18193ae3d 100644 --- a/services/lbapplication/model_target.go +++ b/services/lbapplication/model_target.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_target_pool.go b/services/lbapplication/model_target_pool.go index 296d73caf..10e913b2f 100644 --- a/services/lbapplication/model_target_pool.go +++ b/services/lbapplication/model_target_pool.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_update_credentials_payload.go b/services/lbapplication/model_update_credentials_payload.go index df63904a0..7b61f05ff 100644 --- a/services/lbapplication/model_update_credentials_payload.go +++ b/services/lbapplication/model_update_credentials_payload.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_update_credentials_response.go b/services/lbapplication/model_update_credentials_response.go index 871796f42..556325578 100644 --- a/services/lbapplication/model_update_credentials_response.go +++ b/services/lbapplication/model_update_credentials_response.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_update_load_balancer_payload.go b/services/lbapplication/model_update_load_balancer_payload.go index 388a22360..e4c9d077a 100644 --- a/services/lbapplication/model_update_load_balancer_payload.go +++ b/services/lbapplication/model_update_load_balancer_payload.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/model_update_target_pool_payload.go b/services/lbapplication/model_update_target_pool_payload.go index d8123f329..545ff74f8 100644 --- a/services/lbapplication/model_update_target_pool_payload.go +++ b/services/lbapplication/model_update_target_pool_payload.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */ diff --git a/services/lbapplication/utils.go b/services/lbapplication/utils.go index 41f25bf0e..b07c51304 100644 --- a/services/lbapplication/utils.go +++ b/services/lbapplication/utils.go @@ -1,7 +1,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. +### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead 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: 1beta.0.0 */