From 17f80fb93e840499d17a8f3f688cd09b88d13879 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 15 May 2025 11:53:51 +0000 Subject: [PATCH] Generate lbapplication --- services/lbapplication/api_default.go | 829 ++++++++++++++---- services/lbapplication/client.go | 2 +- .../model_create_load_balancer_payload.go | 2 +- .../model_get_service_status_response.go | 2 +- services/lbapplication/model_listener.go | 2 +- services/lbapplication/model_load_balancer.go | 2 +- .../model_load_balancer_error.go | 2 +- services/lbapplication/model_network.go | 2 +- .../model_update_load_balancer_payload.go | 2 +- 9 files changed, 667 insertions(+), 178 deletions(-) diff --git a/services/lbapplication/api_default.go b/services/lbapplication/api_default.go index a775a2b5..3c0b1c6b 100644 --- a/services/lbapplication/api_default.go +++ b/services/lbapplication/api_default.go @@ -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, @@ -169,7 +598,7 @@ Deprecated: Creates and stores credentials for use with Application Load Balance @return ApiCreateCredentialsRequest */ func (a *APIClient) CreateCredentials(ctx context.Context, projectId string) ApiCreateCredentialsRequest { - return ApiCreateCredentialsRequest{ + return CreateCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -183,7 +612,7 @@ Deprecated: Creates and stores credentials for use with Application Load Balance 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, @@ -191,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 @@ -199,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{} @@ -217,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()} } @@ -254,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 } @@ -264,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 @@ -288,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 @@ -298,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 @@ -308,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, @@ -333,7 +766,7 @@ Deprecated: 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, @@ -346,7 +779,7 @@ 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, @@ -354,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{} @@ -369,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()} } @@ -399,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 } @@ -409,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 @@ -433,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 @@ -443,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 @@ -453,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, @@ -477,7 +914,7 @@ Deprecated: 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, @@ -489,7 +926,7 @@ 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, @@ -498,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{} @@ -513,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()} } @@ -543,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 } @@ -553,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 @@ -577,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 @@ -587,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 @@ -597,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, @@ -621,7 +1062,7 @@ Deprecated: 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, @@ -633,7 +1074,7 @@ 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, @@ -642,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{} @@ -656,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()} } @@ -685,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 } @@ -695,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 @@ -719,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 @@ -729,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 @@ -739,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, @@ -765,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, @@ -779,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, @@ -787,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{} @@ -807,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()} } @@ -839,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 } @@ -849,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 @@ -873,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 @@ -883,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 @@ -893,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, @@ -918,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, @@ -931,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, @@ -939,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{} @@ -954,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()} } @@ -984,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 } @@ -994,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 @@ -1018,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 @@ -1028,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 @@ -1038,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, @@ -1062,7 +1515,7 @@ Deprecated: 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, @@ -1074,7 +1527,7 @@ 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, @@ -1083,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{} @@ -1098,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()} } @@ -1128,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 } @@ -1138,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 @@ -1162,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 @@ -1172,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 @@ -1182,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, @@ -1208,7 +1665,7 @@ Deprecated: Retrieves details of a specific Application Load Balancer in a proje @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, @@ -1222,7 +1679,7 @@ Deprecated: Retrieves details of a specific Application Load Balancer in a proje 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, @@ -1231,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{} @@ -1245,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()} } @@ -1274,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 } @@ -1284,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 @@ -1308,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 @@ -1318,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 @@ -1328,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, @@ -1353,7 +1814,7 @@ Deprecated: Retrieves the configured Application Load Balancer quota for the pro @return ApiGetQuotaRequest */ func (a *APIClient) GetQuota(ctx context.Context, projectId string) ApiGetQuotaRequest { - return ApiGetQuotaRequest{ + return GetQuotaRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1366,7 +1827,7 @@ Deprecated: Retrieves the configured Application Load Balancer quota for the pro 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, @@ -1374,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{} @@ -1388,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()} } @@ -1417,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 } @@ -1427,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 @@ -1451,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 @@ -1461,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 @@ -1471,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, @@ -1496,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, @@ -1509,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, @@ -1517,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{} @@ -1531,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()} } @@ -1560,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 } @@ -1570,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 @@ -1594,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 @@ -1604,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 @@ -1614,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, @@ -1637,7 +2106,7 @@ Deprecated: Lists the stored Observability credentials. @return ApiListCredentialsRequest */ func (a *APIClient) ListCredentials(ctx context.Context, projectId string) ApiListCredentialsRequest { - return ApiListCredentialsRequest{ + return ListCredentialsRequest{ apiService: a.defaultApi, ctx: ctx, projectId: projectId, @@ -1648,7 +2117,7 @@ func (a *APIClient) ListCredentials(ctx context.Context, projectId string) ApiLi 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, @@ -1656,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 @@ -1666,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{} @@ -1686,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()} } @@ -1721,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 } @@ -1731,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 @@ -1755,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 @@ -1765,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 @@ -1775,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, @@ -1800,7 +2273,7 @@ Deprecated: 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, @@ -1813,7 +2286,7 @@ 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, @@ -1821,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{} @@ -1834,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()} } @@ -1862,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 } @@ -1872,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 @@ -1896,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 @@ -1906,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 @@ -1916,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, @@ -1938,7 +2415,7 @@ Deprecated: Lists the configured service plans for a project. @return ApiListPlansRequest */ func (a *APIClient) ListPlans(ctx context.Context) ApiListPlansRequest { - return ApiListPlansRequest{ + return ListPlansRequest{ apiService: a.defaultApi, ctx: ctx, } @@ -1948,14 +2425,14 @@ func (a *APIClient) ListPlans(ctx context.Context) ApiListPlansRequest { 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 @@ -1963,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{} @@ -1976,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()} } @@ -2011,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 } @@ -2021,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 @@ -2045,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 @@ -2055,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 @@ -2065,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, @@ -2089,7 +2570,7 @@ Deprecated: 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, @@ -2101,7 +2582,7 @@ 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, @@ -2110,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 @@ -2118,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{} @@ -2131,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()} } @@ -2166,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 } @@ -2176,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 @@ -2200,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 @@ -2210,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 @@ -2220,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, @@ -2247,7 +2732,7 @@ Deprecated: Updates an existing Application Load Balancer by modifying its liste @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, @@ -2262,7 +2747,7 @@ Deprecated: Updates an existing Application Load Balancer by modifying its liste 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, @@ -2271,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 @@ -2280,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{} @@ -2293,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()} } @@ -2329,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 } @@ -2339,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 @@ -2363,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 @@ -2373,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 @@ -2383,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, @@ -2411,7 +2900,7 @@ Deprecated: Replaces the content of a specific target pool in the Application Lo @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, @@ -2427,7 +2916,7 @@ Deprecated: Replaces the content of a specific target pool in the Application Lo 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/client.go b/services/lbapplication/client.go index 1fe66a02..902410d5 100644 --- a/services/lbapplication/client.go +++ b/services/lbapplication/client.go @@ -51,7 +51,7 @@ type APIClient struct { } type service struct { - client *APIClient + client DefaultApi } // NewAPIClient creates a new API client. diff --git a/services/lbapplication/model_create_load_balancer_payload.go b/services/lbapplication/model_create_load_balancer_payload.go index d7e39c7d..3cb4779e 100644 --- a/services/lbapplication/model_create_load_balancer_payload.go +++ b/services/lbapplication/model_create_load_balancer_payload.go @@ -186,7 +186,7 @@ type CreateLoadBalancerPayloadGetPrivateAddressRetType = string types and functions for status */ -//isEnum +// isEnum // CreateLoadBalancerPayloadStatus the model 'CreateLoadBalancerPayload' type CreateLoadBalancerPayloadStatus string diff --git a/services/lbapplication/model_get_service_status_response.go b/services/lbapplication/model_get_service_status_response.go index 7f1d45a6..a009b9f0 100644 --- a/services/lbapplication/model_get_service_status_response.go +++ b/services/lbapplication/model_get_service_status_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &GetServiceStatusResponse{} types and functions for status */ -//isEnum +// isEnum // GetServiceStatusResponseStatus status of the project type GetServiceStatusResponseStatus string diff --git a/services/lbapplication/model_listener.go b/services/lbapplication/model_listener.go index c2633089..cf3687a6 100644 --- a/services/lbapplication/model_listener.go +++ b/services/lbapplication/model_listener.go @@ -124,7 +124,7 @@ func setListenerGetPortAttributeType(arg *ListenerGetPortAttributeType, val List types and functions for protocol */ -//isEnum +// isEnum // ListenerProtocol Protocol is the highest network protocol we understand to load balance. Currently PROTOCOL_HTTP and PROTOCOL_HTTPS are supported. type ListenerProtocol string diff --git a/services/lbapplication/model_load_balancer.go b/services/lbapplication/model_load_balancer.go index f8ba6b55..c7b7e147 100644 --- a/services/lbapplication/model_load_balancer.go +++ b/services/lbapplication/model_load_balancer.go @@ -186,7 +186,7 @@ type LoadBalancerGetPrivateAddressRetType = string types and functions for status */ -//isEnum +// isEnum // LoadBalancerStatus the model 'LoadBalancer' type LoadBalancerStatus string diff --git a/services/lbapplication/model_load_balancer_error.go b/services/lbapplication/model_load_balancer_error.go index 587b8784..a79431df 100644 --- a/services/lbapplication/model_load_balancer_error.go +++ b/services/lbapplication/model_load_balancer_error.go @@ -43,7 +43,7 @@ type LoadBalancerErrorGetDescriptionRetType = string types and functions for type */ -//isEnum +// isEnum // LoadBalancerErrorTypes The error type specifies which part of the application load balancer encountered the error. I.e. the API will not check if a provided public IP is actually available in the project. Instead the application load balancer with try to use the provided IP and if not available reports TYPE_FIP_NOT_CONFIGURED error. type LoadBalancerErrorTypes string diff --git a/services/lbapplication/model_network.go b/services/lbapplication/model_network.go index 4bbc3c54..34af241f 100644 --- a/services/lbapplication/model_network.go +++ b/services/lbapplication/model_network.go @@ -43,7 +43,7 @@ type NetworkGetNetworkIdRetType = string types and functions for role */ -//isEnum +// isEnum // NetworkRole The role defines how the Application Load Balancer is using the network. Currently only ROLE_LISTENERS_AND_TARGETS is supported. type NetworkRole string diff --git a/services/lbapplication/model_update_load_balancer_payload.go b/services/lbapplication/model_update_load_balancer_payload.go index 62ccbafb..7825fe1b 100644 --- a/services/lbapplication/model_update_load_balancer_payload.go +++ b/services/lbapplication/model_update_load_balancer_payload.go @@ -186,7 +186,7 @@ type UpdateLoadBalancerPayloadGetPrivateAddressRetType = string types and functions for status */ -//isEnum +// isEnum // UpdateLoadBalancerPayloadStatus the model 'UpdateLoadBalancerPayload' type UpdateLoadBalancerPayloadStatus string