diff --git a/CHANGELOG.md b/CHANGELOG.md index c48e48dd1..511326ca0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,8 +76,13 @@ - **Dependencies:** Bump STACKIT SDK core module from `v0.22.0` to `v0.23.0` - `kms`: [v1.5.1](services/kms/CHANGELOG.md#v151) - **Dependencies:** Bump STACKIT SDK core module from `v0.22.0` to `v0.23.0` -- `loadbalancer`: [v1.10.1](services/loadbalancer/CHANGELOG.md#v1101) - - **Dependencies:** Bump STACKIT SDK core module from `v0.22.0` to `v0.23.0` +- `loadbalancer`: + - [v1.10.1](services/loadbalancer/CHANGELOG.md#v1101) + - **Dependencies:** Bump STACKIT SDK core module from `v0.22.0` to `v0.23.0` + - [v1.11.0](services/loadbalancer/CHANGELOG.md#v1110) + - Update description of `GetQuota` method + - `v1api` + - **Deprecation:** The `v1api` is deprecated and will be removed in the future. Migrate to `v2api` - `logme`: [v0.27.1](services/logme/CHANGELOG.md#v0271) - **Dependencies:** Bump STACKIT SDK core module from `v0.22.0` to `v0.23.0` - `logs`: [v0.7.1](services/logs/CHANGELOG.md#v071) diff --git a/services/loadbalancer/CHANGELOG.md b/services/loadbalancer/CHANGELOG.md index c58c51d9c..004efa113 100644 --- a/services/loadbalancer/CHANGELOG.md +++ b/services/loadbalancer/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.11.0 +- Update description of `GetQuota` method +- `v1api` + - **Deprecation:** The `v1api` is deprecated and will be removed in the future. Migrate to `v2api` + ## v1.10.1 - **Dependencies:** Bump STACKIT SDK core module from `v0.22.0` to `v0.23.0` diff --git a/services/loadbalancer/VERSION b/services/loadbalancer/VERSION index ae34460db..285cea5d1 100644 --- a/services/loadbalancer/VERSION +++ b/services/loadbalancer/VERSION @@ -1 +1 @@ -v1.10.1 \ No newline at end of file +v1.11.0 \ No newline at end of file diff --git a/services/loadbalancer/api_default.go b/services/loadbalancer/api_default.go index b8db62a30..4cf049903 100644 --- a/services/loadbalancer/api_default.go +++ b/services/loadbalancer/api_default.go @@ -178,9 +178,8 @@ type DefaultApi interface { */ GetLoadBalancerExecute(ctx context.Context, projectId string, region string, name string) (*LoadBalancer, error) /* - GetQuota Get the quota of Load Balancers in a project. - Retrieves the configured Load Balancer quota for the project. Limit can be changed via service request. - There can be 3 times as many observability credentials as Load Balancers. + GetQuota Get the quota of Network Load Balancers in a project. + Retrieves the configured Network Load Balancer quota for the project. Limit can be changed via service request. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -1527,7 +1526,7 @@ func (r GetQuotaRequest) Execute() (*GetQuotaResponse, error) { } /* -GetQuota: Get the quota of Load Balancers in a project. +GetQuota: Get the quota of Network Load Balancers in a project. Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead diff --git a/services/loadbalancer/model_get_quota_response.go b/services/loadbalancer/model_get_quota_response.go index 3c2f1cf93..5d2b544ee 100644 --- a/services/loadbalancer/model_get_quota_response.go +++ b/services/loadbalancer/model_get_quota_response.go @@ -186,7 +186,7 @@ type GetQuotaResponse struct { // The maximum number of observability credentials that can be stored in this project. // Can be cast to int32 without loss of precision. MaxCredentials GetQuotaResponseGetMaxCredentialsAttributeType `json:"maxCredentials,omitempty"` - // The maximum number of load balancing servers in this project. Unlimited if set to -1. + // The maximum number of load balancing servers in this project. // Can be cast to int32 without loss of precision. MaxLoadBalancers GetQuotaResponseGetMaxLoadBalancersAttributeType `json:"maxLoadBalancers,omitempty"` // Project identifier diff --git a/services/loadbalancer/model_listener.go b/services/loadbalancer/model_listener.go index 9e441e202..d9dbc70ab 100644 --- a/services/loadbalancer/model_listener.go +++ b/services/loadbalancer/model_listener.go @@ -375,7 +375,7 @@ type Listener struct { Port ListenerGetPortAttributeType `json:"port,omitempty"` // Protocol is the highest network protocol we understand to load balance. Currently only PROTOCOL_TCP, PROTOCOL_TCP_PROXY and PROTOCOL_TLS_PASSTHROUGH are supported. Protocol ListenerGetProtocolAttributeType `json:"protocol,omitempty"` - // Server Name Indicators config for domains to be routed to the desired target pool for this listener. + // Deprecated: Server Name Indicators config for domains to be routed to the desired target pool for this listener. ServerNameIndicators ListenerGetServerNameIndicatorsAttributeType `json:"serverNameIndicators,omitempty"` // Reference target pool by target pool name. TargetPool ListenerGetTargetPoolAttributeType `json:"targetPool,omitempty"` diff --git a/services/loadbalancer/oas_commit b/services/loadbalancer/oas_commit index e3713dde3..cca6a5e9a 100644 --- a/services/loadbalancer/oas_commit +++ b/services/loadbalancer/oas_commit @@ -1 +1 @@ -0e64886dd0847341800d7191ed193b75413be998 +95de5cba3201a683657cb472d5fa30aa768f19cc diff --git a/services/loadbalancer/v1api/api_default.go b/services/loadbalancer/v1api/api_default.go index 42e0ef111..bdfccd070 100644 --- a/services/loadbalancer/v1api/api_default.go +++ b/services/loadbalancer/v1api/api_default.go @@ -33,11 +33,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiCreateCredentialsRequest + + Deprecated */ CreateCredentials(ctx context.Context, projectId string) ApiCreateCredentialsRequest // CreateCredentialsExecute executes the request // @return CreateCredentialsResponse + // Deprecated CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) /* @@ -49,11 +52,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiCreateLoadBalancerRequest + + Deprecated */ CreateLoadBalancer(ctx context.Context, projectId string) ApiCreateLoadBalancerRequest // CreateLoadBalancerExecute executes the request // @return LoadBalancer + // Deprecated CreateLoadBalancerExecute(r ApiCreateLoadBalancerRequest) (*LoadBalancer, error) /* @@ -65,11 +71,14 @@ type DefaultAPI interface { @param projectId @param credentialsRef @return ApiDeleteCredentialsRequest + + Deprecated */ DeleteCredentials(ctx context.Context, projectId string, credentialsRef string) ApiDeleteCredentialsRequest // DeleteCredentialsExecute executes the request // @return map[string]interface{} + // Deprecated DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (map[string]interface{}, error) /* @@ -81,11 +90,14 @@ type DefaultAPI interface { @param projectId @param name @return ApiDeleteLoadBalancerRequest + + Deprecated */ DeleteLoadBalancer(ctx context.Context, projectId string, name string) ApiDeleteLoadBalancerRequest // DeleteLoadBalancerExecute executes the request // @return map[string]interface{} + // Deprecated DeleteLoadBalancerExecute(r ApiDeleteLoadBalancerRequest) (map[string]interface{}, error) /* @@ -135,11 +147,14 @@ type DefaultAPI interface { @param projectId @param credentialsRef @return ApiGetCredentialsRequest + + Deprecated */ GetCredentials(ctx context.Context, projectId string, credentialsRef string) ApiGetCredentialsRequest // GetCredentialsExecute executes the request // @return GetCredentialsResponse + // Deprecated GetCredentialsExecute(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) /* @@ -153,27 +168,32 @@ type DefaultAPI interface { @param projectId @param name @return ApiGetLoadBalancerRequest + + Deprecated */ GetLoadBalancer(ctx context.Context, projectId string, name string) ApiGetLoadBalancerRequest // GetLoadBalancerExecute executes the request // @return LoadBalancer + // Deprecated GetLoadBalancerExecute(r ApiGetLoadBalancerRequest) (*LoadBalancer, error) /* - GetQuota Get the quota for Load Balancers in a project. + GetQuota Get the quota of Network Load Balancers in a project. - Retrieves the configured Load Balancer quota for the project. Limit can be changed via service request. - There can be 3 times as many observability credentials as Load Balancers. + Retrieves the configured Network Load Balancer quota for the project. Limit can be changed via service request. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @return ApiGetQuotaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiGetQuotaRequest + + Deprecated */ GetQuota(ctx context.Context, projectId string) ApiGetQuotaRequest // GetQuotaExecute executes the request // @return GetQuotaResponse + // Deprecated GetQuotaExecute(r ApiGetQuotaRequest) (*GetQuotaResponse, error) /* @@ -203,11 +223,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListCredentialsRequest + + Deprecated */ ListCredentials(ctx context.Context, projectId string) ApiListCredentialsRequest // ListCredentialsExecute executes the request // @return ListCredentialsResponse + // Deprecated ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) /* @@ -220,11 +243,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListLoadBalancersRequest + + Deprecated */ ListLoadBalancers(ctx context.Context, projectId string) ApiListLoadBalancersRequest // ListLoadBalancersExecute executes the request // @return ListLoadBalancersResponse + // Deprecated ListLoadBalancersExecute(r ApiListLoadBalancersRequest) (*ListLoadBalancersResponse, error) /* @@ -234,11 +260,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListPlansRequest + + Deprecated */ ListPlans(ctx context.Context) ApiListPlansRequest // ListPlansExecute executes the request // @return ListPlansResponse + // Deprecated ListPlansExecute(r ApiListPlansRequest) (*ListPlansResponse, error) /* @@ -250,11 +279,14 @@ type DefaultAPI interface { @param projectId @param credentialsRef @return ApiUpdateCredentialsRequest + + Deprecated */ UpdateCredentials(ctx context.Context, projectId string, credentialsRef string) ApiUpdateCredentialsRequest // UpdateCredentialsExecute executes the request // @return UpdateCredentialsResponse + // Deprecated UpdateCredentialsExecute(r ApiUpdateCredentialsRequest) (*UpdateCredentialsResponse, error) /* @@ -268,11 +300,14 @@ type DefaultAPI interface { @param projectId @param name @return ApiUpdateLoadBalancerRequest + + Deprecated */ UpdateLoadBalancer(ctx context.Context, projectId string, name string) ApiUpdateLoadBalancerRequest // UpdateLoadBalancerExecute executes the request // @return LoadBalancer + // Deprecated UpdateLoadBalancerExecute(r ApiUpdateLoadBalancerRequest) (*LoadBalancer, error) /* @@ -288,11 +323,14 @@ type DefaultAPI interface { @param name @param targetPoolName @return ApiUpdateTargetPoolRequest + + Deprecated */ UpdateTargetPool(ctx context.Context, projectId string, name string, targetPoolName string) ApiUpdateTargetPoolRequest // UpdateTargetPoolExecute executes the request // @return TargetPool + // Deprecated UpdateTargetPoolExecute(r ApiUpdateTargetPoolRequest) (*TargetPool, error) } @@ -332,6 +370,8 @@ Create credentials can be used to store existing credentials, which are valid to @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiCreateCredentialsRequest + +Deprecated */ func (a *DefaultAPIService) CreateCredentials(ctx context.Context, projectId string) ApiCreateCredentialsRequest { return ApiCreateCredentialsRequest{ @@ -344,6 +384,8 @@ func (a *DefaultAPIService) CreateCredentials(ctx context.Context, projectId str // Execute executes the request // // @return CreateCredentialsResponse +// +// Deprecated func (a *DefaultAPIService) CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -490,6 +532,8 @@ Create Load Balancer will create a load balancer. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiCreateLoadBalancerRequest + +Deprecated */ func (a *DefaultAPIService) CreateLoadBalancer(ctx context.Context, projectId string) ApiCreateLoadBalancerRequest { return ApiCreateLoadBalancerRequest{ @@ -502,6 +546,8 @@ func (a *DefaultAPIService) CreateLoadBalancer(ctx context.Context, projectId st // Execute executes the request // // @return LoadBalancer +// +// Deprecated func (a *DefaultAPIService) CreateLoadBalancerExecute(r ApiCreateLoadBalancerRequest) (*LoadBalancer, error) { var ( localVarHTTPMethod = http.MethodPost @@ -636,6 +682,8 @@ Delete Credential @param projectId @param credentialsRef @return ApiDeleteCredentialsRequest + +Deprecated */ func (a *DefaultAPIService) DeleteCredentials(ctx context.Context, projectId string, credentialsRef string) ApiDeleteCredentialsRequest { return ApiDeleteCredentialsRequest{ @@ -649,6 +697,8 @@ func (a *DefaultAPIService) DeleteCredentials(ctx context.Context, projectId str // Execute executes the request // // @return map[string]interface{} +// +// Deprecated func (a *DefaultAPIService) DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (map[string]interface{}, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -776,6 +826,8 @@ DeleteLoadBalancer will delete a given load balancer. @param projectId @param name @return ApiDeleteLoadBalancerRequest + +Deprecated */ func (a *DefaultAPIService) DeleteLoadBalancer(ctx context.Context, projectId string, name string) ApiDeleteLoadBalancerRequest { return ApiDeleteLoadBalancerRequest{ @@ -789,6 +841,8 @@ func (a *DefaultAPIService) DeleteLoadBalancer(ctx context.Context, projectId st // Execute executes the request // // @return map[string]interface{} +// +// Deprecated func (a *DefaultAPIService) DeleteLoadBalancerExecute(r ApiDeleteLoadBalancerRequest) (map[string]interface{}, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -1209,6 +1263,8 @@ Get Credentials @param projectId @param credentialsRef @return ApiGetCredentialsRequest + +Deprecated */ func (a *DefaultAPIService) GetCredentials(ctx context.Context, projectId string, credentialsRef string) ApiGetCredentialsRequest { return ApiGetCredentialsRequest{ @@ -1222,6 +1278,8 @@ func (a *DefaultAPIService) GetCredentials(ctx context.Context, projectId string // Execute executes the request // // @return GetCredentialsResponse +// +// Deprecated func (a *DefaultAPIService) GetCredentialsExecute(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1352,6 +1410,8 @@ Get Load Balancer will get a single load balancer of a project. This contains al @param projectId @param name @return ApiGetLoadBalancerRequest + +Deprecated */ func (a *DefaultAPIService) GetLoadBalancer(ctx context.Context, projectId string, name string) ApiGetLoadBalancerRequest { return ApiGetLoadBalancerRequest{ @@ -1365,6 +1425,8 @@ func (a *DefaultAPIService) GetLoadBalancer(ctx context.Context, projectId strin // Execute executes the request // // @return LoadBalancer +// +// Deprecated func (a *DefaultAPIService) GetLoadBalancerExecute(r ApiGetLoadBalancerRequest) (*LoadBalancer, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1483,15 +1545,15 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { } /* -GetQuota Get the quota for Load Balancers in a project. - -Retrieves the configured Load Balancer quota for the project. Limit can be changed via service request. +GetQuota Get the quota of Network Load Balancers in a project. - There can be 3 times as many observability credentials as Load Balancers. +Retrieves the configured Network Load Balancer quota for the project. Limit can be changed via service request. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiGetQuotaRequest + +Deprecated */ func (a *DefaultAPIService) GetQuota(ctx context.Context, projectId string) ApiGetQuotaRequest { return ApiGetQuotaRequest{ @@ -1504,6 +1566,8 @@ func (a *DefaultAPIService) GetQuota(ctx context.Context, projectId string) ApiG // Execute executes the request // // @return GetQuotaResponse +// +// Deprecated func (a *DefaultAPIService) GetQuotaExecute(r ApiGetQuotaRequest) (*GetQuotaResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1770,6 +1834,8 @@ List Credentials @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListCredentialsRequest + +Deprecated */ func (a *DefaultAPIService) ListCredentials(ctx context.Context, projectId string) ApiListCredentialsRequest { return ApiListCredentialsRequest{ @@ -1782,6 +1848,8 @@ func (a *DefaultAPIService) ListCredentials(ctx context.Context, projectId strin // Execute executes the request // // @return ListCredentialsResponse +// +// Deprecated func (a *DefaultAPIService) ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1923,6 +1991,8 @@ ListLoadBalancer will list load balancers of a project. This contains informatio @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListLoadBalancersRequest + +Deprecated */ func (a *DefaultAPIService) ListLoadBalancers(ctx context.Context, projectId string) ApiListLoadBalancersRequest { return ApiListLoadBalancersRequest{ @@ -1935,6 +2005,8 @@ func (a *DefaultAPIService) ListLoadBalancers(ctx context.Context, projectId str // Execute executes the request // // @return ListLoadBalancersResponse +// +// Deprecated func (a *DefaultAPIService) ListLoadBalancersExecute(r ApiListLoadBalancersRequest) (*ListLoadBalancersResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2063,6 +2135,8 @@ ListPlans returns for 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 + +Deprecated */ func (a *DefaultAPIService) ListPlans(ctx context.Context) ApiListPlansRequest { return ApiListPlansRequest{ @@ -2074,6 +2148,8 @@ func (a *DefaultAPIService) ListPlans(ctx context.Context) ApiListPlansRequest { // Execute executes the request // // @return ListPlansResponse +// +// Deprecated func (a *DefaultAPIService) ListPlansExecute(r ApiListPlansRequest) (*ListPlansResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2205,6 +2281,8 @@ Update Credentials @param projectId @param credentialsRef @return ApiUpdateCredentialsRequest + +Deprecated */ func (a *DefaultAPIService) UpdateCredentials(ctx context.Context, projectId string, credentialsRef string) ApiUpdateCredentialsRequest { return ApiUpdateCredentialsRequest{ @@ -2218,6 +2296,8 @@ func (a *DefaultAPIService) UpdateCredentials(ctx context.Context, projectId str // Execute executes the request // // @return UpdateCredentialsResponse +// +// Deprecated func (a *DefaultAPIService) UpdateCredentialsExecute(r ApiUpdateCredentialsRequest) (*UpdateCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -2359,6 +2439,8 @@ Update Load Balancer allows the change of listeners and target pools of an exist @param projectId @param name @return ApiUpdateLoadBalancerRequest + +Deprecated */ func (a *DefaultAPIService) UpdateLoadBalancer(ctx context.Context, projectId string, name string) ApiUpdateLoadBalancerRequest { return ApiUpdateLoadBalancerRequest{ @@ -2372,6 +2454,8 @@ func (a *DefaultAPIService) UpdateLoadBalancer(ctx context.Context, projectId st // Execute executes the request // // @return LoadBalancer +// +// Deprecated func (a *DefaultAPIService) UpdateLoadBalancerExecute(r ApiUpdateLoadBalancerRequest) (*LoadBalancer, error) { var ( localVarHTTPMethod = http.MethodPut @@ -2516,6 +2600,8 @@ ReplaceTargetPool will replace a specific target pool of a load balancer with ne @param name @param targetPoolName @return ApiUpdateTargetPoolRequest + +Deprecated */ func (a *DefaultAPIService) UpdateTargetPool(ctx context.Context, projectId string, name string, targetPoolName string) ApiUpdateTargetPoolRequest { return ApiUpdateTargetPoolRequest{ @@ -2530,6 +2616,8 @@ func (a *DefaultAPIService) UpdateTargetPool(ctx context.Context, projectId stri // Execute executes the request // // @return TargetPool +// +// Deprecated func (a *DefaultAPIService) UpdateTargetPoolExecute(r ApiUpdateTargetPoolRequest) (*TargetPool, error) { var ( localVarHTTPMethod = http.MethodPut diff --git a/services/loadbalancer/v1api/api_default_mock.go b/services/loadbalancer/v1api/api_default_mock.go index 17bc11060..952095cd8 100644 --- a/services/loadbalancer/v1api/api_default_mock.go +++ b/services/loadbalancer/v1api/api_default_mock.go @@ -20,40 +20,41 @@ var _ DefaultAPI = &DefaultAPIServiceMock{} // DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. // By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. type DefaultAPIServiceMock struct { - // CreateCredentialsExecuteMock can be populated to implement the behavior of the CreateCredentialsExecute function of this mock + // Deprecated: CreateCredentialsExecuteMock can be populated to implement the behavior of the CreateCredentialsExecute function of this mock CreateCredentialsExecuteMock *func(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) - // CreateLoadBalancerExecuteMock can be populated to implement the behavior of the CreateLoadBalancerExecute function of this mock + // Deprecated: CreateLoadBalancerExecuteMock can be populated to implement the behavior of the CreateLoadBalancerExecute function of this mock CreateLoadBalancerExecuteMock *func(r ApiCreateLoadBalancerRequest) (*LoadBalancer, error) - // DeleteCredentialsExecuteMock can be populated to implement the behavior of the DeleteCredentialsExecute function of this mock + // Deprecated: DeleteCredentialsExecuteMock can be populated to implement the behavior of the DeleteCredentialsExecute function of this mock DeleteCredentialsExecuteMock *func(r ApiDeleteCredentialsRequest) (map[string]interface{}, error) - // DeleteLoadBalancerExecuteMock can be populated to implement the behavior of the DeleteLoadBalancerExecute function of this mock + // Deprecated: DeleteLoadBalancerExecuteMock can be populated to implement the behavior of the DeleteLoadBalancerExecute function of this mock DeleteLoadBalancerExecuteMock *func(r ApiDeleteLoadBalancerRequest) (map[string]interface{}, error) // Deprecated: DisableServiceExecuteMock can be populated to implement the behavior of the DisableServiceExecute function of this mock DisableServiceExecuteMock *func(r ApiDisableServiceRequest) (map[string]interface{}, error) // Deprecated: EnableServiceExecuteMock can be populated to implement the behavior of the EnableServiceExecute function of this mock EnableServiceExecuteMock *func(r ApiEnableServiceRequest) (map[string]interface{}, error) - // GetCredentialsExecuteMock can be populated to implement the behavior of the GetCredentialsExecute function of this mock + // Deprecated: GetCredentialsExecuteMock can be populated to implement the behavior of the GetCredentialsExecute function of this mock GetCredentialsExecuteMock *func(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) - // GetLoadBalancerExecuteMock can be populated to implement the behavior of the GetLoadBalancerExecute function of this mock + // Deprecated: GetLoadBalancerExecuteMock can be populated to implement the behavior of the GetLoadBalancerExecute function of this mock GetLoadBalancerExecuteMock *func(r ApiGetLoadBalancerRequest) (*LoadBalancer, error) - // GetQuotaExecuteMock can be populated to implement the behavior of the GetQuotaExecute function of this mock + // Deprecated: GetQuotaExecuteMock can be populated to implement the behavior of the GetQuotaExecute function of this mock GetQuotaExecuteMock *func(r ApiGetQuotaRequest) (*GetQuotaResponse, error) // Deprecated: GetServiceStatusExecuteMock can be populated to implement the behavior of the GetServiceStatusExecute function of this mock GetServiceStatusExecuteMock *func(r ApiGetServiceStatusRequest) (*GetServiceStatusResponse, error) - // ListCredentialsExecuteMock can be populated to implement the behavior of the ListCredentialsExecute function of this mock + // Deprecated: ListCredentialsExecuteMock can be populated to implement the behavior of the ListCredentialsExecute function of this mock ListCredentialsExecuteMock *func(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) - // ListLoadBalancersExecuteMock can be populated to implement the behavior of the ListLoadBalancersExecute function of this mock + // Deprecated: ListLoadBalancersExecuteMock can be populated to implement the behavior of the ListLoadBalancersExecute function of this mock ListLoadBalancersExecuteMock *func(r ApiListLoadBalancersRequest) (*ListLoadBalancersResponse, error) - // ListPlansExecuteMock can be populated to implement the behavior of the ListPlansExecute function of this mock + // Deprecated: ListPlansExecuteMock can be populated to implement the behavior of the ListPlansExecute function of this mock ListPlansExecuteMock *func(r ApiListPlansRequest) (*ListPlansResponse, error) - // UpdateCredentialsExecuteMock can be populated to implement the behavior of the UpdateCredentialsExecute function of this mock + // Deprecated: UpdateCredentialsExecuteMock can be populated to implement the behavior of the UpdateCredentialsExecute function of this mock UpdateCredentialsExecuteMock *func(r ApiUpdateCredentialsRequest) (*UpdateCredentialsResponse, error) - // UpdateLoadBalancerExecuteMock can be populated to implement the behavior of the UpdateLoadBalancerExecute function of this mock + // Deprecated: UpdateLoadBalancerExecuteMock can be populated to implement the behavior of the UpdateLoadBalancerExecute function of this mock UpdateLoadBalancerExecuteMock *func(r ApiUpdateLoadBalancerRequest) (*LoadBalancer, error) - // UpdateTargetPoolExecuteMock can be populated to implement the behavior of the UpdateTargetPoolExecute function of this mock + // Deprecated: UpdateTargetPoolExecuteMock can be populated to implement the behavior of the UpdateTargetPoolExecute function of this mock UpdateTargetPoolExecuteMock *func(r ApiUpdateTargetPoolRequest) (*TargetPool, error) } +// Deprecated func (a DefaultAPIServiceMock) CreateCredentials(ctx context.Context, projectId string) ApiCreateCredentialsRequest { return ApiCreateCredentialsRequest{ ApiService: a, @@ -62,7 +63,7 @@ func (a DefaultAPIServiceMock) CreateCredentials(ctx context.Context, projectId } } -// CreateCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateCredentialsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) { if a.CreateCredentialsExecuteMock == nil { var localVarReturnValue *CreateCredentialsResponse @@ -72,6 +73,7 @@ func (a DefaultAPIServiceMock) CreateCredentialsExecute(r ApiCreateCredentialsRe return (*a.CreateCredentialsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateLoadBalancer(ctx context.Context, projectId string) ApiCreateLoadBalancerRequest { return ApiCreateLoadBalancerRequest{ ApiService: a, @@ -80,7 +82,7 @@ func (a DefaultAPIServiceMock) CreateLoadBalancer(ctx context.Context, projectId } } -// CreateLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateLoadBalancerExecute(r ApiCreateLoadBalancerRequest) (*LoadBalancer, error) { if a.CreateLoadBalancerExecuteMock == nil { var localVarReturnValue *LoadBalancer @@ -90,6 +92,7 @@ func (a DefaultAPIServiceMock) CreateLoadBalancerExecute(r ApiCreateLoadBalancer return (*a.CreateLoadBalancerExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteCredentials(ctx context.Context, projectId string, credentialsRef string) ApiDeleteCredentialsRequest { return ApiDeleteCredentialsRequest{ ApiService: a, @@ -99,7 +102,7 @@ func (a DefaultAPIServiceMock) DeleteCredentials(ctx context.Context, projectId } } -// DeleteCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCredentialsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (map[string]interface{}, error) { if a.DeleteCredentialsExecuteMock == nil { var localVarReturnValue map[string]interface{} @@ -109,6 +112,7 @@ func (a DefaultAPIServiceMock) DeleteCredentialsExecute(r ApiDeleteCredentialsRe return (*a.DeleteCredentialsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteLoadBalancer(ctx context.Context, projectId string, name string) ApiDeleteLoadBalancerRequest { return ApiDeleteLoadBalancerRequest{ ApiService: a, @@ -118,7 +122,7 @@ func (a DefaultAPIServiceMock) DeleteLoadBalancer(ctx context.Context, projectId } } -// DeleteLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteLoadBalancerExecute(r ApiDeleteLoadBalancerRequest) (map[string]interface{}, error) { if a.DeleteLoadBalancerExecuteMock == nil { var localVarReturnValue map[string]interface{} @@ -166,6 +170,7 @@ func (a DefaultAPIServiceMock) EnableServiceExecute(r ApiEnableServiceRequest) ( return (*a.EnableServiceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetCredentials(ctx context.Context, projectId string, credentialsRef string) ApiGetCredentialsRequest { return ApiGetCredentialsRequest{ ApiService: a, @@ -175,7 +180,7 @@ func (a DefaultAPIServiceMock) GetCredentials(ctx context.Context, projectId str } } -// GetCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCredentialsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetCredentialsExecute(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) { if a.GetCredentialsExecuteMock == nil { var localVarReturnValue *GetCredentialsResponse @@ -185,6 +190,7 @@ func (a DefaultAPIServiceMock) GetCredentialsExecute(r ApiGetCredentialsRequest) return (*a.GetCredentialsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetLoadBalancer(ctx context.Context, projectId string, name string) ApiGetLoadBalancerRequest { return ApiGetLoadBalancerRequest{ ApiService: a, @@ -194,7 +200,7 @@ func (a DefaultAPIServiceMock) GetLoadBalancer(ctx context.Context, projectId st } } -// GetLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetLoadBalancerExecute(r ApiGetLoadBalancerRequest) (*LoadBalancer, error) { if a.GetLoadBalancerExecuteMock == nil { var localVarReturnValue *LoadBalancer @@ -204,6 +210,7 @@ func (a DefaultAPIServiceMock) GetLoadBalancerExecute(r ApiGetLoadBalancerReques return (*a.GetLoadBalancerExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetQuota(ctx context.Context, projectId string) ApiGetQuotaRequest { return ApiGetQuotaRequest{ ApiService: a, @@ -212,7 +219,7 @@ func (a DefaultAPIServiceMock) GetQuota(ctx context.Context, projectId string) A } } -// GetQuotaExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetQuotaExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetQuotaExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetQuotaExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetQuotaExecute(r ApiGetQuotaRequest) (*GetQuotaResponse, error) { if a.GetQuotaExecuteMock == nil { var localVarReturnValue *GetQuotaResponse @@ -241,6 +248,7 @@ func (a DefaultAPIServiceMock) GetServiceStatusExecute(r ApiGetServiceStatusRequ return (*a.GetServiceStatusExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListCredentials(ctx context.Context, projectId string) ApiListCredentialsRequest { return ApiListCredentialsRequest{ ApiService: a, @@ -249,7 +257,7 @@ func (a DefaultAPIServiceMock) ListCredentials(ctx context.Context, projectId st } } -// ListCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCredentialsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) { if a.ListCredentialsExecuteMock == nil { var localVarReturnValue *ListCredentialsResponse @@ -259,6 +267,7 @@ func (a DefaultAPIServiceMock) ListCredentialsExecute(r ApiListCredentialsReques return (*a.ListCredentialsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListLoadBalancers(ctx context.Context, projectId string) ApiListLoadBalancersRequest { return ApiListLoadBalancersRequest{ ApiService: a, @@ -267,7 +276,7 @@ func (a DefaultAPIServiceMock) ListLoadBalancers(ctx context.Context, projectId } } -// ListLoadBalancersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListLoadBalancersExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListLoadBalancersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListLoadBalancersExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListLoadBalancersExecute(r ApiListLoadBalancersRequest) (*ListLoadBalancersResponse, error) { if a.ListLoadBalancersExecuteMock == nil { var localVarReturnValue *ListLoadBalancersResponse @@ -277,6 +286,7 @@ func (a DefaultAPIServiceMock) ListLoadBalancersExecute(r ApiListLoadBalancersRe return (*a.ListLoadBalancersExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListPlans(ctx context.Context) ApiListPlansRequest { return ApiListPlansRequest{ ApiService: a, @@ -284,7 +294,7 @@ func (a DefaultAPIServiceMock) ListPlans(ctx context.Context) ApiListPlansReques } } -// ListPlansExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListPlansExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListPlansExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListPlansExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListPlansExecute(r ApiListPlansRequest) (*ListPlansResponse, error) { if a.ListPlansExecuteMock == nil { var localVarReturnValue *ListPlansResponse @@ -294,6 +304,7 @@ func (a DefaultAPIServiceMock) ListPlansExecute(r ApiListPlansRequest) (*ListPla return (*a.ListPlansExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateCredentials(ctx context.Context, projectId string, credentialsRef string) ApiUpdateCredentialsRequest { return ApiUpdateCredentialsRequest{ ApiService: a, @@ -303,7 +314,7 @@ func (a DefaultAPIServiceMock) UpdateCredentials(ctx context.Context, projectId } } -// UpdateCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateCredentialsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateCredentialsExecute(r ApiUpdateCredentialsRequest) (*UpdateCredentialsResponse, error) { if a.UpdateCredentialsExecuteMock == nil { var localVarReturnValue *UpdateCredentialsResponse @@ -313,6 +324,7 @@ func (a DefaultAPIServiceMock) UpdateCredentialsExecute(r ApiUpdateCredentialsRe return (*a.UpdateCredentialsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateLoadBalancer(ctx context.Context, projectId string, name string) ApiUpdateLoadBalancerRequest { return ApiUpdateLoadBalancerRequest{ ApiService: a, @@ -322,7 +334,7 @@ func (a DefaultAPIServiceMock) UpdateLoadBalancer(ctx context.Context, projectId } } -// UpdateLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateLoadBalancerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateLoadBalancerExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateLoadBalancerExecute(r ApiUpdateLoadBalancerRequest) (*LoadBalancer, error) { if a.UpdateLoadBalancerExecuteMock == nil { var localVarReturnValue *LoadBalancer @@ -332,6 +344,7 @@ func (a DefaultAPIServiceMock) UpdateLoadBalancerExecute(r ApiUpdateLoadBalancer return (*a.UpdateLoadBalancerExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateTargetPool(ctx context.Context, projectId string, name string, targetPoolName string) ApiUpdateTargetPoolRequest { return ApiUpdateTargetPoolRequest{ ApiService: a, @@ -342,7 +355,7 @@ func (a DefaultAPIServiceMock) UpdateTargetPool(ctx context.Context, projectId s } } -// UpdateTargetPoolExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateTargetPoolExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateTargetPoolExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateTargetPoolExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateTargetPoolExecute(r ApiUpdateTargetPoolRequest) (*TargetPool, error) { if a.UpdateTargetPoolExecuteMock == nil { var localVarReturnValue *TargetPool diff --git a/services/loadbalancer/v1api/model_get_quota_response.go b/services/loadbalancer/v1api/model_get_quota_response.go index c75148245..f37e8005b 100644 --- a/services/loadbalancer/v1api/model_get_quota_response.go +++ b/services/loadbalancer/v1api/model_get_quota_response.go @@ -19,7 +19,7 @@ var _ MappedNullable = &GetQuotaResponse{} // GetQuotaResponse struct for GetQuotaResponse type GetQuotaResponse struct { - // The maximum number of load balancing servers in this project. Unlimited if set to -1. + // The maximum number of load balancing servers in this project. MaxLoadBalancers *int32 `json:"maxLoadBalancers,omitempty"` // Project identifier ProjectId *string `json:"projectId,omitempty" validate:"regexp=^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"` diff --git a/services/loadbalancer/v1api/model_listener.go b/services/loadbalancer/v1api/model_listener.go index 2c67512f5..8860265d4 100644 --- a/services/loadbalancer/v1api/model_listener.go +++ b/services/loadbalancer/v1api/model_listener.go @@ -27,6 +27,7 @@ type Listener struct { // Protocol is the highest network protocol we understand to load balance. Currently only PROTOCOL_TCP, PROTOCOL_TCP_PROXY and PROTOCOL_TLS_PASSTHROUGH are supported. Protocol *string `json:"protocol,omitempty"` // Server Name Idicators config for domains to be routed to the desired target pool for this listener. + // Deprecated ServerNameIndicators []ServerNameIndicator `json:"serverNameIndicators,omitempty"` // Reference target pool by target pool name. TargetPool *string `json:"targetPool,omitempty"` @@ -183,6 +184,7 @@ func (o *Listener) SetProtocol(v string) { } // GetServerNameIndicators returns the ServerNameIndicators field value if set, zero value otherwise. +// Deprecated func (o *Listener) GetServerNameIndicators() []ServerNameIndicator { if o == nil || IsNil(o.ServerNameIndicators) { var ret []ServerNameIndicator @@ -193,6 +195,7 @@ func (o *Listener) GetServerNameIndicators() []ServerNameIndicator { // GetServerNameIndicatorsOk returns a tuple with the ServerNameIndicators field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *Listener) GetServerNameIndicatorsOk() ([]ServerNameIndicator, bool) { if o == nil || IsNil(o.ServerNameIndicators) { return nil, false @@ -210,6 +213,7 @@ func (o *Listener) HasServerNameIndicators() bool { } // SetServerNameIndicators gets a reference to the given []ServerNameIndicator and assigns it to the ServerNameIndicators field. +// Deprecated func (o *Listener) SetServerNameIndicators(v []ServerNameIndicator) { o.ServerNameIndicators = v } diff --git a/services/loadbalancer/v2api/api_default.go b/services/loadbalancer/v2api/api_default.go index c5b961058..6db3782c4 100644 --- a/services/loadbalancer/v2api/api_default.go +++ b/services/loadbalancer/v2api/api_default.go @@ -129,15 +129,14 @@ type DefaultAPI interface { GetLoadBalancerExecute(r ApiGetLoadBalancerRequest) (*LoadBalancer, error) /* - GetQuota Get the quota of Load Balancers in a project. + GetQuota Get the quota of Network Load Balancers in a project. - Retrieves the configured Load Balancer quota for the project. Limit can be changed via service request. - There can be 3 times as many observability credentials as Load Balancers. + Retrieves the configured Network Load Balancer quota for the project. Limit can be changed via service request. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @return ApiGetQuotaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param region + @return ApiGetQuotaRequest */ GetQuota(ctx context.Context, projectId string, region string) ApiGetQuotaRequest @@ -1171,11 +1170,9 @@ func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) { } /* -GetQuota Get the quota of Load Balancers in a project. - -Retrieves the configured Load Balancer quota for the project. Limit can be changed via service request. +GetQuota Get the quota of Network Load Balancers in a project. - There can be 3 times as many observability credentials as Load Balancers. +Retrieves the configured Network Load Balancer quota for the project. Limit can be changed via service request. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId diff --git a/services/loadbalancer/v2api/model_get_quota_response.go b/services/loadbalancer/v2api/model_get_quota_response.go index a12b07738..c28355da2 100644 --- a/services/loadbalancer/v2api/model_get_quota_response.go +++ b/services/loadbalancer/v2api/model_get_quota_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &GetQuotaResponse{} type GetQuotaResponse struct { // The maximum number of observability credentials that can be stored in this project. MaxCredentials *int32 `json:"maxCredentials,omitempty"` - // The maximum number of load balancing servers in this project. Unlimited if set to -1. + // The maximum number of load balancing servers in this project. MaxLoadBalancers *int32 `json:"maxLoadBalancers,omitempty"` // Project identifier ProjectId *string `json:"projectId,omitempty" validate:"regexp=^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"` diff --git a/services/loadbalancer/v2api/model_listener.go b/services/loadbalancer/v2api/model_listener.go index 77124db54..e2d2e38d1 100644 --- a/services/loadbalancer/v2api/model_listener.go +++ b/services/loadbalancer/v2api/model_listener.go @@ -27,6 +27,7 @@ type Listener struct { // Protocol is the highest network protocol we understand to load balance. Currently only PROTOCOL_TCP, PROTOCOL_TCP_PROXY and PROTOCOL_TLS_PASSTHROUGH are supported. Protocol *string `json:"protocol,omitempty"` // Server Name Indicators config for domains to be routed to the desired target pool for this listener. + // Deprecated ServerNameIndicators []ServerNameIndicator `json:"serverNameIndicators,omitempty"` // Reference target pool by target pool name. TargetPool *string `json:"targetPool,omitempty"` @@ -183,6 +184,7 @@ func (o *Listener) SetProtocol(v string) { } // GetServerNameIndicators returns the ServerNameIndicators field value if set, zero value otherwise. +// Deprecated func (o *Listener) GetServerNameIndicators() []ServerNameIndicator { if o == nil || IsNil(o.ServerNameIndicators) { var ret []ServerNameIndicator @@ -193,6 +195,7 @@ func (o *Listener) GetServerNameIndicators() []ServerNameIndicator { // GetServerNameIndicatorsOk returns a tuple with the ServerNameIndicators field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *Listener) GetServerNameIndicatorsOk() ([]ServerNameIndicator, bool) { if o == nil || IsNil(o.ServerNameIndicators) { return nil, false @@ -210,6 +213,7 @@ func (o *Listener) HasServerNameIndicators() bool { } // SetServerNameIndicators gets a reference to the given []ServerNameIndicator and assigns it to the ServerNameIndicators field. +// Deprecated func (o *Listener) SetServerNameIndicators(v []ServerNameIndicator) { o.ServerNameIndicators = v }