diff --git a/CHANGELOG.md b/CHANGELOG.md index aeecaccb5e..0c1ad4f966 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -262,6 +262,17 @@ - **Docs:** Update description of `Labels` fields - [v0.11.3](services/sfs/CHANGELOG.md#v0113) - **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1` +- `ske`: + - [v1.22.0](services/ske/CHANGELOG.md#v1220) + - **Breaking change:** Removal of deprecated SDK layer in the root of the module. + - **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1` + - `v1api`: + - **Breaking Change:** Fields `AutoUpdate` and `TimeWindow` in `Maintenance` are now optional and changed from `MaintenanceAutoUpdate` and `TimeWindow` to `*MaintenanceAutoUpdate` and `*TimeWindow`. The `NewMaintenance` constructor no longer takes arguments + - `v2api`: + - **Breaking Change:** Fields `AutoUpdate` and `TimeWindow` in `Maintenance` are now optional and changed from `MaintenanceAutoUpdate` and `TimeWindow` to `*MaintenanceAutoUpdate` and `*TimeWindow`. The `NewMaintenance` constructor no longer takes arguments + - **Feature:** Add model struct `Kata` and field `Kata` to `CRI` to configure workload isolation via Kata Containers (private preview) + - **Feature:** Add fields `PodAddressRanges` and `ServiceAddressRanges` to `Network` to configure pod and service CIDRs at cluster creation + - **Feature:** Add fields `NodeAddressRanges` and `ServiceAddressRanges` to `ClusterStatus` - `sqlserverflex`: - [v1.19.0](services/sqlserverflex/CHANGELOG.md#v1190) - **Breaking change:** Removal of deprecated compatibility layer previously found in the root of the SDK module diff --git a/examples/ske/go.mod b/examples/ske/go.mod index 290b720d23..8bbdff1e02 100644 --- a/examples/ske/go.mod +++ b/examples/ske/go.mod @@ -6,7 +6,7 @@ go 1.25 replace github.com/stackitcloud/stackit-sdk-go/services/ske => ../../services/ske require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.0 + github.com/stackitcloud/stackit-sdk-go/core v0.27.1 github.com/stackitcloud/stackit-sdk-go/services/ske v1.21.2 ) diff --git a/examples/ske/go.sum b/examples/ske/go.sum index 042f4a71a5..5bae1d1250 100644 --- a/examples/ske/go.sum +++ b/examples/ske/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/ske/.openapi-generator/VERSION b/services/ske/.openapi-generator/VERSION deleted file mode 100644 index cd802a1ec4..0000000000 --- a/services/ske/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.6.0 \ No newline at end of file diff --git a/services/ske/CHANGELOG.md b/services/ske/CHANGELOG.md index 068297e01e..f3cf492753 100644 --- a/services/ske/CHANGELOG.md +++ b/services/ske/CHANGELOG.md @@ -1,3 +1,14 @@ +## v1.22.0 +- **Breaking change:** Removal of deprecated SDK layer in the root of the module. +- **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1` +- `v1api`: + - **Breaking Change:** Fields `AutoUpdate` and `TimeWindow` in `Maintenance` are now optional and changed from `MaintenanceAutoUpdate` and `TimeWindow` to `*MaintenanceAutoUpdate` and `*TimeWindow`. The `NewMaintenance` constructor no longer takes arguments +- `v2api`: + - **Breaking Change:** Fields `AutoUpdate` and `TimeWindow` in `Maintenance` are now optional and changed from `MaintenanceAutoUpdate` and `TimeWindow` to `*MaintenanceAutoUpdate` and `*TimeWindow`. The `NewMaintenance` constructor no longer takes arguments + - **Feature:** Add model struct `Kata` and field `Kata` to `CRI` to configure workload isolation via Kata Containers (private preview) + - **Feature:** Add fields `PodAddressRanges` and `ServiceAddressRanges` to `Network` to configure pod and service CIDRs at cluster creation + - **Feature:** Add fields `NodeAddressRanges` and `ServiceAddressRanges` to `ClusterStatus` + ## v1.21.2 - **Dependencies:** Bump STACKIT SDK core module from `v0.26.0` to `v0.27.0` diff --git a/services/ske/VERSION b/services/ske/VERSION index fd79581a02..e3e48c4c4f 100644 --- a/services/ske/VERSION +++ b/services/ske/VERSION @@ -1 +1 @@ -v1.21.2 +v1.22.0 diff --git a/services/ske/api_default.go b/services/ske/api_default.go deleted file mode 100644 index 9c8873fcf3..0000000000 --- a/services/ske/api_default.go +++ /dev/null @@ -1,2799 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "bytes" - "context" - "fmt" - "io" - "net/http" - "net/url" - "strings" - - "github.com/stackitcloud/stackit-sdk-go/core/config" - "github.com/stackitcloud/stackit-sdk-go/core/oapierror" -) - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DefaultApi interface { - /* - CompleteCredentialsRotation Complete cluster credentials rotation - Complete cluster credentials rotation. This is step 2 of a two-step process. Start the rotation using [start-credentials-rotation](#tag/Credentials/operation/SkeService_StartClusterCredentialsRotation). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiCompleteCredentialsRotationRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CompleteCredentialsRotation(ctx context.Context, projectId string, region string, clusterName string) ApiCompleteCredentialsRotationRequest - /* - CompleteCredentialsRotationExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return map[string]interface{} - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CompleteCredentialsRotationExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) - /* - CreateKubeconfig Create an admin kubeconfig - Create a new admin kubeconfig for the cluster. You can specify the expiration (in seconds) in the request body. Its value must be in the range from 600 (10 min) to 15552000 (6 months). Defaults to 3600. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiCreateKubeconfigRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateKubeconfig(ctx context.Context, projectId string, region string, clusterName string) ApiCreateKubeconfigRequest - /* - CreateKubeconfigExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return Kubeconfig - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateKubeconfigExecute(ctx context.Context, projectId string, region string, clusterName string) (*Kubeconfig, error) - /* - CreateOrUpdateCluster Create or update a cluster - Create a new cluster in your project or modify an existing one. To get valid values for certain properties please check the [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) endpoint. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. - @return ApiCreateOrUpdateClusterRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateOrUpdateCluster(ctx context.Context, projectId string, region string, clusterName string) ApiCreateOrUpdateClusterRequest - /* - CreateOrUpdateClusterExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. - @return Cluster - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateOrUpdateClusterExecute(ctx context.Context, projectId string, region string, clusterName string) (*Cluster, error) - /* - DeleteCluster Delete a cluster - Delete Kubernetes cluster specified by the identifier, belonging to the project specified by `projectId`. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiDeleteClusterRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteCluster(ctx context.Context, projectId string, region string, clusterName string) ApiDeleteClusterRequest - /* - DeleteClusterExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return map[string]interface{} - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteClusterExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) - /* - GetCluster Get a cluster - Get Kubernetes cluster for the specified identifier, belonging to the project specified by `projectId`. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiGetClusterRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetCluster(ctx context.Context, projectId string, region string, clusterName string) ApiGetClusterRequest - /* - GetClusterExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return Cluster - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetClusterExecute(ctx context.Context, projectId string, region string, clusterName string) (*Cluster, error) - /* - GetIDPKubeconfig Get a kubeconfig to authenticate via IDP for use with the STACKIT CLI - A kubeconfig retrieved using this endpoint does not contain any credentials and instead obtains valid credentials via the STACKIT CLI. Permissions must be granted to the user beforehand using an admin kubeconfig. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiGetIDPKubeconfigRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetIDPKubeconfig(ctx context.Context, projectId string, region string, clusterName string) ApiGetIDPKubeconfigRequest - /* - GetIDPKubeconfigExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return IDPKubeconfig - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetIDPKubeconfigExecute(ctx context.Context, projectId string, region string, clusterName string) (*IDPKubeconfig, error) - /* - GetLoginKubeconfig Get an admin kubeconfig for use with the STACKIT CLI - A admin kubeconfig retrieved using this endpoint does not contain any credentials and instead obtains valid credentials via the STACKIT CLI. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiGetLoginKubeconfigRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetLoginKubeconfig(ctx context.Context, projectId string, region string, clusterName string) ApiGetLoginKubeconfigRequest - /* - GetLoginKubeconfigExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return LoginKubeconfig - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetLoginKubeconfigExecute(ctx context.Context, projectId string, region string, clusterName string) (*LoginKubeconfig, error) - /* - ListClusters List all clusters - Return a list of Kubernetes clusters in the project specified by `projectId`. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @return ApiListClustersRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListClusters(ctx context.Context, projectId string, region string) ApiListClustersRequest - /* - ListClustersExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @return ListClustersResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListClustersExecute(ctx context.Context, projectId string, region string) (*ListClustersResponse, error) - /* - ListProviderOptions List provider options - Returns available Kubernetes versions, availability zones, machine types, OS versions and volume types for the cluster nodes. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param region - @return ApiListProviderOptionsRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListProviderOptions(ctx context.Context, region string) ApiListProviderOptionsRequest - /* - ListProviderOptionsExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param region - @return ProviderOptions - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListProviderOptionsExecute(ctx context.Context, region string) (*ProviderOptions, error) - /* - StartCredentialsRotation Start cluster credentials rotation - Start cluster credentials rotation. This is step 1 of a two-step process. Complete the rotation using [complete-credentials-rotation](#tag/Credentials/operation/SkeService_CompleteClusterCredentialsRotation). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiStartCredentialsRotationRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - StartCredentialsRotation(ctx context.Context, projectId string, region string, clusterName string) ApiStartCredentialsRotationRequest - /* - StartCredentialsRotationExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return map[string]interface{} - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - StartCredentialsRotationExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) - /* - TriggerHibernate Trigger cluster hibernation - Trigger immediate hibernation of the cluster. If the cluster is already in hibernation state, this endpoint does nothing. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerHibernateRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerHibernate(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerHibernateRequest - /* - TriggerHibernateExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return map[string]interface{} - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerHibernateExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) - /* - TriggerMaintenance Trigger cluster maintenance - Trigger immediate maintenance of the cluster. The autoUpdate configuration specified in the Maintenance object of the cluster spec defines what is updated during the immediate maintenance operation. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerMaintenanceRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerMaintenance(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerMaintenanceRequest - /* - TriggerMaintenanceExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return map[string]interface{} - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerMaintenanceExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) - /* - TriggerReconcile Trigger cluster reconciliation - Trigger immediate reconciliation of the complete cluster without changing the cluster specification. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerReconcileRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerReconcile(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerReconcileRequest - /* - TriggerReconcileExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return map[string]interface{} - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerReconcileExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) - /* - TriggerWakeup Trigger cluster wakeup - Trigger immediate wake up of the cluster. If the cluster is already in running state, this endpoint does nothing. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerWakeupRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerWakeup(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerWakeupRequest - /* - TriggerWakeupExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return map[string]interface{} - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - TriggerWakeupExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiCompleteCredentialsRotationRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiCreateKubeconfigRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CreateKubeconfigPayload(createKubeconfigPayload CreateKubeconfigPayload) ApiCreateKubeconfigRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*Kubeconfig, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiCreateOrUpdateClusterRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CreateOrUpdateClusterPayload(createOrUpdateClusterPayload CreateOrUpdateClusterPayload) ApiCreateOrUpdateClusterRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*Cluster, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiDeleteClusterRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiGetClusterRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*Cluster, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiGetIDPKubeconfigRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*IDPKubeconfig, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiGetLoginKubeconfigRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*LoginKubeconfig, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListClustersRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListClustersResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListProviderOptionsRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - VersionState(versionState string) ApiListProviderOptionsRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ProviderOptions, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiStartCredentialsRotationRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiTriggerHibernateRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiTriggerMaintenanceRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiTriggerReconcileRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiTriggerWakeupRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (map[string]interface{}, error) -} - -// DefaultApiService DefaultApi service -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DefaultApiService service - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CompleteCredentialsRotationRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CompleteCredentialsRotationRequest) Execute() (map[string]interface{}, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CompleteCredentialsRotation") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/complete-credentials-rotation" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -CompleteCredentialsRotation: Complete cluster credentials rotation - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiCompleteCredentialsRotationRequest -*/ -func (a *APIClient) CompleteCredentialsRotation(ctx context.Context, projectId string, region string, clusterName string) ApiCompleteCredentialsRotationRequest { - return CompleteCredentialsRotationRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) CompleteCredentialsRotationExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) { - r := CompleteCredentialsRotationRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateKubeconfigRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string - createKubeconfigPayload *CreateKubeconfigPayload -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateKubeconfigRequest) CreateKubeconfigPayload(createKubeconfigPayload CreateKubeconfigPayload) ApiCreateKubeconfigRequest { - r.createKubeconfigPayload = &createKubeconfigPayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateKubeconfigRequest) Execute() (*Kubeconfig, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Kubeconfig - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateKubeconfig") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createKubeconfigPayload == nil { - return localVarReturnValue, fmt.Errorf("createKubeconfigPayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.createKubeconfigPayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -CreateKubeconfig: Create an admin kubeconfig - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiCreateKubeconfigRequest -*/ -func (a *APIClient) CreateKubeconfig(ctx context.Context, projectId string, region string, clusterName string) ApiCreateKubeconfigRequest { - return CreateKubeconfigRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) CreateKubeconfigExecute(ctx context.Context, projectId string, region string, clusterName string) (*Kubeconfig, error) { - r := CreateKubeconfigRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string - createOrUpdateClusterPayload *CreateOrUpdateClusterPayload -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateOrUpdateClusterRequest) CreateOrUpdateClusterPayload(createOrUpdateClusterPayload CreateOrUpdateClusterPayload) ApiCreateOrUpdateClusterRequest { - r.createOrUpdateClusterPayload = &createOrUpdateClusterPayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateOrUpdateClusterRequest) Execute() (*Cluster, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cluster - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateOrUpdateCluster") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createOrUpdateClusterPayload == nil { - return localVarReturnValue, fmt.Errorf("createOrUpdateClusterPayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.createOrUpdateClusterPayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -CreateOrUpdateCluster: Create or update a cluster - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. - @return ApiCreateOrUpdateClusterRequest -*/ -func (a *APIClient) CreateOrUpdateCluster(ctx context.Context, projectId string, region string, clusterName string) ApiCreateOrUpdateClusterRequest { - return CreateOrUpdateClusterRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) CreateOrUpdateClusterExecute(ctx context.Context, projectId string, region string, clusterName string) (*Cluster, error) { - r := CreateOrUpdateClusterRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DeleteClusterRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r DeleteClusterRequest) Execute() (map[string]interface{}, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteCluster") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -DeleteCluster: Delete a cluster - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiDeleteClusterRequest -*/ -func (a *APIClient) DeleteCluster(ctx context.Context, projectId string, region string, clusterName string) ApiDeleteClusterRequest { - return DeleteClusterRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) DeleteClusterExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) { - r := DeleteClusterRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetClusterRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r GetClusterRequest) Execute() (*Cluster, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cluster - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCluster") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -GetCluster: Get a cluster - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiGetClusterRequest -*/ -func (a *APIClient) GetCluster(ctx context.Context, projectId string, region string, clusterName string) ApiGetClusterRequest { - return GetClusterRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) GetClusterExecute(ctx context.Context, projectId string, region string, clusterName string) (*Cluster, error) { - r := GetClusterRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetIDPKubeconfigRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r GetIDPKubeconfigRequest) Execute() (*IDPKubeconfig, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IDPKubeconfig - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetIDPKubeconfig") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/idp" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -GetIDPKubeconfig: Get a kubeconfig to authenticate via IDP for use with the STACKIT CLI - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiGetIDPKubeconfigRequest -*/ -func (a *APIClient) GetIDPKubeconfig(ctx context.Context, projectId string, region string, clusterName string) ApiGetIDPKubeconfigRequest { - return GetIDPKubeconfigRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) GetIDPKubeconfigExecute(ctx context.Context, projectId string, region string, clusterName string) (*IDPKubeconfig, error) { - r := GetIDPKubeconfigRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetLoginKubeconfigRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r GetLoginKubeconfigRequest) Execute() (*LoginKubeconfig, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LoginKubeconfig - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetLoginKubeconfig") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/kubeconfig/login" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -GetLoginKubeconfig: Get an admin kubeconfig for use with the STACKIT CLI - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiGetLoginKubeconfigRequest -*/ -func (a *APIClient) GetLoginKubeconfig(ctx context.Context, projectId string, region string, clusterName string) ApiGetLoginKubeconfigRequest { - return GetLoginKubeconfigRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) GetLoginKubeconfigExecute(ctx context.Context, projectId string, region string, clusterName string) (*LoginKubeconfig, error) { - r := GetLoginKubeconfigRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListClustersRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListClustersRequest) Execute() (*ListClustersResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListClustersResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListClusters") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListClusters: List all clusters - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @return ApiListClustersRequest -*/ -func (a *APIClient) ListClusters(ctx context.Context, projectId string, region string) ApiListClustersRequest { - return ListClustersRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListClustersExecute(ctx context.Context, projectId string, region string) (*ListClustersResponse, error) { - r := ListClustersRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListProviderOptionsRequest struct { - ctx context.Context - apiService *DefaultApiService - region string - versionState *string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListProviderOptionsRequest) VersionState(versionState string) ApiListProviderOptionsRequest { - r.versionState = &versionState - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListProviderOptionsRequest) Execute() (*ProviderOptions, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderOptions - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListProviderOptions") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/regions/{region}/provider-options" - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.versionState != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "versionState", r.versionState, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListProviderOptions: List provider options - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param region - @return ApiListProviderOptionsRequest -*/ -func (a *APIClient) ListProviderOptions(ctx context.Context, region string) ApiListProviderOptionsRequest { - return ListProviderOptionsRequest{ - apiService: a.defaultApi, - ctx: ctx, - region: region, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListProviderOptionsExecute(ctx context.Context, region string) (*ProviderOptions, error) { - r := ListProviderOptionsRequest{ - apiService: a.defaultApi, - ctx: ctx, - region: region, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StartCredentialsRotationRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r StartCredentialsRotationRequest) Execute() (map[string]interface{}, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.StartCredentialsRotation") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/start-credentials-rotation" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -StartCredentialsRotation: Start cluster credentials rotation - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiStartCredentialsRotationRequest -*/ -func (a *APIClient) StartCredentialsRotation(ctx context.Context, projectId string, region string, clusterName string) ApiStartCredentialsRotationRequest { - return StartCredentialsRotationRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) StartCredentialsRotationExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) { - r := StartCredentialsRotationRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TriggerHibernateRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r TriggerHibernateRequest) Execute() (map[string]interface{}, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TriggerHibernate") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/hibernate" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -TriggerHibernate: Trigger cluster hibernation - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerHibernateRequest -*/ -func (a *APIClient) TriggerHibernate(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerHibernateRequest { - return TriggerHibernateRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) TriggerHibernateExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) { - r := TriggerHibernateRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TriggerMaintenanceRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r TriggerMaintenanceRequest) Execute() (map[string]interface{}, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TriggerMaintenance") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/maintenance" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -TriggerMaintenance: Trigger cluster maintenance - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerMaintenanceRequest -*/ -func (a *APIClient) TriggerMaintenance(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerMaintenanceRequest { - return TriggerMaintenanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) TriggerMaintenanceExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) { - r := TriggerMaintenanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TriggerReconcileRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r TriggerReconcileRequest) Execute() (map[string]interface{}, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TriggerReconcile") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/reconcile" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -TriggerReconcile: Trigger cluster reconciliation - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerReconcileRequest -*/ -func (a *APIClient) TriggerReconcile(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerReconcileRequest { - return TriggerReconcileRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) TriggerReconcileExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) { - r := TriggerReconcileRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TriggerWakeupRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - clusterName string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r TriggerWakeupRequest) Execute() (map[string]interface{}, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TriggerWakeup") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{region}/clusters/{clusterName}/wakeup" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(ParameterValueToString(r.clusterName, "clusterName")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v map[string]interface{} - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -TriggerWakeup: Trigger cluster wakeup - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @param region - @param clusterName - @return ApiTriggerWakeupRequest -*/ -func (a *APIClient) TriggerWakeup(ctx context.Context, projectId string, region string, clusterName string) ApiTriggerWakeupRequest { - return TriggerWakeupRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) TriggerWakeupExecute(ctx context.Context, projectId string, region string, clusterName string) (map[string]interface{}, error) { - r := TriggerWakeupRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - clusterName: clusterName, - } - return r.Execute() -} diff --git a/services/ske/client.go b/services/ske/client.go deleted file mode 100644 index d5bf1433dd..0000000000 --- a/services/ske/client.go +++ /dev/null @@ -1,635 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - - "github.com/stackitcloud/stackit-sdk-go/core/auth" - "github.com/stackitcloud/stackit-sdk-go/core/config" -) - -var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) - queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") -) - -// APIClient manages communication with the STACKIT Kubernetes Engine API API v2.0 -// In most cases there should be only one, shared, APIClient. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type APIClient struct { - cfg *config.Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - defaultApi *DefaultApiService -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type service struct { - client DefaultApi -} - -// NewAPIClient creates a new API client. -// Optionally receives configuration options -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { - cfg := NewConfiguration() - - for _, option := range opts { - err := option(cfg) - if err != nil { - return nil, fmt.Errorf("configuring the client: %w", err) - } - } - - err := config.ConfigureRegion(cfg) - if err != nil { - return nil, fmt.Errorf("configuring region: %w", err) - } - - if cfg.HTTPClient == nil { - cfg.HTTPClient = &http.Client{} - } - - authRoundTripper, err := auth.SetupAuth(cfg) - if err != nil { - return nil, fmt.Errorf("setting up authentication: %w", err) - } - - roundTripper := authRoundTripper - if cfg.Middleware != nil { - roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...) - } - - cfg.HTTPClient.Transport = roundTripper - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - c.defaultApi = (*DefaultApiService)(&c.common) - - return c, nil -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func ParameterValueToString(obj interface{}, key string) string { - if reflect.TypeOf(obj).Kind() != reflect.Ptr { - return fmt.Sprintf("%v", obj) - } - var param, ok = obj.(MappedNullable) - if !ok { - return "" - } - dataMap, err := param.ToMap() - if err != nil { - return "" - } - return fmt.Sprintf("%v", dataMap[key]) -} - -// parameterAddToHeaderOrQuery adds the provided object to the request header or url query -// supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { - var v = reflect.ValueOf(obj) - var value = "" - if v == reflect.ValueOf(nil) { - value = "null" - } else { - switch v.Kind() { - case reflect.Invalid: - value = "invalid" - - case reflect.Struct: - if t, ok := obj.(MappedNullable); ok { - dataMap, err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i := 0; i < lenIndValue; i++ { - var arrayValue = indValue.Index(i) - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType) - } - return - - case reflect.Map: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - iter := indValue.MapRange() - for iter.Next() { - k, v := iter.Key(), iter.Value() - parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) - } - return - - case reflect.Interface: - fallthrough - case reflect.Ptr: - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType) - return - - case reflect.Int, reflect.Int8, reflect.Int16, - reflect.Int32, reflect.Int64: - value = strconv.FormatInt(v.Int(), 10) - case reflect.Uint, reflect.Uint8, reflect.Uint16, - reflect.Uint32, reflect.Uint64, reflect.Uintptr: - value = strconv.FormatUint(v.Uint(), 10) - case reflect.Float32, reflect.Float64: - value = strconv.FormatFloat(v.Float(), 'g', -1, 32) - case reflect.Bool: - value = strconv.FormatBool(v.Bool()) - case reflect.String: - value = v.String() - default: - value = v.Type().String() + " value" - } - } - - switch valuesMap := headerOrQueryParams.(type) { - case url.Values: - if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { - valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) - } else { - valuesMap.Add(keyPrefix, value) - } - break - case map[string]string: - valuesMap[keyPrefix] = value - break - } -} - -// helper for converting interface{} parameters to json strings -func parameterToJson(obj interface{}) (string, error) { - jsonBuf, err := json.Marshal(obj) - if err != nil { - return "", err - } - return string(jsonBuf), err -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) - if err != nil { - return nil, err - } - log.Printf("\n%s\n", string(dump)) - } - - resp, err := c.cfg.HTTPClient.Do(request) - if err != nil { - return resp, err - } - - if c.cfg.Debug { - dump, err := httputil.DumpResponse(resp, true) - if err != nil { - return resp, err - } - log.Printf("\n%s\n", string(dump)) - } - return resp, err -} - -// Allow modification of underlying config for alternate implementations and testing -// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (c *APIClient) GetConfig() *config.Configuration { - return c.cfg -} - -type formFile struct { - fileBytes []byte - fileName string - formFileName string -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - formFiles []formFile) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if !IsNil(postBody) { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { - if body != nil { - return nil, fmt.Errorf("cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, fmt.Errorf("cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { - pieces := strings.Split(s, "=") - pieces[0] = queryDescape.Replace(pieces[0]) - return strings.Join(pieces, "=") - }) - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(*os.File); ok { - f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = f.Write(b) - if err != nil { - return - } - _, err = f.Seek(0, io.SeekStart) - return - } - if f, ok := v.(**os.File); ok { - *f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if xmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return fmt.Errorf("unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return fmt.Errorf("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - defer file.Close() - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(*os.File); ok { - _, err = bodyBuf.ReadFrom(fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} diff --git a/services/ske/configuration.go b/services/ske/configuration.go deleted file mode 100644 index c8b76c54fa..0000000000 --- a/services/ske/configuration.go +++ /dev/null @@ -1,40 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "github.com/stackitcloud/stackit-sdk-go/core/config" -) - -// NewConfiguration returns a new Configuration object -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewConfiguration() *config.Configuration { - cfg := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "stackit-sdk-go/ske", - Debug: false, - Servers: config.ServerConfigurations{ - { - URL: "https://ske.api.stackit.cloud", - Description: "No description provided", - Variables: map[string]config.ServerVariable{ - "region": { - Description: "No description provided", - DefaultValue: "global", - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - return cfg -} diff --git a/services/ske/go.mod b/services/ske/go.mod index 2588a6f723..f3d49c8d9f 100644 --- a/services/ske/go.mod +++ b/services/ske/go.mod @@ -4,7 +4,7 @@ go 1.25 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.27.0 + github.com/stackitcloud/stackit-sdk-go/core v0.27.1 ) require ( diff --git a/services/ske/go.sum b/services/ske/go.sum index 042f4a71a5..5bae1d1250 100644 --- a/services/ske/go.sum +++ b/services/ske/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/ske/model_access.go b/services/ske/model_access.go deleted file mode 100644 index fedde1494b..0000000000 --- a/services/ske/model_access.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Access type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Access{} - -/* - types and functions for idp -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AccessGetIdpAttributeType = *IDP - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AccessGetIdpArgType = IDP - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AccessGetIdpRetType = IDP - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getAccessGetIdpAttributeTypeOk(arg AccessGetIdpAttributeType) (ret AccessGetIdpRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setAccessGetIdpAttributeType(arg *AccessGetIdpAttributeType, val AccessGetIdpRetType) { - *arg = &val -} - -// Access struct for Access -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Access struct { - Idp AccessGetIdpAttributeType `json:"idp,omitempty"` -} - -// NewAccess instantiates a new Access object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAccess() *Access { - this := Access{} - return &this -} - -// NewAccessWithDefaults instantiates a new Access object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAccessWithDefaults() *Access { - this := Access{} - return &this -} - -// GetIdp returns the Idp field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Access) GetIdp() (res AccessGetIdpRetType) { - res, _ = o.GetIdpOk() - return -} - -// GetIdpOk returns a tuple with the Idp field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Access) GetIdpOk() (ret AccessGetIdpRetType, ok bool) { - return getAccessGetIdpAttributeTypeOk(o.Idp) -} - -// HasIdp returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Access) HasIdp() bool { - _, ok := o.GetIdpOk() - return ok -} - -// SetIdp gets a reference to the given IDP and assigns it to the Idp field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Access) SetIdp(v AccessGetIdpRetType) { - setAccessGetIdpAttributeType(&o.Idp, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Access) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getAccessGetIdpAttributeTypeOk(o.Idp); ok { - toSerialize["Idp"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableAccess struct { - value *Access - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAccess) Get() *Access { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAccess) Set(val *Access) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAccess) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAccess) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableAccess(val *Access) *NullableAccess { - return &NullableAccess{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAccess) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAccess) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_access_scope.go b/services/ske/model_access_scope.go deleted file mode 100644 index b075ae8689..0000000000 --- a/services/ske/model_access_scope.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "fmt" -) - -// AccessScope The access scope of the Control Plane. It defines if the Kubernetes control plane is public or only available inside a STACKIT Network Area. This field is immutable. ⚠️ Note: This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AccessScope string - -// List of AccessScope -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - ACCESSSCOPE_PUBLIC AccessScope = "PUBLIC" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - ACCESSSCOPE_SNA AccessScope = "SNA" -) - -// All allowed values of AccessScope enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedAccessScopeEnumValues = []AccessScope{ - "PUBLIC", - "SNA", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *AccessScope) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := AccessScope(value) - for _, existing := range AllowedAccessScopeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid AccessScope", value) -} - -// NewAccessScopeFromValue returns a pointer to a valid AccessScope -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAccessScopeFromValue(v string) (*AccessScope, error) { - ev := AccessScope(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for AccessScope: valid values are %v", v, AllowedAccessScopeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v AccessScope) IsValid() bool { - for _, existing := range AllowedAccessScopeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to AccessScope value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v AccessScope) Ptr() *AccessScope { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableAccessScope struct { - value *AccessScope - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAccessScope) Get() *AccessScope { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAccessScope) Set(val *AccessScope) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAccessScope) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAccessScope) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableAccessScope(val *AccessScope) *NullableAccessScope { - return &NullableAccessScope{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAccessScope) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAccessScope) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_access_scope_test.go b/services/ske/model_access_scope_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_access_scope_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_access_test.go b/services/ske/model_access_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_access_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_acl.go b/services/ske/model_acl.go deleted file mode 100644 index 7cc5564376..0000000000 --- a/services/ske/model_acl.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the ACL type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ACL{} - -/* - types and functions for allowedCidrs -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ACLGetAllowedCidrsAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ACLGetAllowedCidrsArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ACLGetAllowedCidrsRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getACLGetAllowedCidrsAttributeTypeOk(arg ACLGetAllowedCidrsAttributeType) (ret ACLGetAllowedCidrsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setACLGetAllowedCidrsAttributeType(arg *ACLGetAllowedCidrsAttributeType, val ACLGetAllowedCidrsRetType) { - *arg = &val -} - -/* - types and functions for enabled -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ACLgetEnabledAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ACLgetEnabledArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ACLgetEnabledRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getACLgetEnabledAttributeTypeOk(arg ACLgetEnabledAttributeType) (ret ACLgetEnabledRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setACLgetEnabledAttributeType(arg *ACLgetEnabledAttributeType, val ACLgetEnabledRetType) { - *arg = &val -} - -// ACL struct for ACL -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ACL struct { - // Array of CIDRs to allow access to the kubernetes API. - // REQUIRED - AllowedCidrs ACLGetAllowedCidrsAttributeType `json:"allowedCidrs" required:"true"` - // Enables the acl extension. - // REQUIRED - Enabled ACLgetEnabledAttributeType `json:"enabled" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ACL ACL - -// NewACL instantiates a new ACL object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewACL(allowedCidrs ACLGetAllowedCidrsArgType, enabled ACLgetEnabledArgType) *ACL { - this := ACL{} - setACLGetAllowedCidrsAttributeType(&this.AllowedCidrs, allowedCidrs) - setACLgetEnabledAttributeType(&this.Enabled, enabled) - return &this -} - -// NewACLWithDefaults instantiates a new ACL object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewACLWithDefaults() *ACL { - this := ACL{} - return &this -} - -// GetAllowedCidrs returns the AllowedCidrs field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ACL) GetAllowedCidrs() (ret ACLGetAllowedCidrsRetType) { - ret, _ = o.GetAllowedCidrsOk() - return ret -} - -// GetAllowedCidrsOk returns a tuple with the AllowedCidrs field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ACL) GetAllowedCidrsOk() (ret ACLGetAllowedCidrsRetType, ok bool) { - return getACLGetAllowedCidrsAttributeTypeOk(o.AllowedCidrs) -} - -// SetAllowedCidrs sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ACL) SetAllowedCidrs(v ACLGetAllowedCidrsRetType) { - setACLGetAllowedCidrsAttributeType(&o.AllowedCidrs, v) -} - -// GetEnabled returns the Enabled field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ACL) GetEnabled() (ret ACLgetEnabledRetType) { - ret, _ = o.GetEnabledOk() - return ret -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ACL) GetEnabledOk() (ret ACLgetEnabledRetType, ok bool) { - return getACLgetEnabledAttributeTypeOk(o.Enabled) -} - -// SetEnabled sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ACL) SetEnabled(v ACLgetEnabledRetType) { - setACLgetEnabledAttributeType(&o.Enabled, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ACL) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getACLGetAllowedCidrsAttributeTypeOk(o.AllowedCidrs); ok { - toSerialize["AllowedCidrs"] = val - } - if val, ok := getACLgetEnabledAttributeTypeOk(o.Enabled); ok { - toSerialize["Enabled"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableACL struct { - value *ACL - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableACL) Get() *ACL { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableACL) Set(val *ACL) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableACL) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableACL) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableACL(val *ACL) *NullableACL { - return &NullableACL{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableACL) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableACL) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_acl_test.go b/services/ske/model_acl_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_acl_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_application_load_balancer.go b/services/ske/model_application_load_balancer.go deleted file mode 100644 index 41e5e9556b..0000000000 --- a/services/ske/model_application_load_balancer.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the ApplicationLoadBalancer type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApplicationLoadBalancer{} - -/* - types and functions for enabled -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApplicationLoadBalancergetEnabledAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApplicationLoadBalancergetEnabledArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApplicationLoadBalancergetEnabledRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getApplicationLoadBalancergetEnabledAttributeTypeOk(arg ApplicationLoadBalancergetEnabledAttributeType) (ret ApplicationLoadBalancergetEnabledRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setApplicationLoadBalancergetEnabledAttributeType(arg *ApplicationLoadBalancergetEnabledAttributeType, val ApplicationLoadBalancergetEnabledRetType) { - *arg = &val -} - -// ApplicationLoadBalancer struct for ApplicationLoadBalancer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApplicationLoadBalancer struct { - // Enables the application load balancer extension. ⚠️ Note: This feature is in private preview. Enabling application load balancer extension is only possible for enabled accounts. Otherwise the request will be rejected. - // REQUIRED - Enabled ApplicationLoadBalancergetEnabledAttributeType `json:"enabled" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ApplicationLoadBalancer ApplicationLoadBalancer - -// NewApplicationLoadBalancer instantiates a new ApplicationLoadBalancer object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewApplicationLoadBalancer(enabled ApplicationLoadBalancergetEnabledArgType) *ApplicationLoadBalancer { - this := ApplicationLoadBalancer{} - setApplicationLoadBalancergetEnabledAttributeType(&this.Enabled, enabled) - return &this -} - -// NewApplicationLoadBalancerWithDefaults instantiates a new ApplicationLoadBalancer object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewApplicationLoadBalancerWithDefaults() *ApplicationLoadBalancer { - this := ApplicationLoadBalancer{} - return &this -} - -// GetEnabled returns the Enabled field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ApplicationLoadBalancer) GetEnabled() (ret ApplicationLoadBalancergetEnabledRetType) { - ret, _ = o.GetEnabledOk() - return ret -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ApplicationLoadBalancer) GetEnabledOk() (ret ApplicationLoadBalancergetEnabledRetType, ok bool) { - return getApplicationLoadBalancergetEnabledAttributeTypeOk(o.Enabled) -} - -// SetEnabled sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ApplicationLoadBalancer) SetEnabled(v ApplicationLoadBalancergetEnabledRetType) { - setApplicationLoadBalancergetEnabledAttributeType(&o.Enabled, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ApplicationLoadBalancer) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getApplicationLoadBalancergetEnabledAttributeTypeOk(o.Enabled); ok { - toSerialize["Enabled"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableApplicationLoadBalancer struct { - value *ApplicationLoadBalancer - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableApplicationLoadBalancer) Get() *ApplicationLoadBalancer { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableApplicationLoadBalancer) Set(val *ApplicationLoadBalancer) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableApplicationLoadBalancer) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableApplicationLoadBalancer) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableApplicationLoadBalancer(val *ApplicationLoadBalancer) *NullableApplicationLoadBalancer { - return &NullableApplicationLoadBalancer{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableApplicationLoadBalancer) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableApplicationLoadBalancer) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_application_load_balancer_test.go b/services/ske/model_application_load_balancer_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_application_load_balancer_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_audit.go b/services/ske/model_audit.go deleted file mode 100644 index 012fc7ed75..0000000000 --- a/services/ske/model_audit.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Audit type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Audit{} - -/* - types and functions for enabled -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AuditgetEnabledAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AuditgetEnabledArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AuditgetEnabledRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getAuditgetEnabledAttributeTypeOk(arg AuditgetEnabledAttributeType) (ret AuditgetEnabledRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setAuditgetEnabledAttributeType(arg *AuditgetEnabledAttributeType, val AuditgetEnabledRetType) { - *arg = &val -} - -// Audit struct for Audit -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Audit struct { - // Enable cluster audit log forwarding to a Telemetry Router. ⚠️ Note: This feature is in private preview. Enabling audit logging is only possible for enabled accounts. Otherwise the request will be rejected. - // REQUIRED - Enabled AuditgetEnabledAttributeType `json:"enabled" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Audit Audit - -// NewAudit instantiates a new Audit object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAudit(enabled AuditgetEnabledArgType) *Audit { - this := Audit{} - setAuditgetEnabledAttributeType(&this.Enabled, enabled) - return &this -} - -// NewAuditWithDefaults instantiates a new Audit object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAuditWithDefaults() *Audit { - this := Audit{} - return &this -} - -// GetEnabled returns the Enabled field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Audit) GetEnabled() (ret AuditgetEnabledRetType) { - ret, _ = o.GetEnabledOk() - return ret -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Audit) GetEnabledOk() (ret AuditgetEnabledRetType, ok bool) { - return getAuditgetEnabledAttributeTypeOk(o.Enabled) -} - -// SetEnabled sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Audit) SetEnabled(v AuditgetEnabledRetType) { - setAuditgetEnabledAttributeType(&o.Enabled, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Audit) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getAuditgetEnabledAttributeTypeOk(o.Enabled); ok { - toSerialize["Enabled"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableAudit struct { - value *Audit - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAudit) Get() *Audit { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAudit) Set(val *Audit) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAudit) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAudit) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableAudit(val *Audit) *NullableAudit { - return &NullableAudit{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAudit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAudit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_audit_test.go b/services/ske/model_audit_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_audit_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_availability_zone.go b/services/ske/model_availability_zone.go deleted file mode 100644 index 5a4295064e..0000000000 --- a/services/ske/model_availability_zone.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the AvailabilityZone type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AvailabilityZone{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AvailabilityZoneGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getAvailabilityZoneGetNameAttributeTypeOk(arg AvailabilityZoneGetNameAttributeType) (ret AvailabilityZoneGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setAvailabilityZoneGetNameAttributeType(arg *AvailabilityZoneGetNameAttributeType, val AvailabilityZoneGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AvailabilityZoneGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AvailabilityZoneGetNameRetType = string - -// AvailabilityZone struct for AvailabilityZone -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type AvailabilityZone struct { - Name AvailabilityZoneGetNameAttributeType `json:"name,omitempty"` -} - -// NewAvailabilityZone instantiates a new AvailabilityZone object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAvailabilityZone() *AvailabilityZone { - this := AvailabilityZone{} - return &this -} - -// NewAvailabilityZoneWithDefaults instantiates a new AvailabilityZone object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAvailabilityZoneWithDefaults() *AvailabilityZone { - this := AvailabilityZone{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *AvailabilityZone) GetName() (res AvailabilityZoneGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *AvailabilityZone) GetNameOk() (ret AvailabilityZoneGetNameRetType, ok bool) { - return getAvailabilityZoneGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *AvailabilityZone) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *AvailabilityZone) SetName(v AvailabilityZoneGetNameRetType) { - setAvailabilityZoneGetNameAttributeType(&o.Name, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o AvailabilityZone) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getAvailabilityZoneGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableAvailabilityZone struct { - value *AvailabilityZone - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAvailabilityZone) Get() *AvailabilityZone { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAvailabilityZone) Set(val *AvailabilityZone) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAvailabilityZone) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAvailabilityZone) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableAvailabilityZone(val *AvailabilityZone) *NullableAvailabilityZone { - return &NullableAvailabilityZone{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableAvailabilityZone) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableAvailabilityZone) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_availability_zone_test.go b/services/ske/model_availability_zone_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_availability_zone_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_cluster.go b/services/ske/model_cluster.go deleted file mode 100644 index 18a04772b4..0000000000 --- a/services/ske/model_cluster.go +++ /dev/null @@ -1,726 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Cluster type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Cluster{} - -/* - types and functions for access -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetAccessAttributeType = *Access - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetAccessArgType = Access - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetAccessRetType = Access - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetAccessAttributeTypeOk(arg ClusterGetAccessAttributeType) (ret ClusterGetAccessRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetAccessAttributeType(arg *ClusterGetAccessAttributeType, val ClusterGetAccessRetType) { - *arg = &val -} - -/* - types and functions for audit -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetAuditAttributeType = *Audit - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetAuditArgType = Audit - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetAuditRetType = Audit - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetAuditAttributeTypeOk(arg ClusterGetAuditAttributeType) (ret ClusterGetAuditRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetAuditAttributeType(arg *ClusterGetAuditAttributeType, val ClusterGetAuditRetType) { - *arg = &val -} - -/* - types and functions for extensions -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetExtensionsAttributeType = *Extension - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetExtensionsArgType = Extension - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetExtensionsRetType = Extension - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetExtensionsAttributeTypeOk(arg ClusterGetExtensionsAttributeType) (ret ClusterGetExtensionsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetExtensionsAttributeType(arg *ClusterGetExtensionsAttributeType, val ClusterGetExtensionsRetType) { - *arg = &val -} - -/* - types and functions for hibernation -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetHibernationAttributeType = *Hibernation - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetHibernationArgType = Hibernation - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetHibernationRetType = Hibernation - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetHibernationAttributeTypeOk(arg ClusterGetHibernationAttributeType) (ret ClusterGetHibernationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetHibernationAttributeType(arg *ClusterGetHibernationAttributeType, val ClusterGetHibernationRetType) { - *arg = &val -} - -/* - types and functions for kubernetes -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetKubernetesAttributeType = *Kubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetKubernetesArgType = Kubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetKubernetesRetType = Kubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetKubernetesAttributeTypeOk(arg ClusterGetKubernetesAttributeType) (ret ClusterGetKubernetesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetKubernetesAttributeType(arg *ClusterGetKubernetesAttributeType, val ClusterGetKubernetesRetType) { - *arg = &val -} - -/* - types and functions for labels -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetLabelsAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetLabelsArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetLabelsRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetLabelsAttributeTypeOk(arg ClusterGetLabelsAttributeType) (ret ClusterGetLabelsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetLabelsAttributeType(arg *ClusterGetLabelsAttributeType, val ClusterGetLabelsRetType) { - *arg = &val -} - -/* - types and functions for maintenance -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetMaintenanceAttributeType = *Maintenance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetMaintenanceArgType = Maintenance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetMaintenanceRetType = Maintenance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetMaintenanceAttributeTypeOk(arg ClusterGetMaintenanceAttributeType) (ret ClusterGetMaintenanceRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetMaintenanceAttributeType(arg *ClusterGetMaintenanceAttributeType, val ClusterGetMaintenanceRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetNameAttributeTypeOk(arg ClusterGetNameAttributeType) (ret ClusterGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetNameAttributeType(arg *ClusterGetNameAttributeType, val ClusterGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNameRetType = string - -/* - types and functions for network -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNetworkAttributeType = *Network - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNetworkArgType = Network - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNetworkRetType = Network - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetNetworkAttributeTypeOk(arg ClusterGetNetworkAttributeType) (ret ClusterGetNetworkRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetNetworkAttributeType(arg *ClusterGetNetworkAttributeType, val ClusterGetNetworkRetType) { - *arg = &val -} - -/* - types and functions for nodepools -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNodepoolsAttributeType = *[]Nodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNodepoolsArgType = []Nodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetNodepoolsRetType = []Nodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetNodepoolsAttributeTypeOk(arg ClusterGetNodepoolsAttributeType) (ret ClusterGetNodepoolsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetNodepoolsAttributeType(arg *ClusterGetNodepoolsAttributeType, val ClusterGetNodepoolsRetType) { - *arg = &val -} - -/* - types and functions for status -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetStatusAttributeType = *ClusterStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetStatusArgType = ClusterStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterGetStatusRetType = ClusterStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterGetStatusAttributeTypeOk(arg ClusterGetStatusAttributeType) (ret ClusterGetStatusRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterGetStatusAttributeType(arg *ClusterGetStatusAttributeType, val ClusterGetStatusRetType) { - *arg = &val -} - -// Cluster struct for Cluster -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Cluster struct { - Access ClusterGetAccessAttributeType `json:"access,omitempty"` - Audit ClusterGetAuditAttributeType `json:"audit,omitempty"` - Extensions ClusterGetExtensionsAttributeType `json:"extensions,omitempty"` - Hibernation ClusterGetHibernationAttributeType `json:"hibernation,omitempty"` - // REQUIRED - Kubernetes ClusterGetKubernetesAttributeType `json:"kubernetes" required:"true"` - // Labels are key-value pairs. Keys may contain domain prefix separated by a slash(/) and must begin with an alphanumerical character. Values may be empty and if not empty, they must begin and end with an alphanumerical character. Keys can be between 1-314 characters long, whereas values can be 0-63 characters long. - Labels ClusterGetLabelsAttributeType `json:"labels,omitempty"` - Maintenance ClusterGetMaintenanceAttributeType `json:"maintenance,omitempty"` - // Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. - Name ClusterGetNameAttributeType `json:"name,omitempty"` - Network ClusterGetNetworkAttributeType `json:"network,omitempty"` - // REQUIRED - Nodepools ClusterGetNodepoolsAttributeType `json:"nodepools" required:"true"` - Status ClusterGetStatusAttributeType `json:"status,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Cluster Cluster - -// NewCluster instantiates a new Cluster object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCluster(kubernetes ClusterGetKubernetesArgType, nodepools ClusterGetNodepoolsArgType) *Cluster { - this := Cluster{} - setClusterGetKubernetesAttributeType(&this.Kubernetes, kubernetes) - setClusterGetNodepoolsAttributeType(&this.Nodepools, nodepools) - return &this -} - -// NewClusterWithDefaults instantiates a new Cluster object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewClusterWithDefaults() *Cluster { - this := Cluster{} - return &this -} - -// GetAccess returns the Access field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetAccess() (res ClusterGetAccessRetType) { - res, _ = o.GetAccessOk() - return -} - -// GetAccessOk returns a tuple with the Access field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetAccessOk() (ret ClusterGetAccessRetType, ok bool) { - return getClusterGetAccessAttributeTypeOk(o.Access) -} - -// HasAccess returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasAccess() bool { - _, ok := o.GetAccessOk() - return ok -} - -// SetAccess gets a reference to the given Access and assigns it to the Access field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetAccess(v ClusterGetAccessRetType) { - setClusterGetAccessAttributeType(&o.Access, v) -} - -// GetAudit returns the Audit field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetAudit() (res ClusterGetAuditRetType) { - res, _ = o.GetAuditOk() - return -} - -// GetAuditOk returns a tuple with the Audit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetAuditOk() (ret ClusterGetAuditRetType, ok bool) { - return getClusterGetAuditAttributeTypeOk(o.Audit) -} - -// HasAudit returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasAudit() bool { - _, ok := o.GetAuditOk() - return ok -} - -// SetAudit gets a reference to the given Audit and assigns it to the Audit field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetAudit(v ClusterGetAuditRetType) { - setClusterGetAuditAttributeType(&o.Audit, v) -} - -// GetExtensions returns the Extensions field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetExtensions() (res ClusterGetExtensionsRetType) { - res, _ = o.GetExtensionsOk() - return -} - -// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetExtensionsOk() (ret ClusterGetExtensionsRetType, ok bool) { - return getClusterGetExtensionsAttributeTypeOk(o.Extensions) -} - -// HasExtensions returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasExtensions() bool { - _, ok := o.GetExtensionsOk() - return ok -} - -// SetExtensions gets a reference to the given Extension and assigns it to the Extensions field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetExtensions(v ClusterGetExtensionsRetType) { - setClusterGetExtensionsAttributeType(&o.Extensions, v) -} - -// GetHibernation returns the Hibernation field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetHibernation() (res ClusterGetHibernationRetType) { - res, _ = o.GetHibernationOk() - return -} - -// GetHibernationOk returns a tuple with the Hibernation field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetHibernationOk() (ret ClusterGetHibernationRetType, ok bool) { - return getClusterGetHibernationAttributeTypeOk(o.Hibernation) -} - -// HasHibernation returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasHibernation() bool { - _, ok := o.GetHibernationOk() - return ok -} - -// SetHibernation gets a reference to the given Hibernation and assigns it to the Hibernation field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetHibernation(v ClusterGetHibernationRetType) { - setClusterGetHibernationAttributeType(&o.Hibernation, v) -} - -// GetKubernetes returns the Kubernetes field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetKubernetes() (ret ClusterGetKubernetesRetType) { - ret, _ = o.GetKubernetesOk() - return ret -} - -// GetKubernetesOk returns a tuple with the Kubernetes field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetKubernetesOk() (ret ClusterGetKubernetesRetType, ok bool) { - return getClusterGetKubernetesAttributeTypeOk(o.Kubernetes) -} - -// SetKubernetes sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetKubernetes(v ClusterGetKubernetesRetType) { - setClusterGetKubernetesAttributeType(&o.Kubernetes, v) -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetLabels() (res ClusterGetLabelsRetType) { - res, _ = o.GetLabelsOk() - return -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetLabelsOk() (ret ClusterGetLabelsRetType, ok bool) { - return getClusterGetLabelsAttributeTypeOk(o.Labels) -} - -// HasLabels returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasLabels() bool { - _, ok := o.GetLabelsOk() - return ok -} - -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetLabels(v ClusterGetLabelsRetType) { - setClusterGetLabelsAttributeType(&o.Labels, v) -} - -// GetMaintenance returns the Maintenance field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetMaintenance() (res ClusterGetMaintenanceRetType) { - res, _ = o.GetMaintenanceOk() - return -} - -// GetMaintenanceOk returns a tuple with the Maintenance field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetMaintenanceOk() (ret ClusterGetMaintenanceRetType, ok bool) { - return getClusterGetMaintenanceAttributeTypeOk(o.Maintenance) -} - -// HasMaintenance returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasMaintenance() bool { - _, ok := o.GetMaintenanceOk() - return ok -} - -// SetMaintenance gets a reference to the given Maintenance and assigns it to the Maintenance field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetMaintenance(v ClusterGetMaintenanceRetType) { - setClusterGetMaintenanceAttributeType(&o.Maintenance, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetName() (res ClusterGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetNameOk() (ret ClusterGetNameRetType, ok bool) { - return getClusterGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetName(v ClusterGetNameRetType) { - setClusterGetNameAttributeType(&o.Name, v) -} - -// GetNetwork returns the Network field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetNetwork() (res ClusterGetNetworkRetType) { - res, _ = o.GetNetworkOk() - return -} - -// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetNetworkOk() (ret ClusterGetNetworkRetType, ok bool) { - return getClusterGetNetworkAttributeTypeOk(o.Network) -} - -// HasNetwork returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasNetwork() bool { - _, ok := o.GetNetworkOk() - return ok -} - -// SetNetwork gets a reference to the given Network and assigns it to the Network field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetNetwork(v ClusterGetNetworkRetType) { - setClusterGetNetworkAttributeType(&o.Network, v) -} - -// GetNodepools returns the Nodepools field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetNodepools() (ret ClusterGetNodepoolsRetType) { - ret, _ = o.GetNodepoolsOk() - return ret -} - -// GetNodepoolsOk returns a tuple with the Nodepools field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetNodepoolsOk() (ret ClusterGetNodepoolsRetType, ok bool) { - return getClusterGetNodepoolsAttributeTypeOk(o.Nodepools) -} - -// SetNodepools sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetNodepools(v ClusterGetNodepoolsRetType) { - setClusterGetNodepoolsAttributeType(&o.Nodepools, v) -} - -// GetStatus returns the Status field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetStatus() (res ClusterGetStatusRetType) { - res, _ = o.GetStatusOk() - return -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) GetStatusOk() (ret ClusterGetStatusRetType, ok bool) { - return getClusterGetStatusAttributeTypeOk(o.Status) -} - -// HasStatus returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) HasStatus() bool { - _, ok := o.GetStatusOk() - return ok -} - -// SetStatus gets a reference to the given ClusterStatus and assigns it to the Status field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Cluster) SetStatus(v ClusterGetStatusRetType) { - setClusterGetStatusAttributeType(&o.Status, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Cluster) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getClusterGetAccessAttributeTypeOk(o.Access); ok { - toSerialize["Access"] = val - } - if val, ok := getClusterGetAuditAttributeTypeOk(o.Audit); ok { - toSerialize["Audit"] = val - } - if val, ok := getClusterGetExtensionsAttributeTypeOk(o.Extensions); ok { - toSerialize["Extensions"] = val - } - if val, ok := getClusterGetHibernationAttributeTypeOk(o.Hibernation); ok { - toSerialize["Hibernation"] = val - } - if val, ok := getClusterGetKubernetesAttributeTypeOk(o.Kubernetes); ok { - toSerialize["Kubernetes"] = val - } - if val, ok := getClusterGetLabelsAttributeTypeOk(o.Labels); ok { - toSerialize["Labels"] = val - } - if val, ok := getClusterGetMaintenanceAttributeTypeOk(o.Maintenance); ok { - toSerialize["Maintenance"] = val - } - if val, ok := getClusterGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getClusterGetNetworkAttributeTypeOk(o.Network); ok { - toSerialize["Network"] = val - } - if val, ok := getClusterGetNodepoolsAttributeTypeOk(o.Nodepools); ok { - toSerialize["Nodepools"] = val - } - if val, ok := getClusterGetStatusAttributeTypeOk(o.Status); ok { - toSerialize["Status"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCluster struct { - value *Cluster - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCluster) Get() *Cluster { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCluster) Set(val *Cluster) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCluster) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCluster) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCluster(val *Cluster) *NullableCluster { - return &NullableCluster{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCluster) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCluster) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_cluster_error.go b/services/ske/model_cluster_error.go deleted file mode 100644 index ba64415e74..0000000000 --- a/services/ske/model_cluster_error.go +++ /dev/null @@ -1,210 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the ClusterError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ClusterError{} - -/* - types and functions for code -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterErrorGetCodeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterErrorGetCodeAttributeTypeOk(arg ClusterErrorGetCodeAttributeType) (ret ClusterErrorGetCodeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterErrorGetCodeAttributeType(arg *ClusterErrorGetCodeAttributeType, val ClusterErrorGetCodeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterErrorGetCodeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterErrorGetCodeRetType = string - -/* - types and functions for message -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterErrorGetMessageAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterErrorGetMessageAttributeTypeOk(arg ClusterErrorGetMessageAttributeType) (ret ClusterErrorGetMessageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterErrorGetMessageAttributeType(arg *ClusterErrorGetMessageAttributeType, val ClusterErrorGetMessageRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterErrorGetMessageArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterErrorGetMessageRetType = string - -// ClusterError struct for ClusterError -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterError struct { - // Possible values: `\"SKE_INFRA_SNA_NETWORK_NOT_FOUND\"`, `\"SKE_INFRA_SNA_NETWORK_NO_ROUTER\"`, `\"SKE_NODE_NO_VALID_HOST_FOUND\"`, `\"SKE_NODE_MISCONFIGURED_PDB\"`, `\"SKE_NODE_MACHINE_TYPE_NOT_FOUND\"`, `\"SKE_NETWORK_NO_DNS_CONFIGURED\"`, `\"SKE_NETWORK_NO_AVAILABLE_IPS\"`, `\"SKE_NODE_MEMORY_PRESSURE\"`, `\"SKE_NODE_DISK_PRESSURE\"`, `\"SKE_NODE_PID_PRESSURE\"`, `\"SKE_OBSERVABILITY_INSTANCE_NOT_FOUND\"`, `\"SKE_OBSERVABILITY_INSTANCE_NOT_READY\"`, `\"SKE_DNS_ZONE_NOT_FOUND\"`, `\"SKE_SNA_DOES_NOT_SUPPORT_SERVICE_ROUTES\"`, `\"SKE_FETCHING_ERRORS_NOT_POSSIBLE\"` - Code ClusterErrorGetCodeAttributeType `json:"code,omitempty"` - Message ClusterErrorGetMessageAttributeType `json:"message,omitempty"` -} - -// NewClusterError instantiates a new ClusterError object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewClusterError() *ClusterError { - this := ClusterError{} - return &this -} - -// NewClusterErrorWithDefaults instantiates a new ClusterError object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewClusterErrorWithDefaults() *ClusterError { - this := ClusterError{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) GetCode() (res ClusterErrorGetCodeRetType) { - res, _ = o.GetCodeOk() - return -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) GetCodeOk() (ret ClusterErrorGetCodeRetType, ok bool) { - return getClusterErrorGetCodeAttributeTypeOk(o.Code) -} - -// HasCode returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) HasCode() bool { - _, ok := o.GetCodeOk() - return ok -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) SetCode(v ClusterErrorGetCodeRetType) { - setClusterErrorGetCodeAttributeType(&o.Code, v) -} - -// GetMessage returns the Message field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) GetMessage() (res ClusterErrorGetMessageRetType) { - res, _ = o.GetMessageOk() - return -} - -// GetMessageOk returns a tuple with the Message field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) GetMessageOk() (ret ClusterErrorGetMessageRetType, ok bool) { - return getClusterErrorGetMessageAttributeTypeOk(o.Message) -} - -// HasMessage returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) HasMessage() bool { - _, ok := o.GetMessageOk() - return ok -} - -// SetMessage gets a reference to the given string and assigns it to the Message field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterError) SetMessage(v ClusterErrorGetMessageRetType) { - setClusterErrorGetMessageAttributeType(&o.Message, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ClusterError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getClusterErrorGetCodeAttributeTypeOk(o.Code); ok { - toSerialize["Code"] = val - } - if val, ok := getClusterErrorGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableClusterError struct { - value *ClusterError - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterError) Get() *ClusterError { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterError) Set(val *ClusterError) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterError) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterError) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableClusterError(val *ClusterError) *NullableClusterError { - return &NullableClusterError{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_cluster_error_test.go b/services/ske/model_cluster_error_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_cluster_error_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_cluster_status.go b/services/ske/model_cluster_status.go deleted file mode 100644 index d3eefdf826..0000000000 --- a/services/ske/model_cluster_status.go +++ /dev/null @@ -1,735 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "time" -) - -// checks if the ClusterStatus type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ClusterStatus{} - -/* - types and functions for aggregated -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetAggregatedAttributeType = *ClusterStatusState - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetAggregatedArgType = ClusterStatusState - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetAggregatedRetType = ClusterStatusState - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetAggregatedAttributeTypeOk(arg ClusterStatusGetAggregatedAttributeType) (ret ClusterStatusGetAggregatedRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetAggregatedAttributeType(arg *ClusterStatusGetAggregatedAttributeType, val ClusterStatusGetAggregatedRetType) { - *arg = &val -} - -/* - types and functions for creationTime -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetCreationTimeAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetCreationTimeArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetCreationTimeRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetCreationTimeAttributeTypeOk(arg ClusterStatusGetCreationTimeAttributeType) (ret ClusterStatusGetCreationTimeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetCreationTimeAttributeType(arg *ClusterStatusGetCreationTimeAttributeType, val ClusterStatusGetCreationTimeRetType) { - *arg = &val -} - -/* - types and functions for credentialsRotation -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetCredentialsRotationAttributeType = *CredentialsRotationState - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetCredentialsRotationArgType = CredentialsRotationState - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetCredentialsRotationRetType = CredentialsRotationState - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetCredentialsRotationAttributeTypeOk(arg ClusterStatusGetCredentialsRotationAttributeType) (ret ClusterStatusGetCredentialsRotationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetCredentialsRotationAttributeType(arg *ClusterStatusGetCredentialsRotationAttributeType, val ClusterStatusGetCredentialsRotationRetType) { - *arg = &val -} - -/* - types and functions for egressAddressRanges -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetEgressAddressRangesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetEgressAddressRangesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetEgressAddressRangesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetEgressAddressRangesAttributeTypeOk(arg ClusterStatusGetEgressAddressRangesAttributeType) (ret ClusterStatusGetEgressAddressRangesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetEgressAddressRangesAttributeType(arg *ClusterStatusGetEgressAddressRangesAttributeType, val ClusterStatusGetEgressAddressRangesRetType) { - *arg = &val -} - -/* - types and functions for error -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetErrorAttributeType = *RuntimeError - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetErrorArgType = RuntimeError - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetErrorRetType = RuntimeError - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetErrorAttributeTypeOk(arg ClusterStatusGetErrorAttributeType) (ret ClusterStatusGetErrorRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetErrorAttributeType(arg *ClusterStatusGetErrorAttributeType, val ClusterStatusGetErrorRetType) { - *arg = &val -} - -/* - types and functions for errors -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetErrorsAttributeType = *[]ClusterError - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetErrorsArgType = []ClusterError - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetErrorsRetType = []ClusterError - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetErrorsAttributeTypeOk(arg ClusterStatusGetErrorsAttributeType) (ret ClusterStatusGetErrorsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetErrorsAttributeType(arg *ClusterStatusGetErrorsAttributeType, val ClusterStatusGetErrorsRetType) { - *arg = &val -} - -/* - types and functions for expiration -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetExpirationAttributeType = *ExpirationStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetExpirationArgType = ExpirationStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetExpirationRetType = ExpirationStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetExpirationAttributeTypeOk(arg ClusterStatusGetExpirationAttributeType) (ret ClusterStatusGetExpirationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetExpirationAttributeType(arg *ClusterStatusGetExpirationAttributeType, val ClusterStatusGetExpirationRetType) { - *arg = &val -} - -/* - types and functions for hibernated -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusgetHibernatedAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusgetHibernatedArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusgetHibernatedRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusgetHibernatedAttributeTypeOk(arg ClusterStatusgetHibernatedAttributeType) (ret ClusterStatusgetHibernatedRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusgetHibernatedAttributeType(arg *ClusterStatusgetHibernatedAttributeType, val ClusterStatusgetHibernatedRetType) { - *arg = &val -} - -/* - types and functions for identity -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetIdentityAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetIdentityAttributeTypeOk(arg ClusterStatusGetIdentityAttributeType) (ret ClusterStatusGetIdentityRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetIdentityAttributeType(arg *ClusterStatusGetIdentityAttributeType, val ClusterStatusGetIdentityRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetIdentityArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetIdentityRetType = string - -/* - types and functions for podAddressRanges -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetPodAddressRangesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetPodAddressRangesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetPodAddressRangesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetPodAddressRangesAttributeTypeOk(arg ClusterStatusGetPodAddressRangesAttributeType) (ret ClusterStatusGetPodAddressRangesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetPodAddressRangesAttributeType(arg *ClusterStatusGetPodAddressRangesAttributeType, val ClusterStatusGetPodAddressRangesRetType) { - *arg = &val -} - -/* - types and functions for serviceAccountIssuer -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetServiceAccountIssuerAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getClusterStatusGetServiceAccountIssuerAttributeTypeOk(arg ClusterStatusGetServiceAccountIssuerAttributeType) (ret ClusterStatusGetServiceAccountIssuerRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setClusterStatusGetServiceAccountIssuerAttributeType(arg *ClusterStatusGetServiceAccountIssuerAttributeType, val ClusterStatusGetServiceAccountIssuerRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetServiceAccountIssuerArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusGetServiceAccountIssuerRetType = string - -// ClusterStatus struct for ClusterStatus -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatus struct { - Aggregated ClusterStatusGetAggregatedAttributeType `json:"aggregated,omitempty"` - // Format: `2024-02-15T11:06:29Z` - CreationTime ClusterStatusGetCreationTimeAttributeType `json:"creationTime,omitempty"` - CredentialsRotation ClusterStatusGetCredentialsRotationAttributeType `json:"credentialsRotation,omitempty"` - // The outgoing network ranges (in CIDR notation) of traffic originating from workload on the cluster. - EgressAddressRanges ClusterStatusGetEgressAddressRangesAttributeType `json:"egressAddressRanges,omitempty"` - Error ClusterStatusGetErrorAttributeType `json:"error,omitempty"` - Errors ClusterStatusGetErrorsAttributeType `json:"errors,omitempty"` - Expiration ClusterStatusGetExpirationAttributeType `json:"expiration,omitempty"` - Hibernated ClusterStatusgetHibernatedAttributeType `json:"hibernated,omitempty"` - Identity ClusterStatusGetIdentityAttributeType `json:"identity,omitempty"` - // The network ranges (in CIDR notation) used by pods of the cluster. - PodAddressRanges ClusterStatusGetPodAddressRangesAttributeType `json:"podAddressRanges,omitempty"` - ServiceAccountIssuer ClusterStatusGetServiceAccountIssuerAttributeType `json:"serviceAccountIssuer,omitempty"` -} - -// NewClusterStatus instantiates a new ClusterStatus object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewClusterStatus() *ClusterStatus { - this := ClusterStatus{} - return &this -} - -// NewClusterStatusWithDefaults instantiates a new ClusterStatus object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewClusterStatusWithDefaults() *ClusterStatus { - this := ClusterStatus{} - return &this -} - -// GetAggregated returns the Aggregated field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetAggregated() (res ClusterStatusGetAggregatedRetType) { - res, _ = o.GetAggregatedOk() - return -} - -// GetAggregatedOk returns a tuple with the Aggregated field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetAggregatedOk() (ret ClusterStatusGetAggregatedRetType, ok bool) { - return getClusterStatusGetAggregatedAttributeTypeOk(o.Aggregated) -} - -// HasAggregated returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasAggregated() bool { - _, ok := o.GetAggregatedOk() - return ok -} - -// SetAggregated gets a reference to the given ClusterStatusState and assigns it to the Aggregated field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetAggregated(v ClusterStatusGetAggregatedRetType) { - setClusterStatusGetAggregatedAttributeType(&o.Aggregated, v) -} - -// GetCreationTime returns the CreationTime field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetCreationTime() (res ClusterStatusGetCreationTimeRetType) { - res, _ = o.GetCreationTimeOk() - return -} - -// GetCreationTimeOk returns a tuple with the CreationTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetCreationTimeOk() (ret ClusterStatusGetCreationTimeRetType, ok bool) { - return getClusterStatusGetCreationTimeAttributeTypeOk(o.CreationTime) -} - -// HasCreationTime returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasCreationTime() bool { - _, ok := o.GetCreationTimeOk() - return ok -} - -// SetCreationTime gets a reference to the given time.Time and assigns it to the CreationTime field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetCreationTime(v ClusterStatusGetCreationTimeRetType) { - setClusterStatusGetCreationTimeAttributeType(&o.CreationTime, v) -} - -// GetCredentialsRotation returns the CredentialsRotation field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetCredentialsRotation() (res ClusterStatusGetCredentialsRotationRetType) { - res, _ = o.GetCredentialsRotationOk() - return -} - -// GetCredentialsRotationOk returns a tuple with the CredentialsRotation field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetCredentialsRotationOk() (ret ClusterStatusGetCredentialsRotationRetType, ok bool) { - return getClusterStatusGetCredentialsRotationAttributeTypeOk(o.CredentialsRotation) -} - -// HasCredentialsRotation returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasCredentialsRotation() bool { - _, ok := o.GetCredentialsRotationOk() - return ok -} - -// SetCredentialsRotation gets a reference to the given CredentialsRotationState and assigns it to the CredentialsRotation field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetCredentialsRotation(v ClusterStatusGetCredentialsRotationRetType) { - setClusterStatusGetCredentialsRotationAttributeType(&o.CredentialsRotation, v) -} - -// GetEgressAddressRanges returns the EgressAddressRanges field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetEgressAddressRanges() (res ClusterStatusGetEgressAddressRangesRetType) { - res, _ = o.GetEgressAddressRangesOk() - return -} - -// GetEgressAddressRangesOk returns a tuple with the EgressAddressRanges field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetEgressAddressRangesOk() (ret ClusterStatusGetEgressAddressRangesRetType, ok bool) { - return getClusterStatusGetEgressAddressRangesAttributeTypeOk(o.EgressAddressRanges) -} - -// HasEgressAddressRanges returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasEgressAddressRanges() bool { - _, ok := o.GetEgressAddressRangesOk() - return ok -} - -// SetEgressAddressRanges gets a reference to the given []string and assigns it to the EgressAddressRanges field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetEgressAddressRanges(v ClusterStatusGetEgressAddressRangesRetType) { - setClusterStatusGetEgressAddressRangesAttributeType(&o.EgressAddressRanges, v) -} - -// GetError returns the Error field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetError() (res ClusterStatusGetErrorRetType) { - res, _ = o.GetErrorOk() - return -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetErrorOk() (ret ClusterStatusGetErrorRetType, ok bool) { - return getClusterStatusGetErrorAttributeTypeOk(o.Error) -} - -// HasError returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasError() bool { - _, ok := o.GetErrorOk() - return ok -} - -// SetError gets a reference to the given RuntimeError and assigns it to the Error field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetError(v ClusterStatusGetErrorRetType) { - setClusterStatusGetErrorAttributeType(&o.Error, v) -} - -// GetErrors returns the Errors field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetErrors() (res ClusterStatusGetErrorsRetType) { - res, _ = o.GetErrorsOk() - return -} - -// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetErrorsOk() (ret ClusterStatusGetErrorsRetType, ok bool) { - return getClusterStatusGetErrorsAttributeTypeOk(o.Errors) -} - -// HasErrors returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasErrors() bool { - _, ok := o.GetErrorsOk() - return ok -} - -// SetErrors gets a reference to the given []ClusterError and assigns it to the Errors field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetErrors(v ClusterStatusGetErrorsRetType) { - setClusterStatusGetErrorsAttributeType(&o.Errors, v) -} - -// GetExpiration returns the Expiration field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetExpiration() (res ClusterStatusGetExpirationRetType) { - res, _ = o.GetExpirationOk() - return -} - -// GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetExpirationOk() (ret ClusterStatusGetExpirationRetType, ok bool) { - return getClusterStatusGetExpirationAttributeTypeOk(o.Expiration) -} - -// HasExpiration returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasExpiration() bool { - _, ok := o.GetExpirationOk() - return ok -} - -// SetExpiration gets a reference to the given ExpirationStatus and assigns it to the Expiration field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetExpiration(v ClusterStatusGetExpirationRetType) { - setClusterStatusGetExpirationAttributeType(&o.Expiration, v) -} - -// GetHibernated returns the Hibernated field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetHibernated() (res ClusterStatusgetHibernatedRetType) { - res, _ = o.GetHibernatedOk() - return -} - -// GetHibernatedOk returns a tuple with the Hibernated field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetHibernatedOk() (ret ClusterStatusgetHibernatedRetType, ok bool) { - return getClusterStatusgetHibernatedAttributeTypeOk(o.Hibernated) -} - -// HasHibernated returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasHibernated() bool { - _, ok := o.GetHibernatedOk() - return ok -} - -// SetHibernated gets a reference to the given bool and assigns it to the Hibernated field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetHibernated(v ClusterStatusgetHibernatedRetType) { - setClusterStatusgetHibernatedAttributeType(&o.Hibernated, v) -} - -// GetIdentity returns the Identity field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetIdentity() (res ClusterStatusGetIdentityRetType) { - res, _ = o.GetIdentityOk() - return -} - -// GetIdentityOk returns a tuple with the Identity field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetIdentityOk() (ret ClusterStatusGetIdentityRetType, ok bool) { - return getClusterStatusGetIdentityAttributeTypeOk(o.Identity) -} - -// HasIdentity returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasIdentity() bool { - _, ok := o.GetIdentityOk() - return ok -} - -// SetIdentity gets a reference to the given string and assigns it to the Identity field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetIdentity(v ClusterStatusGetIdentityRetType) { - setClusterStatusGetIdentityAttributeType(&o.Identity, v) -} - -// GetPodAddressRanges returns the PodAddressRanges field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetPodAddressRanges() (res ClusterStatusGetPodAddressRangesRetType) { - res, _ = o.GetPodAddressRangesOk() - return -} - -// GetPodAddressRangesOk returns a tuple with the PodAddressRanges field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetPodAddressRangesOk() (ret ClusterStatusGetPodAddressRangesRetType, ok bool) { - return getClusterStatusGetPodAddressRangesAttributeTypeOk(o.PodAddressRanges) -} - -// HasPodAddressRanges returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasPodAddressRanges() bool { - _, ok := o.GetPodAddressRangesOk() - return ok -} - -// SetPodAddressRanges gets a reference to the given []string and assigns it to the PodAddressRanges field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetPodAddressRanges(v ClusterStatusGetPodAddressRangesRetType) { - setClusterStatusGetPodAddressRangesAttributeType(&o.PodAddressRanges, v) -} - -// GetServiceAccountIssuer returns the ServiceAccountIssuer field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetServiceAccountIssuer() (res ClusterStatusGetServiceAccountIssuerRetType) { - res, _ = o.GetServiceAccountIssuerOk() - return -} - -// GetServiceAccountIssuerOk returns a tuple with the ServiceAccountIssuer field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) GetServiceAccountIssuerOk() (ret ClusterStatusGetServiceAccountIssuerRetType, ok bool) { - return getClusterStatusGetServiceAccountIssuerAttributeTypeOk(o.ServiceAccountIssuer) -} - -// HasServiceAccountIssuer returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) HasServiceAccountIssuer() bool { - _, ok := o.GetServiceAccountIssuerOk() - return ok -} - -// SetServiceAccountIssuer gets a reference to the given string and assigns it to the ServiceAccountIssuer field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ClusterStatus) SetServiceAccountIssuer(v ClusterStatusGetServiceAccountIssuerRetType) { - setClusterStatusGetServiceAccountIssuerAttributeType(&o.ServiceAccountIssuer, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ClusterStatus) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getClusterStatusGetAggregatedAttributeTypeOk(o.Aggregated); ok { - toSerialize["Aggregated"] = val - } - if val, ok := getClusterStatusGetCreationTimeAttributeTypeOk(o.CreationTime); ok { - toSerialize["CreationTime"] = val - } - if val, ok := getClusterStatusGetCredentialsRotationAttributeTypeOk(o.CredentialsRotation); ok { - toSerialize["CredentialsRotation"] = val - } - if val, ok := getClusterStatusGetEgressAddressRangesAttributeTypeOk(o.EgressAddressRanges); ok { - toSerialize["EgressAddressRanges"] = val - } - if val, ok := getClusterStatusGetErrorAttributeTypeOk(o.Error); ok { - toSerialize["Error"] = val - } - if val, ok := getClusterStatusGetErrorsAttributeTypeOk(o.Errors); ok { - toSerialize["Errors"] = val - } - if val, ok := getClusterStatusGetExpirationAttributeTypeOk(o.Expiration); ok { - toSerialize["Expiration"] = val - } - if val, ok := getClusterStatusgetHibernatedAttributeTypeOk(o.Hibernated); ok { - toSerialize["Hibernated"] = val - } - if val, ok := getClusterStatusGetIdentityAttributeTypeOk(o.Identity); ok { - toSerialize["Identity"] = val - } - if val, ok := getClusterStatusGetPodAddressRangesAttributeTypeOk(o.PodAddressRanges); ok { - toSerialize["PodAddressRanges"] = val - } - if val, ok := getClusterStatusGetServiceAccountIssuerAttributeTypeOk(o.ServiceAccountIssuer); ok { - toSerialize["ServiceAccountIssuer"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableClusterStatus struct { - value *ClusterStatus - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterStatus) Get() *ClusterStatus { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterStatus) Set(val *ClusterStatus) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterStatus) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterStatus) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableClusterStatus(val *ClusterStatus) *NullableClusterStatus { - return &NullableClusterStatus{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_cluster_status_state.go b/services/ske/model_cluster_status_state.go deleted file mode 100644 index 5ec3af0bd8..0000000000 --- a/services/ske/model_cluster_status_state.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "fmt" -) - -// ClusterStatusState the model 'ClusterStatusState' -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ClusterStatusState string - -// List of ClusterStatusState -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_HEALTHY ClusterStatusState = "STATE_HEALTHY" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_CREATING ClusterStatusState = "STATE_CREATING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_DELETING ClusterStatusState = "STATE_DELETING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_UNHEALTHY ClusterStatusState = "STATE_UNHEALTHY" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_RECONCILING ClusterStatusState = "STATE_RECONCILING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_HIBERNATED ClusterStatusState = "STATE_HIBERNATED" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_HIBERNATING ClusterStatusState = "STATE_HIBERNATING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CLUSTERSTATUSSTATE_WAKINGUP ClusterStatusState = "STATE_WAKINGUP" -) - -// All allowed values of ClusterStatusState enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedClusterStatusStateEnumValues = []ClusterStatusState{ - "STATE_HEALTHY", - "STATE_CREATING", - "STATE_DELETING", - "STATE_UNHEALTHY", - "STATE_RECONCILING", - "STATE_HIBERNATED", - "STATE_HIBERNATING", - "STATE_WAKINGUP", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *ClusterStatusState) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := ClusterStatusState(value) - for _, existing := range AllowedClusterStatusStateEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ClusterStatusState", value) -} - -// NewClusterStatusStateFromValue returns a pointer to a valid ClusterStatusState -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewClusterStatusStateFromValue(v string) (*ClusterStatusState, error) { - ev := ClusterStatusState(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ClusterStatusState: valid values are %v", v, AllowedClusterStatusStateEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v ClusterStatusState) IsValid() bool { - for _, existing := range AllowedClusterStatusStateEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ClusterStatusState value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v ClusterStatusState) Ptr() *ClusterStatusState { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableClusterStatusState struct { - value *ClusterStatusState - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterStatusState) Get() *ClusterStatusState { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterStatusState) Set(val *ClusterStatusState) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterStatusState) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterStatusState) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableClusterStatusState(val *ClusterStatusState) *NullableClusterStatusState { - return &NullableClusterStatusState{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableClusterStatusState) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableClusterStatusState) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_cluster_status_state_test.go b/services/ske/model_cluster_status_state_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_cluster_status_state_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_cluster_status_test.go b/services/ske/model_cluster_status_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_cluster_status_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_cluster_test.go b/services/ske/model_cluster_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_cluster_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_cni.go b/services/ske/model_cni.go deleted file mode 100644 index 3b09bc772c..0000000000 --- a/services/ske/model_cni.go +++ /dev/null @@ -1,152 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the CNI type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CNI{} - -/* - types and functions for calico -*/ - -// isFreeform -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CNIGetCalicoAttributeType = *map[string]interface{} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CNIGetCalicoArgType = map[string]interface{} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CNIGetCalicoRetType = map[string]interface{} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCNIGetCalicoAttributeTypeOk(arg CNIGetCalicoAttributeType) (ret CNIGetCalicoRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCNIGetCalicoAttributeType(arg *CNIGetCalicoAttributeType, val CNIGetCalicoRetType) { - *arg = &val -} - -// CNI CNI to use for the cluster. Only one type of CNI can be used. The type of CNI is immutable after creation. Defaults to calico -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CNI struct { - // configuration options for the Calico CNI - Calico CNIGetCalicoAttributeType `json:"calico,omitempty"` -} - -// NewCNI instantiates a new CNI object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCNI() *CNI { - this := CNI{} - return &this -} - -// NewCNIWithDefaults instantiates a new CNI object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCNIWithDefaults() *CNI { - this := CNI{} - return &this -} - -// GetCalico returns the Calico field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CNI) GetCalico() (res CNIGetCalicoRetType) { - res, _ = o.GetCalicoOk() - return -} - -// GetCalicoOk returns a tuple with the Calico field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CNI) GetCalicoOk() (ret CNIGetCalicoRetType, ok bool) { - return getCNIGetCalicoAttributeTypeOk(o.Calico) -} - -// HasCalico returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CNI) HasCalico() bool { - _, ok := o.GetCalicoOk() - return ok -} - -// SetCalico gets a reference to the given map[string]interface{} and assigns it to the Calico field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CNI) SetCalico(v CNIGetCalicoRetType) { - setCNIGetCalicoAttributeType(&o.Calico, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CNI) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCNIGetCalicoAttributeTypeOk(o.Calico); ok { - toSerialize["Calico"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCNI struct { - value *CNI - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCNI) Get() *CNI { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCNI) Set(val *CNI) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCNI) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCNI) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCNI(val *CNI) *NullableCNI { - return &NullableCNI{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCNI) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCNI) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_cni_test.go b/services/ske/model_cni_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_cni_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_create_kubeconfig_payload.go b/services/ske/model_create_kubeconfig_payload.go deleted file mode 100644 index d6503a6735..0000000000 --- a/services/ske/model_create_kubeconfig_payload.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the CreateKubeconfigPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateKubeconfigPayload{} - -/* - types and functions for expirationSeconds -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateKubeconfigPayloadGetExpirationSecondsAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateKubeconfigPayloadGetExpirationSecondsAttributeTypeOk(arg CreateKubeconfigPayloadGetExpirationSecondsAttributeType) (ret CreateKubeconfigPayloadGetExpirationSecondsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateKubeconfigPayloadGetExpirationSecondsAttributeType(arg *CreateKubeconfigPayloadGetExpirationSecondsAttributeType, val CreateKubeconfigPayloadGetExpirationSecondsRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateKubeconfigPayloadGetExpirationSecondsArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateKubeconfigPayloadGetExpirationSecondsRetType = string - -// CreateKubeconfigPayload struct for CreateKubeconfigPayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateKubeconfigPayload struct { - ExpirationSeconds CreateKubeconfigPayloadGetExpirationSecondsAttributeType `json:"expirationSeconds,omitempty"` -} - -// NewCreateKubeconfigPayload instantiates a new CreateKubeconfigPayload object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateKubeconfigPayload() *CreateKubeconfigPayload { - this := CreateKubeconfigPayload{} - return &this -} - -// NewCreateKubeconfigPayloadWithDefaults instantiates a new CreateKubeconfigPayload object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateKubeconfigPayloadWithDefaults() *CreateKubeconfigPayload { - this := CreateKubeconfigPayload{} - return &this -} - -// GetExpirationSeconds returns the ExpirationSeconds field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateKubeconfigPayload) GetExpirationSeconds() (res CreateKubeconfigPayloadGetExpirationSecondsRetType) { - res, _ = o.GetExpirationSecondsOk() - return -} - -// GetExpirationSecondsOk returns a tuple with the ExpirationSeconds field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateKubeconfigPayload) GetExpirationSecondsOk() (ret CreateKubeconfigPayloadGetExpirationSecondsRetType, ok bool) { - return getCreateKubeconfigPayloadGetExpirationSecondsAttributeTypeOk(o.ExpirationSeconds) -} - -// HasExpirationSeconds returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateKubeconfigPayload) HasExpirationSeconds() bool { - _, ok := o.GetExpirationSecondsOk() - return ok -} - -// SetExpirationSeconds gets a reference to the given string and assigns it to the ExpirationSeconds field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateKubeconfigPayload) SetExpirationSeconds(v CreateKubeconfigPayloadGetExpirationSecondsRetType) { - setCreateKubeconfigPayloadGetExpirationSecondsAttributeType(&o.ExpirationSeconds, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateKubeconfigPayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateKubeconfigPayloadGetExpirationSecondsAttributeTypeOk(o.ExpirationSeconds); ok { - toSerialize["ExpirationSeconds"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateKubeconfigPayload struct { - value *CreateKubeconfigPayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateKubeconfigPayload) Get() *CreateKubeconfigPayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateKubeconfigPayload) Set(val *CreateKubeconfigPayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateKubeconfigPayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateKubeconfigPayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateKubeconfigPayload(val *CreateKubeconfigPayload) *NullableCreateKubeconfigPayload { - return &NullableCreateKubeconfigPayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateKubeconfigPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateKubeconfigPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_create_kubeconfig_payload_test.go b/services/ske/model_create_kubeconfig_payload_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_create_kubeconfig_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_create_or_update_cluster_payload.go b/services/ske/model_create_or_update_cluster_payload.go deleted file mode 100644 index d9a2489c32..0000000000 --- a/services/ske/model_create_or_update_cluster_payload.go +++ /dev/null @@ -1,667 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the CreateOrUpdateClusterPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateOrUpdateClusterPayload{} - -/* - types and functions for access -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetAccessAttributeType = *Access - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetAccessArgType = Access - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetAccessRetType = Access - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetAccessAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetAccessAttributeType) (ret CreateOrUpdateClusterPayloadGetAccessRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetAccessAttributeType(arg *CreateOrUpdateClusterPayloadGetAccessAttributeType, val CreateOrUpdateClusterPayloadGetAccessRetType) { - *arg = &val -} - -/* - types and functions for audit -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetAuditAttributeType = *Audit - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetAuditArgType = Audit - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetAuditRetType = Audit - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetAuditAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetAuditAttributeType) (ret CreateOrUpdateClusterPayloadGetAuditRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetAuditAttributeType(arg *CreateOrUpdateClusterPayloadGetAuditAttributeType, val CreateOrUpdateClusterPayloadGetAuditRetType) { - *arg = &val -} - -/* - types and functions for extensions -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetExtensionsAttributeType = *Extension - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetExtensionsArgType = Extension - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetExtensionsRetType = Extension - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetExtensionsAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetExtensionsAttributeType) (ret CreateOrUpdateClusterPayloadGetExtensionsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetExtensionsAttributeType(arg *CreateOrUpdateClusterPayloadGetExtensionsAttributeType, val CreateOrUpdateClusterPayloadGetExtensionsRetType) { - *arg = &val -} - -/* - types and functions for hibernation -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetHibernationAttributeType = *Hibernation - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetHibernationArgType = Hibernation - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetHibernationRetType = Hibernation - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetHibernationAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetHibernationAttributeType) (ret CreateOrUpdateClusterPayloadGetHibernationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetHibernationAttributeType(arg *CreateOrUpdateClusterPayloadGetHibernationAttributeType, val CreateOrUpdateClusterPayloadGetHibernationRetType) { - *arg = &val -} - -/* - types and functions for kubernetes -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetKubernetesAttributeType = *Kubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetKubernetesArgType = Kubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetKubernetesRetType = Kubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetKubernetesAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetKubernetesAttributeType) (ret CreateOrUpdateClusterPayloadGetKubernetesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetKubernetesAttributeType(arg *CreateOrUpdateClusterPayloadGetKubernetesAttributeType, val CreateOrUpdateClusterPayloadGetKubernetesRetType) { - *arg = &val -} - -/* - types and functions for labels -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetLabelsAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetLabelsArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetLabelsRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetLabelsAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetLabelsAttributeType) (ret CreateOrUpdateClusterPayloadGetLabelsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetLabelsAttributeType(arg *CreateOrUpdateClusterPayloadGetLabelsAttributeType, val CreateOrUpdateClusterPayloadGetLabelsRetType) { - *arg = &val -} - -/* - types and functions for maintenance -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetMaintenanceAttributeType = *Maintenance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetMaintenanceArgType = Maintenance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetMaintenanceRetType = Maintenance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetMaintenanceAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetMaintenanceAttributeType) (ret CreateOrUpdateClusterPayloadGetMaintenanceRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetMaintenanceAttributeType(arg *CreateOrUpdateClusterPayloadGetMaintenanceAttributeType, val CreateOrUpdateClusterPayloadGetMaintenanceRetType) { - *arg = &val -} - -/* - types and functions for network -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetNetworkAttributeType = *Network - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetNetworkArgType = Network - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetNetworkRetType = Network - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetNetworkAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetNetworkAttributeType) (ret CreateOrUpdateClusterPayloadGetNetworkRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetNetworkAttributeType(arg *CreateOrUpdateClusterPayloadGetNetworkAttributeType, val CreateOrUpdateClusterPayloadGetNetworkRetType) { - *arg = &val -} - -/* - types and functions for nodepools -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetNodepoolsAttributeType = *[]Nodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetNodepoolsArgType = []Nodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetNodepoolsRetType = []Nodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetNodepoolsAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetNodepoolsAttributeType) (ret CreateOrUpdateClusterPayloadGetNodepoolsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetNodepoolsAttributeType(arg *CreateOrUpdateClusterPayloadGetNodepoolsAttributeType, val CreateOrUpdateClusterPayloadGetNodepoolsRetType) { - *arg = &val -} - -/* - types and functions for status -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetStatusAttributeType = *ClusterStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetStatusArgType = ClusterStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayloadGetStatusRetType = ClusterStatus - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateOrUpdateClusterPayloadGetStatusAttributeTypeOk(arg CreateOrUpdateClusterPayloadGetStatusAttributeType) (ret CreateOrUpdateClusterPayloadGetStatusRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateOrUpdateClusterPayloadGetStatusAttributeType(arg *CreateOrUpdateClusterPayloadGetStatusAttributeType, val CreateOrUpdateClusterPayloadGetStatusRetType) { - *arg = &val -} - -// CreateOrUpdateClusterPayload struct for CreateOrUpdateClusterPayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateOrUpdateClusterPayload struct { - Access CreateOrUpdateClusterPayloadGetAccessAttributeType `json:"access,omitempty"` - Audit CreateOrUpdateClusterPayloadGetAuditAttributeType `json:"audit,omitempty"` - Extensions CreateOrUpdateClusterPayloadGetExtensionsAttributeType `json:"extensions,omitempty"` - Hibernation CreateOrUpdateClusterPayloadGetHibernationAttributeType `json:"hibernation,omitempty"` - // REQUIRED - Kubernetes CreateOrUpdateClusterPayloadGetKubernetesAttributeType `json:"kubernetes" required:"true"` - // Labels are key-value pairs. Keys may contain domain prefix separated by a slash(/) and must begin with an alphanumerical character. Values may be empty and if not empty, they must begin and end with an alphanumerical character. Keys can be between 1-314 characters long, whereas values can be 0-63 characters long. - Labels CreateOrUpdateClusterPayloadGetLabelsAttributeType `json:"labels,omitempty"` - Maintenance CreateOrUpdateClusterPayloadGetMaintenanceAttributeType `json:"maintenance,omitempty"` - Network CreateOrUpdateClusterPayloadGetNetworkAttributeType `json:"network,omitempty"` - // REQUIRED - Nodepools CreateOrUpdateClusterPayloadGetNodepoolsAttributeType `json:"nodepools" required:"true"` - Status CreateOrUpdateClusterPayloadGetStatusAttributeType `json:"status,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CreateOrUpdateClusterPayload CreateOrUpdateClusterPayload - -// NewCreateOrUpdateClusterPayload instantiates a new CreateOrUpdateClusterPayload object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateOrUpdateClusterPayload(kubernetes CreateOrUpdateClusterPayloadGetKubernetesArgType, nodepools CreateOrUpdateClusterPayloadGetNodepoolsArgType) *CreateOrUpdateClusterPayload { - this := CreateOrUpdateClusterPayload{} - setCreateOrUpdateClusterPayloadGetKubernetesAttributeType(&this.Kubernetes, kubernetes) - setCreateOrUpdateClusterPayloadGetNodepoolsAttributeType(&this.Nodepools, nodepools) - return &this -} - -// NewCreateOrUpdateClusterPayloadWithDefaults instantiates a new CreateOrUpdateClusterPayload object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateOrUpdateClusterPayloadWithDefaults() *CreateOrUpdateClusterPayload { - this := CreateOrUpdateClusterPayload{} - return &this -} - -// GetAccess returns the Access field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetAccess() (res CreateOrUpdateClusterPayloadGetAccessRetType) { - res, _ = o.GetAccessOk() - return -} - -// GetAccessOk returns a tuple with the Access field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetAccessOk() (ret CreateOrUpdateClusterPayloadGetAccessRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetAccessAttributeTypeOk(o.Access) -} - -// HasAccess returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasAccess() bool { - _, ok := o.GetAccessOk() - return ok -} - -// SetAccess gets a reference to the given Access and assigns it to the Access field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetAccess(v CreateOrUpdateClusterPayloadGetAccessRetType) { - setCreateOrUpdateClusterPayloadGetAccessAttributeType(&o.Access, v) -} - -// GetAudit returns the Audit field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetAudit() (res CreateOrUpdateClusterPayloadGetAuditRetType) { - res, _ = o.GetAuditOk() - return -} - -// GetAuditOk returns a tuple with the Audit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetAuditOk() (ret CreateOrUpdateClusterPayloadGetAuditRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetAuditAttributeTypeOk(o.Audit) -} - -// HasAudit returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasAudit() bool { - _, ok := o.GetAuditOk() - return ok -} - -// SetAudit gets a reference to the given Audit and assigns it to the Audit field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetAudit(v CreateOrUpdateClusterPayloadGetAuditRetType) { - setCreateOrUpdateClusterPayloadGetAuditAttributeType(&o.Audit, v) -} - -// GetExtensions returns the Extensions field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetExtensions() (res CreateOrUpdateClusterPayloadGetExtensionsRetType) { - res, _ = o.GetExtensionsOk() - return -} - -// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetExtensionsOk() (ret CreateOrUpdateClusterPayloadGetExtensionsRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetExtensionsAttributeTypeOk(o.Extensions) -} - -// HasExtensions returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasExtensions() bool { - _, ok := o.GetExtensionsOk() - return ok -} - -// SetExtensions gets a reference to the given Extension and assigns it to the Extensions field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetExtensions(v CreateOrUpdateClusterPayloadGetExtensionsRetType) { - setCreateOrUpdateClusterPayloadGetExtensionsAttributeType(&o.Extensions, v) -} - -// GetHibernation returns the Hibernation field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetHibernation() (res CreateOrUpdateClusterPayloadGetHibernationRetType) { - res, _ = o.GetHibernationOk() - return -} - -// GetHibernationOk returns a tuple with the Hibernation field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetHibernationOk() (ret CreateOrUpdateClusterPayloadGetHibernationRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetHibernationAttributeTypeOk(o.Hibernation) -} - -// HasHibernation returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasHibernation() bool { - _, ok := o.GetHibernationOk() - return ok -} - -// SetHibernation gets a reference to the given Hibernation and assigns it to the Hibernation field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetHibernation(v CreateOrUpdateClusterPayloadGetHibernationRetType) { - setCreateOrUpdateClusterPayloadGetHibernationAttributeType(&o.Hibernation, v) -} - -// GetKubernetes returns the Kubernetes field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetKubernetes() (ret CreateOrUpdateClusterPayloadGetKubernetesRetType) { - ret, _ = o.GetKubernetesOk() - return ret -} - -// GetKubernetesOk returns a tuple with the Kubernetes field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetKubernetesOk() (ret CreateOrUpdateClusterPayloadGetKubernetesRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetKubernetesAttributeTypeOk(o.Kubernetes) -} - -// SetKubernetes sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetKubernetes(v CreateOrUpdateClusterPayloadGetKubernetesRetType) { - setCreateOrUpdateClusterPayloadGetKubernetesAttributeType(&o.Kubernetes, v) -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetLabels() (res CreateOrUpdateClusterPayloadGetLabelsRetType) { - res, _ = o.GetLabelsOk() - return -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetLabelsOk() (ret CreateOrUpdateClusterPayloadGetLabelsRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetLabelsAttributeTypeOk(o.Labels) -} - -// HasLabels returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasLabels() bool { - _, ok := o.GetLabelsOk() - return ok -} - -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetLabels(v CreateOrUpdateClusterPayloadGetLabelsRetType) { - setCreateOrUpdateClusterPayloadGetLabelsAttributeType(&o.Labels, v) -} - -// GetMaintenance returns the Maintenance field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetMaintenance() (res CreateOrUpdateClusterPayloadGetMaintenanceRetType) { - res, _ = o.GetMaintenanceOk() - return -} - -// GetMaintenanceOk returns a tuple with the Maintenance field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetMaintenanceOk() (ret CreateOrUpdateClusterPayloadGetMaintenanceRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetMaintenanceAttributeTypeOk(o.Maintenance) -} - -// HasMaintenance returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasMaintenance() bool { - _, ok := o.GetMaintenanceOk() - return ok -} - -// SetMaintenance gets a reference to the given Maintenance and assigns it to the Maintenance field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetMaintenance(v CreateOrUpdateClusterPayloadGetMaintenanceRetType) { - setCreateOrUpdateClusterPayloadGetMaintenanceAttributeType(&o.Maintenance, v) -} - -// GetNetwork returns the Network field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetNetwork() (res CreateOrUpdateClusterPayloadGetNetworkRetType) { - res, _ = o.GetNetworkOk() - return -} - -// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetNetworkOk() (ret CreateOrUpdateClusterPayloadGetNetworkRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetNetworkAttributeTypeOk(o.Network) -} - -// HasNetwork returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasNetwork() bool { - _, ok := o.GetNetworkOk() - return ok -} - -// SetNetwork gets a reference to the given Network and assigns it to the Network field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetNetwork(v CreateOrUpdateClusterPayloadGetNetworkRetType) { - setCreateOrUpdateClusterPayloadGetNetworkAttributeType(&o.Network, v) -} - -// GetNodepools returns the Nodepools field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetNodepools() (ret CreateOrUpdateClusterPayloadGetNodepoolsRetType) { - ret, _ = o.GetNodepoolsOk() - return ret -} - -// GetNodepoolsOk returns a tuple with the Nodepools field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetNodepoolsOk() (ret CreateOrUpdateClusterPayloadGetNodepoolsRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetNodepoolsAttributeTypeOk(o.Nodepools) -} - -// SetNodepools sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetNodepools(v CreateOrUpdateClusterPayloadGetNodepoolsRetType) { - setCreateOrUpdateClusterPayloadGetNodepoolsAttributeType(&o.Nodepools, v) -} - -// GetStatus returns the Status field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetStatus() (res CreateOrUpdateClusterPayloadGetStatusRetType) { - res, _ = o.GetStatusOk() - return -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) GetStatusOk() (ret CreateOrUpdateClusterPayloadGetStatusRetType, ok bool) { - return getCreateOrUpdateClusterPayloadGetStatusAttributeTypeOk(o.Status) -} - -// HasStatus returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) HasStatus() bool { - _, ok := o.GetStatusOk() - return ok -} - -// SetStatus gets a reference to the given ClusterStatus and assigns it to the Status field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateOrUpdateClusterPayload) SetStatus(v CreateOrUpdateClusterPayloadGetStatusRetType) { - setCreateOrUpdateClusterPayloadGetStatusAttributeType(&o.Status, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateOrUpdateClusterPayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateOrUpdateClusterPayloadGetAccessAttributeTypeOk(o.Access); ok { - toSerialize["Access"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetAuditAttributeTypeOk(o.Audit); ok { - toSerialize["Audit"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetExtensionsAttributeTypeOk(o.Extensions); ok { - toSerialize["Extensions"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetHibernationAttributeTypeOk(o.Hibernation); ok { - toSerialize["Hibernation"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetKubernetesAttributeTypeOk(o.Kubernetes); ok { - toSerialize["Kubernetes"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetLabelsAttributeTypeOk(o.Labels); ok { - toSerialize["Labels"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetMaintenanceAttributeTypeOk(o.Maintenance); ok { - toSerialize["Maintenance"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetNetworkAttributeTypeOk(o.Network); ok { - toSerialize["Network"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetNodepoolsAttributeTypeOk(o.Nodepools); ok { - toSerialize["Nodepools"] = val - } - if val, ok := getCreateOrUpdateClusterPayloadGetStatusAttributeTypeOk(o.Status); ok { - toSerialize["Status"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateOrUpdateClusterPayload struct { - value *CreateOrUpdateClusterPayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateOrUpdateClusterPayload) Get() *CreateOrUpdateClusterPayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateOrUpdateClusterPayload) Set(val *CreateOrUpdateClusterPayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateOrUpdateClusterPayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateOrUpdateClusterPayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateOrUpdateClusterPayload(val *CreateOrUpdateClusterPayload) *NullableCreateOrUpdateClusterPayload { - return &NullableCreateOrUpdateClusterPayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateOrUpdateClusterPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateOrUpdateClusterPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_create_or_update_cluster_payload_test.go b/services/ske/model_create_or_update_cluster_payload_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_create_or_update_cluster_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_credentials_rotation_state.go b/services/ske/model_credentials_rotation_state.go deleted file mode 100644 index 5abeeee83d..0000000000 --- a/services/ske/model_credentials_rotation_state.go +++ /dev/null @@ -1,401 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "fmt" - "time" -) - -// checks if the CredentialsRotationState type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CredentialsRotationState{} - -/* - types and functions for lastCompletionTime -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetLastCompletionTimeAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetLastCompletionTimeArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetLastCompletionTimeRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCredentialsRotationStateGetLastCompletionTimeAttributeTypeOk(arg CredentialsRotationStateGetLastCompletionTimeAttributeType) (ret CredentialsRotationStateGetLastCompletionTimeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCredentialsRotationStateGetLastCompletionTimeAttributeType(arg *CredentialsRotationStateGetLastCompletionTimeAttributeType, val CredentialsRotationStateGetLastCompletionTimeRetType) { - *arg = &val -} - -/* - types and functions for lastInitiationTime -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetLastInitiationTimeAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetLastInitiationTimeArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetLastInitiationTimeRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCredentialsRotationStateGetLastInitiationTimeAttributeTypeOk(arg CredentialsRotationStateGetLastInitiationTimeAttributeType) (ret CredentialsRotationStateGetLastInitiationTimeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCredentialsRotationStateGetLastInitiationTimeAttributeType(arg *CredentialsRotationStateGetLastInitiationTimeAttributeType, val CredentialsRotationStateGetLastInitiationTimeRetType) { - *arg = &val -} - -/* - types and functions for phase -*/ - -// isEnum - -// CredentialsRotationStatePhase Phase of the credentials rotation. `NEVER` indicates that no credentials rotation has been performed using the new credentials rotation endpoints yet. -// value type for enums -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStatePhase string - -// List of Phase -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CREDENTIALSROTATIONSTATEPHASE_NEVER CredentialsRotationStatePhase = "NEVER" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CREDENTIALSROTATIONSTATEPHASE_PREPARING CredentialsRotationStatePhase = "PREPARING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CREDENTIALSROTATIONSTATEPHASE_PREPARED CredentialsRotationStatePhase = "PREPARED" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CREDENTIALSROTATIONSTATEPHASE_COMPLETING CredentialsRotationStatePhase = "COMPLETING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CREDENTIALSROTATIONSTATEPHASE_COMPLETED CredentialsRotationStatePhase = "COMPLETED" -) - -// All allowed values of CredentialsRotationState enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedCredentialsRotationStatePhaseEnumValues = []CredentialsRotationStatePhase{ - "NEVER", - "PREPARING", - "PREPARED", - "COMPLETING", - "COMPLETED", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *CredentialsRotationStatePhase) UnmarshalJSON(src []byte) error { - // use a type alias to prevent infinite recursion during unmarshal, - // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers - type TmpJson CredentialsRotationStatePhase - var value TmpJson - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue TmpJson - if value == zeroValue { - return nil - } - enumTypeValue := CredentialsRotationStatePhase(value) - for _, existing := range AllowedCredentialsRotationStatePhaseEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid CredentialsRotationState", value) -} - -// NewCredentialsRotationStatePhaseFromValue returns a pointer to a valid CredentialsRotationStatePhase -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCredentialsRotationStatePhaseFromValue(v CredentialsRotationStatePhase) (*CredentialsRotationStatePhase, error) { - ev := CredentialsRotationStatePhase(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for CredentialsRotationStatePhase: valid values are %v", v, AllowedCredentialsRotationStatePhaseEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v CredentialsRotationStatePhase) IsValid() bool { - for _, existing := range AllowedCredentialsRotationStatePhaseEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PhasePhase value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v CredentialsRotationStatePhase) Ptr() *CredentialsRotationStatePhase { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCredentialsRotationStatePhase struct { - value *CredentialsRotationStatePhase - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCredentialsRotationStatePhase) Get() *CredentialsRotationStatePhase { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCredentialsRotationStatePhase) Set(val *CredentialsRotationStatePhase) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCredentialsRotationStatePhase) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCredentialsRotationStatePhase) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCredentialsRotationStatePhase(val *CredentialsRotationStatePhase) *NullableCredentialsRotationStatePhase { - return &NullableCredentialsRotationStatePhase{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCredentialsRotationStatePhase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCredentialsRotationStatePhase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetPhaseAttributeType = *CredentialsRotationStatePhase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetPhaseArgType = CredentialsRotationStatePhase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationStateGetPhaseRetType = CredentialsRotationStatePhase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCredentialsRotationStateGetPhaseAttributeTypeOk(arg CredentialsRotationStateGetPhaseAttributeType) (ret CredentialsRotationStateGetPhaseRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCredentialsRotationStateGetPhaseAttributeType(arg *CredentialsRotationStateGetPhaseAttributeType, val CredentialsRotationStateGetPhaseRetType) { - *arg = &val -} - -// CredentialsRotationState struct for CredentialsRotationState -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CredentialsRotationState struct { - // Format: `2024-02-15T11:06:29Z` - LastCompletionTime CredentialsRotationStateGetLastCompletionTimeAttributeType `json:"lastCompletionTime,omitempty"` - // Format: `2024-02-15T11:06:29Z` - LastInitiationTime CredentialsRotationStateGetLastInitiationTimeAttributeType `json:"lastInitiationTime,omitempty"` - // Phase of the credentials rotation. `NEVER` indicates that no credentials rotation has been performed using the new credentials rotation endpoints yet. - Phase CredentialsRotationStateGetPhaseAttributeType `json:"phase,omitempty"` -} - -// NewCredentialsRotationState instantiates a new CredentialsRotationState object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCredentialsRotationState() *CredentialsRotationState { - this := CredentialsRotationState{} - return &this -} - -// NewCredentialsRotationStateWithDefaults instantiates a new CredentialsRotationState object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCredentialsRotationStateWithDefaults() *CredentialsRotationState { - this := CredentialsRotationState{} - return &this -} - -// GetLastCompletionTime returns the LastCompletionTime field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) GetLastCompletionTime() (res CredentialsRotationStateGetLastCompletionTimeRetType) { - res, _ = o.GetLastCompletionTimeOk() - return -} - -// GetLastCompletionTimeOk returns a tuple with the LastCompletionTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) GetLastCompletionTimeOk() (ret CredentialsRotationStateGetLastCompletionTimeRetType, ok bool) { - return getCredentialsRotationStateGetLastCompletionTimeAttributeTypeOk(o.LastCompletionTime) -} - -// HasLastCompletionTime returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) HasLastCompletionTime() bool { - _, ok := o.GetLastCompletionTimeOk() - return ok -} - -// SetLastCompletionTime gets a reference to the given time.Time and assigns it to the LastCompletionTime field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) SetLastCompletionTime(v CredentialsRotationStateGetLastCompletionTimeRetType) { - setCredentialsRotationStateGetLastCompletionTimeAttributeType(&o.LastCompletionTime, v) -} - -// GetLastInitiationTime returns the LastInitiationTime field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) GetLastInitiationTime() (res CredentialsRotationStateGetLastInitiationTimeRetType) { - res, _ = o.GetLastInitiationTimeOk() - return -} - -// GetLastInitiationTimeOk returns a tuple with the LastInitiationTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) GetLastInitiationTimeOk() (ret CredentialsRotationStateGetLastInitiationTimeRetType, ok bool) { - return getCredentialsRotationStateGetLastInitiationTimeAttributeTypeOk(o.LastInitiationTime) -} - -// HasLastInitiationTime returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) HasLastInitiationTime() bool { - _, ok := o.GetLastInitiationTimeOk() - return ok -} - -// SetLastInitiationTime gets a reference to the given time.Time and assigns it to the LastInitiationTime field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) SetLastInitiationTime(v CredentialsRotationStateGetLastInitiationTimeRetType) { - setCredentialsRotationStateGetLastInitiationTimeAttributeType(&o.LastInitiationTime, v) -} - -// GetPhase returns the Phase field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) GetPhase() (res CredentialsRotationStateGetPhaseRetType) { - res, _ = o.GetPhaseOk() - return -} - -// GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) GetPhaseOk() (ret CredentialsRotationStateGetPhaseRetType, ok bool) { - return getCredentialsRotationStateGetPhaseAttributeTypeOk(o.Phase) -} - -// HasPhase returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) HasPhase() bool { - _, ok := o.GetPhaseOk() - return ok -} - -// SetPhase gets a reference to the given string and assigns it to the Phase field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CredentialsRotationState) SetPhase(v CredentialsRotationStateGetPhaseRetType) { - setCredentialsRotationStateGetPhaseAttributeType(&o.Phase, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CredentialsRotationState) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCredentialsRotationStateGetLastCompletionTimeAttributeTypeOk(o.LastCompletionTime); ok { - toSerialize["LastCompletionTime"] = val - } - if val, ok := getCredentialsRotationStateGetLastInitiationTimeAttributeTypeOk(o.LastInitiationTime); ok { - toSerialize["LastInitiationTime"] = val - } - if val, ok := getCredentialsRotationStateGetPhaseAttributeTypeOk(o.Phase); ok { - toSerialize["Phase"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCredentialsRotationState struct { - value *CredentialsRotationState - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCredentialsRotationState) Get() *CredentialsRotationState { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCredentialsRotationState) Set(val *CredentialsRotationState) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCredentialsRotationState) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCredentialsRotationState) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCredentialsRotationState(val *CredentialsRotationState) *NullableCredentialsRotationState { - return &NullableCredentialsRotationState{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCredentialsRotationState) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCredentialsRotationState) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_credentials_rotation_state_test.go b/services/ske/model_credentials_rotation_state_test.go deleted file mode 100644 index 0bb53a9333..0000000000 --- a/services/ske/model_credentials_rotation_state_test.go +++ /dev/null @@ -1,79 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske - -import ( - "testing" -) - -// isEnum - -func TestCredentialsRotationStatePhase_UnmarshalJSON(t *testing.T) { - type args struct { - src []byte - } - tests := []struct { - name string - args args - wantErr bool - }{ - { - name: `success - possible enum value no. 1`, - args: args{ - src: []byte(`"NEVER"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 2`, - args: args{ - src: []byte(`"PREPARING"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 3`, - args: args{ - src: []byte(`"PREPARED"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 4`, - args: args{ - src: []byte(`"COMPLETING"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 5`, - args: args{ - src: []byte(`"COMPLETED"`), - }, - wantErr: false, - }, - { - name: "fail", - args: args{ - src: []byte("\"FOOBAR\""), - }, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - v := CredentialsRotationStatePhase("") - if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { - t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) - } - }) - } -} diff --git a/services/ske/model_cri.go b/services/ske/model_cri.go deleted file mode 100644 index e6dc83e29e..0000000000 --- a/services/ske/model_cri.go +++ /dev/null @@ -1,269 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "fmt" -) - -// checks if the CRI type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CRI{} - -/* - types and functions for name -*/ - -// isEnum - -// CRIName the model 'CRI' -// value type for enums -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CRIName string - -// List of Name -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CRINAME_CONTAINERD CRIName = "containerd" -) - -// All allowed values of CRI enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedCRINameEnumValues = []CRIName{ - "containerd", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *CRIName) UnmarshalJSON(src []byte) error { - // use a type alias to prevent infinite recursion during unmarshal, - // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers - type TmpJson CRIName - var value TmpJson - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue TmpJson - if value == zeroValue { - return nil - } - enumTypeValue := CRIName(value) - for _, existing := range AllowedCRINameEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid CRI", value) -} - -// NewCRINameFromValue returns a pointer to a valid CRIName -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCRINameFromValue(v CRIName) (*CRIName, error) { - ev := CRIName(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for CRIName: valid values are %v", v, AllowedCRINameEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v CRIName) IsValid() bool { - for _, existing := range AllowedCRINameEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to NameName value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v CRIName) Ptr() *CRIName { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCRIName struct { - value *CRIName - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCRIName) Get() *CRIName { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCRIName) Set(val *CRIName) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCRIName) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCRIName) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCRIName(val *CRIName) *NullableCRIName { - return &NullableCRIName{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCRIName) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCRIName) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CRIGetNameAttributeType = *CRIName - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CRIGetNameArgType = CRIName - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CRIGetNameRetType = CRIName - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCRIGetNameAttributeTypeOk(arg CRIGetNameAttributeType) (ret CRIGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCRIGetNameAttributeType(arg *CRIGetNameAttributeType, val CRIGetNameRetType) { - *arg = &val -} - -// CRI struct for CRI -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CRI struct { - Name CRIGetNameAttributeType `json:"name,omitempty"` -} - -// NewCRI instantiates a new CRI object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCRI() *CRI { - this := CRI{} - return &this -} - -// NewCRIWithDefaults instantiates a new CRI object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCRIWithDefaults() *CRI { - this := CRI{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CRI) GetName() (res CRIGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CRI) GetNameOk() (ret CRIGetNameRetType, ok bool) { - return getCRIGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CRI) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CRI) SetName(v CRIGetNameRetType) { - setCRIGetNameAttributeType(&o.Name, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CRI) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCRIGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCRI struct { - value *CRI - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCRI) Get() *CRI { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCRI) Set(val *CRI) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCRI) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCRI) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCRI(val *CRI) *NullableCRI { - return &NullableCRI{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCRI) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCRI) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_cri_test.go b/services/ske/model_cri_test.go deleted file mode 100644 index b242d479fb..0000000000 --- a/services/ske/model_cri_test.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske - -import ( - "testing" -) - -// isEnum - -func TestCRIName_UnmarshalJSON(t *testing.T) { - type args struct { - src []byte - } - tests := []struct { - name string - args args - wantErr bool - }{ - { - name: `success - possible enum value no. 1`, - args: args{ - src: []byte(`"containerd"`), - }, - wantErr: false, - }, - { - name: "fail", - args: args{ - src: []byte("\"FOOBAR\""), - }, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - v := CRIName("") - if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { - t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) - } - }) - } -} diff --git a/services/ske/model_dns.go b/services/ske/model_dns.go deleted file mode 100644 index 45fed29fc7..0000000000 --- a/services/ske/model_dns.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the DNS type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DNS{} - -/* - types and functions for enabled -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSgetEnabledAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSgetEnabledArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSgetEnabledRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getDNSgetEnabledAttributeTypeOk(arg DNSgetEnabledAttributeType) (ret DNSgetEnabledRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setDNSgetEnabledAttributeType(arg *DNSgetEnabledAttributeType, val DNSgetEnabledRetType) { - *arg = &val -} - -/* - types and functions for gatewayApi -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSgetGatewayApiAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSgetGatewayApiArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSgetGatewayApiRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getDNSgetGatewayApiAttributeTypeOk(arg DNSgetGatewayApiAttributeType) (ret DNSgetGatewayApiRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setDNSgetGatewayApiAttributeType(arg *DNSgetGatewayApiAttributeType, val DNSgetGatewayApiRetType) { - *arg = &val -} - -/* - types and functions for zones -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSGetZonesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSGetZonesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNSGetZonesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getDNSGetZonesAttributeTypeOk(arg DNSGetZonesAttributeType) (ret DNSGetZonesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setDNSGetZonesAttributeType(arg *DNSGetZonesAttributeType, val DNSGetZonesRetType) { - *arg = &val -} - -// DNS struct for DNS -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DNS struct { - // Enables the dns extension. - // REQUIRED - Enabled DNSgetEnabledAttributeType `json:"enabled" required:"true"` - // Enables Gateway API support for ExternalDNS. The CRDs must be installed by the user. Once installed, ExternalDNS will be configured at the next cluster reconcile. - GatewayApi DNSgetGatewayApiAttributeType `json:"gatewayApi,omitempty"` - // Array of domain filters for ExternalDNS, e.g., *.runs.onstackit.cloud. - Zones DNSGetZonesAttributeType `json:"zones,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _DNS DNS - -// NewDNS instantiates a new DNS object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewDNS(enabled DNSgetEnabledArgType) *DNS { - this := DNS{} - setDNSgetEnabledAttributeType(&this.Enabled, enabled) - return &this -} - -// NewDNSWithDefaults instantiates a new DNS object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewDNSWithDefaults() *DNS { - this := DNS{} - return &this -} - -// GetEnabled returns the Enabled field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) GetEnabled() (ret DNSgetEnabledRetType) { - ret, _ = o.GetEnabledOk() - return ret -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) GetEnabledOk() (ret DNSgetEnabledRetType, ok bool) { - return getDNSgetEnabledAttributeTypeOk(o.Enabled) -} - -// SetEnabled sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) SetEnabled(v DNSgetEnabledRetType) { - setDNSgetEnabledAttributeType(&o.Enabled, v) -} - -// GetGatewayApi returns the GatewayApi field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) GetGatewayApi() (res DNSgetGatewayApiRetType) { - res, _ = o.GetGatewayApiOk() - return -} - -// GetGatewayApiOk returns a tuple with the GatewayApi field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) GetGatewayApiOk() (ret DNSgetGatewayApiRetType, ok bool) { - return getDNSgetGatewayApiAttributeTypeOk(o.GatewayApi) -} - -// HasGatewayApi returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) HasGatewayApi() bool { - _, ok := o.GetGatewayApiOk() - return ok -} - -// SetGatewayApi gets a reference to the given bool and assigns it to the GatewayApi field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) SetGatewayApi(v DNSgetGatewayApiRetType) { - setDNSgetGatewayApiAttributeType(&o.GatewayApi, v) -} - -// GetZones returns the Zones field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) GetZones() (res DNSGetZonesRetType) { - res, _ = o.GetZonesOk() - return -} - -// GetZonesOk returns a tuple with the Zones field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) GetZonesOk() (ret DNSGetZonesRetType, ok bool) { - return getDNSGetZonesAttributeTypeOk(o.Zones) -} - -// HasZones returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) HasZones() bool { - _, ok := o.GetZonesOk() - return ok -} - -// SetZones gets a reference to the given []string and assigns it to the Zones field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DNS) SetZones(v DNSGetZonesRetType) { - setDNSGetZonesAttributeType(&o.Zones, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o DNS) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getDNSgetEnabledAttributeTypeOk(o.Enabled); ok { - toSerialize["Enabled"] = val - } - if val, ok := getDNSgetGatewayApiAttributeTypeOk(o.GatewayApi); ok { - toSerialize["GatewayApi"] = val - } - if val, ok := getDNSGetZonesAttributeTypeOk(o.Zones); ok { - toSerialize["Zones"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableDNS struct { - value *DNS - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDNS) Get() *DNS { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDNS) Set(val *DNS) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDNS) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDNS) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableDNS(val *DNS) *NullableDNS { - return &NullableDNS{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDNS) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDNS) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_dns_test.go b/services/ske/model_dns_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_dns_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_expiration_status.go b/services/ske/model_expiration_status.go deleted file mode 100644 index 692f51bf4c..0000000000 --- a/services/ske/model_expiration_status.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the ExpirationStatus type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExpirationStatus{} - -/* - types and functions for kubernetes -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusGetKubernetesAttributeType = *ExpirationStatusKubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusGetKubernetesArgType = ExpirationStatusKubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusGetKubernetesRetType = ExpirationStatusKubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusGetKubernetesAttributeTypeOk(arg ExpirationStatusGetKubernetesAttributeType) (ret ExpirationStatusGetKubernetesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusGetKubernetesAttributeType(arg *ExpirationStatusGetKubernetesAttributeType, val ExpirationStatusGetKubernetesRetType) { - *arg = &val -} - -/* - types and functions for nodepools -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusGetNodepoolsAttributeType = *[]ExpirationStatusNodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusGetNodepoolsArgType = []ExpirationStatusNodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusGetNodepoolsRetType = []ExpirationStatusNodepool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusGetNodepoolsAttributeTypeOk(arg ExpirationStatusGetNodepoolsAttributeType) (ret ExpirationStatusGetNodepoolsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusGetNodepoolsAttributeType(arg *ExpirationStatusGetNodepoolsAttributeType, val ExpirationStatusGetNodepoolsRetType) { - *arg = &val -} - -// ExpirationStatus struct for ExpirationStatus -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatus struct { - Kubernetes ExpirationStatusGetKubernetesAttributeType `json:"kubernetes,omitempty"` - Nodepools ExpirationStatusGetNodepoolsAttributeType `json:"nodepools,omitempty"` -} - -// NewExpirationStatus instantiates a new ExpirationStatus object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExpirationStatus() *ExpirationStatus { - this := ExpirationStatus{} - return &this -} - -// NewExpirationStatusWithDefaults instantiates a new ExpirationStatus object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExpirationStatusWithDefaults() *ExpirationStatus { - this := ExpirationStatus{} - return &this -} - -// GetKubernetes returns the Kubernetes field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) GetKubernetes() (res ExpirationStatusGetKubernetesRetType) { - res, _ = o.GetKubernetesOk() - return -} - -// GetKubernetesOk returns a tuple with the Kubernetes field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) GetKubernetesOk() (ret ExpirationStatusGetKubernetesRetType, ok bool) { - return getExpirationStatusGetKubernetesAttributeTypeOk(o.Kubernetes) -} - -// HasKubernetes returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) HasKubernetes() bool { - _, ok := o.GetKubernetesOk() - return ok -} - -// SetKubernetes gets a reference to the given ExpirationStatusKubernetes and assigns it to the Kubernetes field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) SetKubernetes(v ExpirationStatusGetKubernetesRetType) { - setExpirationStatusGetKubernetesAttributeType(&o.Kubernetes, v) -} - -// GetNodepools returns the Nodepools field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) GetNodepools() (res ExpirationStatusGetNodepoolsRetType) { - res, _ = o.GetNodepoolsOk() - return -} - -// GetNodepoolsOk returns a tuple with the Nodepools field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) GetNodepoolsOk() (ret ExpirationStatusGetNodepoolsRetType, ok bool) { - return getExpirationStatusGetNodepoolsAttributeTypeOk(o.Nodepools) -} - -// HasNodepools returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) HasNodepools() bool { - _, ok := o.GetNodepoolsOk() - return ok -} - -// SetNodepools gets a reference to the given []ExpirationStatusNodepool and assigns it to the Nodepools field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatus) SetNodepools(v ExpirationStatusGetNodepoolsRetType) { - setExpirationStatusGetNodepoolsAttributeType(&o.Nodepools, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ExpirationStatus) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getExpirationStatusGetKubernetesAttributeTypeOk(o.Kubernetes); ok { - toSerialize["Kubernetes"] = val - } - if val, ok := getExpirationStatusGetNodepoolsAttributeTypeOk(o.Nodepools); ok { - toSerialize["Nodepools"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableExpirationStatus struct { - value *ExpirationStatus - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatus) Get() *ExpirationStatus { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatus) Set(val *ExpirationStatus) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatus) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatus) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableExpirationStatus(val *ExpirationStatus) *NullableExpirationStatus { - return &NullableExpirationStatus{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_expiration_status_kubernetes.go b/services/ske/model_expiration_status_kubernetes.go deleted file mode 100644 index 3f5f9c215c..0000000000 --- a/services/ske/model_expiration_status_kubernetes.go +++ /dev/null @@ -1,210 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "time" -) - -// checks if the ExpirationStatusKubernetes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExpirationStatusKubernetes{} - -/* - types and functions for expirationDate -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusKubernetesGetExpirationDateAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusKubernetesGetExpirationDateArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusKubernetesGetExpirationDateRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusKubernetesGetExpirationDateAttributeTypeOk(arg ExpirationStatusKubernetesGetExpirationDateAttributeType) (ret ExpirationStatusKubernetesGetExpirationDateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusKubernetesGetExpirationDateAttributeType(arg *ExpirationStatusKubernetesGetExpirationDateAttributeType, val ExpirationStatusKubernetesGetExpirationDateRetType) { - *arg = &val -} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusKubernetesGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusKubernetesGetVersionAttributeTypeOk(arg ExpirationStatusKubernetesGetVersionAttributeType) (ret ExpirationStatusKubernetesGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusKubernetesGetVersionAttributeType(arg *ExpirationStatusKubernetesGetVersionAttributeType, val ExpirationStatusKubernetesGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusKubernetesGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusKubernetesGetVersionRetType = string - -// ExpirationStatusKubernetes struct for ExpirationStatusKubernetes -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusKubernetes struct { - ExpirationDate ExpirationStatusKubernetesGetExpirationDateAttributeType `json:"expirationDate,omitempty"` - Version ExpirationStatusKubernetesGetVersionAttributeType `json:"version,omitempty"` -} - -// NewExpirationStatusKubernetes instantiates a new ExpirationStatusKubernetes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExpirationStatusKubernetes() *ExpirationStatusKubernetes { - this := ExpirationStatusKubernetes{} - return &this -} - -// NewExpirationStatusKubernetesWithDefaults instantiates a new ExpirationStatusKubernetes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExpirationStatusKubernetesWithDefaults() *ExpirationStatusKubernetes { - this := ExpirationStatusKubernetes{} - return &this -} - -// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) GetExpirationDate() (res ExpirationStatusKubernetesGetExpirationDateRetType) { - res, _ = o.GetExpirationDateOk() - return -} - -// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) GetExpirationDateOk() (ret ExpirationStatusKubernetesGetExpirationDateRetType, ok bool) { - return getExpirationStatusKubernetesGetExpirationDateAttributeTypeOk(o.ExpirationDate) -} - -// HasExpirationDate returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) HasExpirationDate() bool { - _, ok := o.GetExpirationDateOk() - return ok -} - -// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) SetExpirationDate(v ExpirationStatusKubernetesGetExpirationDateRetType) { - setExpirationStatusKubernetesGetExpirationDateAttributeType(&o.ExpirationDate, v) -} - -// GetVersion returns the Version field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) GetVersion() (res ExpirationStatusKubernetesGetVersionRetType) { - res, _ = o.GetVersionOk() - return -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) GetVersionOk() (ret ExpirationStatusKubernetesGetVersionRetType, ok bool) { - return getExpirationStatusKubernetesGetVersionAttributeTypeOk(o.Version) -} - -// HasVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) HasVersion() bool { - _, ok := o.GetVersionOk() - return ok -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusKubernetes) SetVersion(v ExpirationStatusKubernetesGetVersionRetType) { - setExpirationStatusKubernetesGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ExpirationStatusKubernetes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getExpirationStatusKubernetesGetExpirationDateAttributeTypeOk(o.ExpirationDate); ok { - toSerialize["ExpirationDate"] = val - } - if val, ok := getExpirationStatusKubernetesGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableExpirationStatusKubernetes struct { - value *ExpirationStatusKubernetes - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatusKubernetes) Get() *ExpirationStatusKubernetes { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatusKubernetes) Set(val *ExpirationStatusKubernetes) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatusKubernetes) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatusKubernetes) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableExpirationStatusKubernetes(val *ExpirationStatusKubernetes) *NullableExpirationStatusKubernetes { - return &NullableExpirationStatusKubernetes{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatusKubernetes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatusKubernetes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_expiration_status_kubernetes_test.go b/services/ske/model_expiration_status_kubernetes_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_expiration_status_kubernetes_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_expiration_status_nodepool.go b/services/ske/model_expiration_status_nodepool.go deleted file mode 100644 index c73ce14ad5..0000000000 --- a/services/ske/model_expiration_status_nodepool.go +++ /dev/null @@ -1,442 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "time" -) - -// checks if the ExpirationStatusNodepool type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExpirationStatusNodepool{} - -/* - types and functions for kubernetesExpirationDate -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetKubernetesExpirationDateAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetKubernetesExpirationDateArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetKubernetesExpirationDateRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusNodepoolGetKubernetesExpirationDateAttributeTypeOk(arg ExpirationStatusNodepoolGetKubernetesExpirationDateAttributeType) (ret ExpirationStatusNodepoolGetKubernetesExpirationDateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusNodepoolGetKubernetesExpirationDateAttributeType(arg *ExpirationStatusNodepoolGetKubernetesExpirationDateAttributeType, val ExpirationStatusNodepoolGetKubernetesExpirationDateRetType) { - *arg = &val -} - -/* - types and functions for kubernetesVersion -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetKubernetesVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusNodepoolGetKubernetesVersionAttributeTypeOk(arg ExpirationStatusNodepoolGetKubernetesVersionAttributeType) (ret ExpirationStatusNodepoolGetKubernetesVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusNodepoolGetKubernetesVersionAttributeType(arg *ExpirationStatusNodepoolGetKubernetesVersionAttributeType, val ExpirationStatusNodepoolGetKubernetesVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetKubernetesVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetKubernetesVersionRetType = string - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusNodepoolGetNameAttributeTypeOk(arg ExpirationStatusNodepoolGetNameAttributeType) (ret ExpirationStatusNodepoolGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusNodepoolGetNameAttributeType(arg *ExpirationStatusNodepoolGetNameAttributeType, val ExpirationStatusNodepoolGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetNameRetType = string - -/* - types and functions for osExpirationDate -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsExpirationDateAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsExpirationDateArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsExpirationDateRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusNodepoolGetOsExpirationDateAttributeTypeOk(arg ExpirationStatusNodepoolGetOsExpirationDateAttributeType) (ret ExpirationStatusNodepoolGetOsExpirationDateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusNodepoolGetOsExpirationDateAttributeType(arg *ExpirationStatusNodepoolGetOsExpirationDateAttributeType, val ExpirationStatusNodepoolGetOsExpirationDateRetType) { - *arg = &val -} - -/* - types and functions for osName -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusNodepoolGetOsNameAttributeTypeOk(arg ExpirationStatusNodepoolGetOsNameAttributeType) (ret ExpirationStatusNodepoolGetOsNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusNodepoolGetOsNameAttributeType(arg *ExpirationStatusNodepoolGetOsNameAttributeType, val ExpirationStatusNodepoolGetOsNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsNameRetType = string - -/* - types and functions for osVersion -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExpirationStatusNodepoolGetOsVersionAttributeTypeOk(arg ExpirationStatusNodepoolGetOsVersionAttributeType) (ret ExpirationStatusNodepoolGetOsVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExpirationStatusNodepoolGetOsVersionAttributeType(arg *ExpirationStatusNodepoolGetOsVersionAttributeType, val ExpirationStatusNodepoolGetOsVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepoolGetOsVersionRetType = string - -// ExpirationStatusNodepool struct for ExpirationStatusNodepool -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExpirationStatusNodepool struct { - KubernetesExpirationDate ExpirationStatusNodepoolGetKubernetesExpirationDateAttributeType `json:"kubernetesExpirationDate,omitempty"` - KubernetesVersion ExpirationStatusNodepoolGetKubernetesVersionAttributeType `json:"kubernetesVersion,omitempty"` - Name ExpirationStatusNodepoolGetNameAttributeType `json:"name,omitempty"` - OsExpirationDate ExpirationStatusNodepoolGetOsExpirationDateAttributeType `json:"osExpirationDate,omitempty"` - OsName ExpirationStatusNodepoolGetOsNameAttributeType `json:"osName,omitempty"` - OsVersion ExpirationStatusNodepoolGetOsVersionAttributeType `json:"osVersion,omitempty"` -} - -// NewExpirationStatusNodepool instantiates a new ExpirationStatusNodepool object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExpirationStatusNodepool() *ExpirationStatusNodepool { - this := ExpirationStatusNodepool{} - return &this -} - -// NewExpirationStatusNodepoolWithDefaults instantiates a new ExpirationStatusNodepool object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExpirationStatusNodepoolWithDefaults() *ExpirationStatusNodepool { - this := ExpirationStatusNodepool{} - return &this -} - -// GetKubernetesExpirationDate returns the KubernetesExpirationDate field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetKubernetesExpirationDate() (res ExpirationStatusNodepoolGetKubernetesExpirationDateRetType) { - res, _ = o.GetKubernetesExpirationDateOk() - return -} - -// GetKubernetesExpirationDateOk returns a tuple with the KubernetesExpirationDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetKubernetesExpirationDateOk() (ret ExpirationStatusNodepoolGetKubernetesExpirationDateRetType, ok bool) { - return getExpirationStatusNodepoolGetKubernetesExpirationDateAttributeTypeOk(o.KubernetesExpirationDate) -} - -// HasKubernetesExpirationDate returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) HasKubernetesExpirationDate() bool { - _, ok := o.GetKubernetesExpirationDateOk() - return ok -} - -// SetKubernetesExpirationDate gets a reference to the given time.Time and assigns it to the KubernetesExpirationDate field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) SetKubernetesExpirationDate(v ExpirationStatusNodepoolGetKubernetesExpirationDateRetType) { - setExpirationStatusNodepoolGetKubernetesExpirationDateAttributeType(&o.KubernetesExpirationDate, v) -} - -// GetKubernetesVersion returns the KubernetesVersion field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetKubernetesVersion() (res ExpirationStatusNodepoolGetKubernetesVersionRetType) { - res, _ = o.GetKubernetesVersionOk() - return -} - -// GetKubernetesVersionOk returns a tuple with the KubernetesVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetKubernetesVersionOk() (ret ExpirationStatusNodepoolGetKubernetesVersionRetType, ok bool) { - return getExpirationStatusNodepoolGetKubernetesVersionAttributeTypeOk(o.KubernetesVersion) -} - -// HasKubernetesVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) HasKubernetesVersion() bool { - _, ok := o.GetKubernetesVersionOk() - return ok -} - -// SetKubernetesVersion gets a reference to the given string and assigns it to the KubernetesVersion field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) SetKubernetesVersion(v ExpirationStatusNodepoolGetKubernetesVersionRetType) { - setExpirationStatusNodepoolGetKubernetesVersionAttributeType(&o.KubernetesVersion, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetName() (res ExpirationStatusNodepoolGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetNameOk() (ret ExpirationStatusNodepoolGetNameRetType, ok bool) { - return getExpirationStatusNodepoolGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) SetName(v ExpirationStatusNodepoolGetNameRetType) { - setExpirationStatusNodepoolGetNameAttributeType(&o.Name, v) -} - -// GetOsExpirationDate returns the OsExpirationDate field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetOsExpirationDate() (res ExpirationStatusNodepoolGetOsExpirationDateRetType) { - res, _ = o.GetOsExpirationDateOk() - return -} - -// GetOsExpirationDateOk returns a tuple with the OsExpirationDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetOsExpirationDateOk() (ret ExpirationStatusNodepoolGetOsExpirationDateRetType, ok bool) { - return getExpirationStatusNodepoolGetOsExpirationDateAttributeTypeOk(o.OsExpirationDate) -} - -// HasOsExpirationDate returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) HasOsExpirationDate() bool { - _, ok := o.GetOsExpirationDateOk() - return ok -} - -// SetOsExpirationDate gets a reference to the given time.Time and assigns it to the OsExpirationDate field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) SetOsExpirationDate(v ExpirationStatusNodepoolGetOsExpirationDateRetType) { - setExpirationStatusNodepoolGetOsExpirationDateAttributeType(&o.OsExpirationDate, v) -} - -// GetOsName returns the OsName field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetOsName() (res ExpirationStatusNodepoolGetOsNameRetType) { - res, _ = o.GetOsNameOk() - return -} - -// GetOsNameOk returns a tuple with the OsName field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetOsNameOk() (ret ExpirationStatusNodepoolGetOsNameRetType, ok bool) { - return getExpirationStatusNodepoolGetOsNameAttributeTypeOk(o.OsName) -} - -// HasOsName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) HasOsName() bool { - _, ok := o.GetOsNameOk() - return ok -} - -// SetOsName gets a reference to the given string and assigns it to the OsName field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) SetOsName(v ExpirationStatusNodepoolGetOsNameRetType) { - setExpirationStatusNodepoolGetOsNameAttributeType(&o.OsName, v) -} - -// GetOsVersion returns the OsVersion field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetOsVersion() (res ExpirationStatusNodepoolGetOsVersionRetType) { - res, _ = o.GetOsVersionOk() - return -} - -// GetOsVersionOk returns a tuple with the OsVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) GetOsVersionOk() (ret ExpirationStatusNodepoolGetOsVersionRetType, ok bool) { - return getExpirationStatusNodepoolGetOsVersionAttributeTypeOk(o.OsVersion) -} - -// HasOsVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) HasOsVersion() bool { - _, ok := o.GetOsVersionOk() - return ok -} - -// SetOsVersion gets a reference to the given string and assigns it to the OsVersion field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ExpirationStatusNodepool) SetOsVersion(v ExpirationStatusNodepoolGetOsVersionRetType) { - setExpirationStatusNodepoolGetOsVersionAttributeType(&o.OsVersion, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ExpirationStatusNodepool) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getExpirationStatusNodepoolGetKubernetesExpirationDateAttributeTypeOk(o.KubernetesExpirationDate); ok { - toSerialize["KubernetesExpirationDate"] = val - } - if val, ok := getExpirationStatusNodepoolGetKubernetesVersionAttributeTypeOk(o.KubernetesVersion); ok { - toSerialize["KubernetesVersion"] = val - } - if val, ok := getExpirationStatusNodepoolGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getExpirationStatusNodepoolGetOsExpirationDateAttributeTypeOk(o.OsExpirationDate); ok { - toSerialize["OsExpirationDate"] = val - } - if val, ok := getExpirationStatusNodepoolGetOsNameAttributeTypeOk(o.OsName); ok { - toSerialize["OsName"] = val - } - if val, ok := getExpirationStatusNodepoolGetOsVersionAttributeTypeOk(o.OsVersion); ok { - toSerialize["OsVersion"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableExpirationStatusNodepool struct { - value *ExpirationStatusNodepool - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatusNodepool) Get() *ExpirationStatusNodepool { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatusNodepool) Set(val *ExpirationStatusNodepool) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatusNodepool) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatusNodepool) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableExpirationStatusNodepool(val *ExpirationStatusNodepool) *NullableExpirationStatusNodepool { - return &NullableExpirationStatusNodepool{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExpirationStatusNodepool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExpirationStatusNodepool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_expiration_status_nodepool_test.go b/services/ske/model_expiration_status_nodepool_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_expiration_status_nodepool_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_expiration_status_test.go b/services/ske/model_expiration_status_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_expiration_status_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_extension.go b/services/ske/model_extension.go deleted file mode 100644 index d8f34258d7..0000000000 --- a/services/ske/model_extension.go +++ /dev/null @@ -1,325 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Extension type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Extension{} - -/* - types and functions for acl -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetAclAttributeType = *ACL - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetAclArgType = ACL - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetAclRetType = ACL - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExtensionGetAclAttributeTypeOk(arg ExtensionGetAclAttributeType) (ret ExtensionGetAclRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExtensionGetAclAttributeType(arg *ExtensionGetAclAttributeType, val ExtensionGetAclRetType) { - *arg = &val -} - -/* - types and functions for applicationLoadBalancer -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetApplicationLoadBalancerAttributeType = *ApplicationLoadBalancer - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetApplicationLoadBalancerArgType = ApplicationLoadBalancer - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetApplicationLoadBalancerRetType = ApplicationLoadBalancer - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExtensionGetApplicationLoadBalancerAttributeTypeOk(arg ExtensionGetApplicationLoadBalancerAttributeType) (ret ExtensionGetApplicationLoadBalancerRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExtensionGetApplicationLoadBalancerAttributeType(arg *ExtensionGetApplicationLoadBalancerAttributeType, val ExtensionGetApplicationLoadBalancerRetType) { - *arg = &val -} - -/* - types and functions for dns -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetDnsAttributeType = *DNS - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetDnsArgType = DNS - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetDnsRetType = DNS - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExtensionGetDnsAttributeTypeOk(arg ExtensionGetDnsAttributeType) (ret ExtensionGetDnsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExtensionGetDnsAttributeType(arg *ExtensionGetDnsAttributeType, val ExtensionGetDnsRetType) { - *arg = &val -} - -/* - types and functions for observability -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetObservabilityAttributeType = *Observability - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetObservabilityArgType = Observability - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ExtensionGetObservabilityRetType = Observability - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getExtensionGetObservabilityAttributeTypeOk(arg ExtensionGetObservabilityAttributeType) (ret ExtensionGetObservabilityRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setExtensionGetObservabilityAttributeType(arg *ExtensionGetObservabilityAttributeType, val ExtensionGetObservabilityRetType) { - *arg = &val -} - -// Extension struct for Extension -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Extension struct { - Acl ExtensionGetAclAttributeType `json:"acl,omitempty"` - ApplicationLoadBalancer ExtensionGetApplicationLoadBalancerAttributeType `json:"applicationLoadBalancer,omitempty"` - Dns ExtensionGetDnsAttributeType `json:"dns,omitempty"` - Observability ExtensionGetObservabilityAttributeType `json:"observability,omitempty"` -} - -// NewExtension instantiates a new Extension object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExtension() *Extension { - this := Extension{} - return &this -} - -// NewExtensionWithDefaults instantiates a new Extension object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewExtensionWithDefaults() *Extension { - this := Extension{} - return &this -} - -// GetAcl returns the Acl field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetAcl() (res ExtensionGetAclRetType) { - res, _ = o.GetAclOk() - return -} - -// GetAclOk returns a tuple with the Acl field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetAclOk() (ret ExtensionGetAclRetType, ok bool) { - return getExtensionGetAclAttributeTypeOk(o.Acl) -} - -// HasAcl returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) HasAcl() bool { - _, ok := o.GetAclOk() - return ok -} - -// SetAcl gets a reference to the given ACL and assigns it to the Acl field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) SetAcl(v ExtensionGetAclRetType) { - setExtensionGetAclAttributeType(&o.Acl, v) -} - -// GetApplicationLoadBalancer returns the ApplicationLoadBalancer field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetApplicationLoadBalancer() (res ExtensionGetApplicationLoadBalancerRetType) { - res, _ = o.GetApplicationLoadBalancerOk() - return -} - -// GetApplicationLoadBalancerOk returns a tuple with the ApplicationLoadBalancer field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetApplicationLoadBalancerOk() (ret ExtensionGetApplicationLoadBalancerRetType, ok bool) { - return getExtensionGetApplicationLoadBalancerAttributeTypeOk(o.ApplicationLoadBalancer) -} - -// HasApplicationLoadBalancer returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) HasApplicationLoadBalancer() bool { - _, ok := o.GetApplicationLoadBalancerOk() - return ok -} - -// SetApplicationLoadBalancer gets a reference to the given ApplicationLoadBalancer and assigns it to the ApplicationLoadBalancer field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) SetApplicationLoadBalancer(v ExtensionGetApplicationLoadBalancerRetType) { - setExtensionGetApplicationLoadBalancerAttributeType(&o.ApplicationLoadBalancer, v) -} - -// GetDns returns the Dns field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetDns() (res ExtensionGetDnsRetType) { - res, _ = o.GetDnsOk() - return -} - -// GetDnsOk returns a tuple with the Dns field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetDnsOk() (ret ExtensionGetDnsRetType, ok bool) { - return getExtensionGetDnsAttributeTypeOk(o.Dns) -} - -// HasDns returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) HasDns() bool { - _, ok := o.GetDnsOk() - return ok -} - -// SetDns gets a reference to the given DNS and assigns it to the Dns field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) SetDns(v ExtensionGetDnsRetType) { - setExtensionGetDnsAttributeType(&o.Dns, v) -} - -// GetObservability returns the Observability field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetObservability() (res ExtensionGetObservabilityRetType) { - res, _ = o.GetObservabilityOk() - return -} - -// GetObservabilityOk returns a tuple with the Observability field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) GetObservabilityOk() (ret ExtensionGetObservabilityRetType, ok bool) { - return getExtensionGetObservabilityAttributeTypeOk(o.Observability) -} - -// HasObservability returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) HasObservability() bool { - _, ok := o.GetObservabilityOk() - return ok -} - -// SetObservability gets a reference to the given Observability and assigns it to the Observability field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Extension) SetObservability(v ExtensionGetObservabilityRetType) { - setExtensionGetObservabilityAttributeType(&o.Observability, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Extension) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getExtensionGetAclAttributeTypeOk(o.Acl); ok { - toSerialize["Acl"] = val - } - if val, ok := getExtensionGetApplicationLoadBalancerAttributeTypeOk(o.ApplicationLoadBalancer); ok { - toSerialize["ApplicationLoadBalancer"] = val - } - if val, ok := getExtensionGetDnsAttributeTypeOk(o.Dns); ok { - toSerialize["Dns"] = val - } - if val, ok := getExtensionGetObservabilityAttributeTypeOk(o.Observability); ok { - toSerialize["Observability"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableExtension struct { - value *Extension - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExtension) Get() *Extension { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExtension) Set(val *Extension) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExtension) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExtension) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableExtension(val *Extension) *NullableExtension { - return &NullableExtension{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableExtension) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableExtension) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_extension_test.go b/services/ske/model_extension_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_extension_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_get_provider_options_request_version_state.go b/services/ske/model_get_provider_options_request_version_state.go deleted file mode 100644 index 68fe3395a5..0000000000 --- a/services/ske/model_get_provider_options_request_version_state.go +++ /dev/null @@ -1,129 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "fmt" -) - -// GetProviderOptionsRequestVersionState the model 'GetProviderOptionsRequestVersionState' -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetProviderOptionsRequestVersionState string - -// List of GetProviderOptionsRequestVersionState -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - GETPROVIDEROPTIONSREQUESTVERSIONSTATE_SUPPORTED GetProviderOptionsRequestVersionState = "SUPPORTED" -) - -// All allowed values of GetProviderOptionsRequestVersionState enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedGetProviderOptionsRequestVersionStateEnumValues = []GetProviderOptionsRequestVersionState{ - "SUPPORTED", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *GetProviderOptionsRequestVersionState) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := GetProviderOptionsRequestVersionState(value) - for _, existing := range AllowedGetProviderOptionsRequestVersionStateEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid GetProviderOptionsRequestVersionState", value) -} - -// NewGetProviderOptionsRequestVersionStateFromValue returns a pointer to a valid GetProviderOptionsRequestVersionState -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewGetProviderOptionsRequestVersionStateFromValue(v string) (*GetProviderOptionsRequestVersionState, error) { - ev := GetProviderOptionsRequestVersionState(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for GetProviderOptionsRequestVersionState: valid values are %v", v, AllowedGetProviderOptionsRequestVersionStateEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v GetProviderOptionsRequestVersionState) IsValid() bool { - for _, existing := range AllowedGetProviderOptionsRequestVersionStateEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to GetProviderOptionsRequestVersionState value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v GetProviderOptionsRequestVersionState) Ptr() *GetProviderOptionsRequestVersionState { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableGetProviderOptionsRequestVersionState struct { - value *GetProviderOptionsRequestVersionState - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetProviderOptionsRequestVersionState) Get() *GetProviderOptionsRequestVersionState { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetProviderOptionsRequestVersionState) Set(val *GetProviderOptionsRequestVersionState) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetProviderOptionsRequestVersionState) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetProviderOptionsRequestVersionState) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableGetProviderOptionsRequestVersionState(val *GetProviderOptionsRequestVersionState) *NullableGetProviderOptionsRequestVersionState { - return &NullableGetProviderOptionsRequestVersionState{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetProviderOptionsRequestVersionState) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetProviderOptionsRequestVersionState) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_get_provider_options_request_version_state_test.go b/services/ske/model_get_provider_options_request_version_state_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_get_provider_options_request_version_state_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_hibernation.go b/services/ske/model_hibernation.go deleted file mode 100644 index 6447345940..0000000000 --- a/services/ske/model_hibernation.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Hibernation type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Hibernation{} - -/* - types and functions for schedules -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationGetSchedulesAttributeType = *[]HibernationSchedule - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationGetSchedulesArgType = []HibernationSchedule - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationGetSchedulesRetType = []HibernationSchedule - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getHibernationGetSchedulesAttributeTypeOk(arg HibernationGetSchedulesAttributeType) (ret HibernationGetSchedulesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setHibernationGetSchedulesAttributeType(arg *HibernationGetSchedulesAttributeType, val HibernationGetSchedulesRetType) { - *arg = &val -} - -// Hibernation struct for Hibernation -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Hibernation struct { - // REQUIRED - Schedules HibernationGetSchedulesAttributeType `json:"schedules" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Hibernation Hibernation - -// NewHibernation instantiates a new Hibernation object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewHibernation(schedules HibernationGetSchedulesArgType) *Hibernation { - this := Hibernation{} - setHibernationGetSchedulesAttributeType(&this.Schedules, schedules) - return &this -} - -// NewHibernationWithDefaults instantiates a new Hibernation object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewHibernationWithDefaults() *Hibernation { - this := Hibernation{} - return &this -} - -// GetSchedules returns the Schedules field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Hibernation) GetSchedules() (ret HibernationGetSchedulesRetType) { - ret, _ = o.GetSchedulesOk() - return ret -} - -// GetSchedulesOk returns a tuple with the Schedules field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Hibernation) GetSchedulesOk() (ret HibernationGetSchedulesRetType, ok bool) { - return getHibernationGetSchedulesAttributeTypeOk(o.Schedules) -} - -// SetSchedules sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Hibernation) SetSchedules(v HibernationGetSchedulesRetType) { - setHibernationGetSchedulesAttributeType(&o.Schedules, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Hibernation) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getHibernationGetSchedulesAttributeTypeOk(o.Schedules); ok { - toSerialize["Schedules"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableHibernation struct { - value *Hibernation - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableHibernation) Get() *Hibernation { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableHibernation) Set(val *Hibernation) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableHibernation) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableHibernation) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableHibernation(val *Hibernation) *NullableHibernation { - return &NullableHibernation{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableHibernation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableHibernation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_hibernation_schedule.go b/services/ske/model_hibernation_schedule.go deleted file mode 100644 index 777e7e5a71..0000000000 --- a/services/ske/model_hibernation_schedule.go +++ /dev/null @@ -1,260 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the HibernationSchedule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HibernationSchedule{} - -/* - types and functions for end -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetEndAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getHibernationScheduleGetEndAttributeTypeOk(arg HibernationScheduleGetEndAttributeType) (ret HibernationScheduleGetEndRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setHibernationScheduleGetEndAttributeType(arg *HibernationScheduleGetEndAttributeType, val HibernationScheduleGetEndRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetEndArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetEndRetType = string - -/* - types and functions for start -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetStartAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getHibernationScheduleGetStartAttributeTypeOk(arg HibernationScheduleGetStartAttributeType) (ret HibernationScheduleGetStartRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setHibernationScheduleGetStartAttributeType(arg *HibernationScheduleGetStartAttributeType, val HibernationScheduleGetStartRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetStartArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetStartRetType = string - -/* - types and functions for timezone -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetTimezoneAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getHibernationScheduleGetTimezoneAttributeTypeOk(arg HibernationScheduleGetTimezoneAttributeType) (ret HibernationScheduleGetTimezoneRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setHibernationScheduleGetTimezoneAttributeType(arg *HibernationScheduleGetTimezoneAttributeType, val HibernationScheduleGetTimezoneRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetTimezoneArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationScheduleGetTimezoneRetType = string - -// HibernationSchedule struct for HibernationSchedule -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type HibernationSchedule struct { - // REQUIRED - End HibernationScheduleGetEndAttributeType `json:"end" required:"true"` - // REQUIRED - Start HibernationScheduleGetStartAttributeType `json:"start" required:"true"` - Timezone HibernationScheduleGetTimezoneAttributeType `json:"timezone,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _HibernationSchedule HibernationSchedule - -// NewHibernationSchedule instantiates a new HibernationSchedule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewHibernationSchedule(end HibernationScheduleGetEndArgType, start HibernationScheduleGetStartArgType) *HibernationSchedule { - this := HibernationSchedule{} - setHibernationScheduleGetEndAttributeType(&this.End, end) - setHibernationScheduleGetStartAttributeType(&this.Start, start) - return &this -} - -// NewHibernationScheduleWithDefaults instantiates a new HibernationSchedule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewHibernationScheduleWithDefaults() *HibernationSchedule { - this := HibernationSchedule{} - return &this -} - -// GetEnd returns the End field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) GetEnd() (ret HibernationScheduleGetEndRetType) { - ret, _ = o.GetEndOk() - return ret -} - -// GetEndOk returns a tuple with the End field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) GetEndOk() (ret HibernationScheduleGetEndRetType, ok bool) { - return getHibernationScheduleGetEndAttributeTypeOk(o.End) -} - -// SetEnd sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) SetEnd(v HibernationScheduleGetEndRetType) { - setHibernationScheduleGetEndAttributeType(&o.End, v) -} - -// GetStart returns the Start field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) GetStart() (ret HibernationScheduleGetStartRetType) { - ret, _ = o.GetStartOk() - return ret -} - -// GetStartOk returns a tuple with the Start field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) GetStartOk() (ret HibernationScheduleGetStartRetType, ok bool) { - return getHibernationScheduleGetStartAttributeTypeOk(o.Start) -} - -// SetStart sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) SetStart(v HibernationScheduleGetStartRetType) { - setHibernationScheduleGetStartAttributeType(&o.Start, v) -} - -// GetTimezone returns the Timezone field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) GetTimezone() (res HibernationScheduleGetTimezoneRetType) { - res, _ = o.GetTimezoneOk() - return -} - -// GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) GetTimezoneOk() (ret HibernationScheduleGetTimezoneRetType, ok bool) { - return getHibernationScheduleGetTimezoneAttributeTypeOk(o.Timezone) -} - -// HasTimezone returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) HasTimezone() bool { - _, ok := o.GetTimezoneOk() - return ok -} - -// SetTimezone gets a reference to the given string and assigns it to the Timezone field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *HibernationSchedule) SetTimezone(v HibernationScheduleGetTimezoneRetType) { - setHibernationScheduleGetTimezoneAttributeType(&o.Timezone, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o HibernationSchedule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getHibernationScheduleGetEndAttributeTypeOk(o.End); ok { - toSerialize["End"] = val - } - if val, ok := getHibernationScheduleGetStartAttributeTypeOk(o.Start); ok { - toSerialize["Start"] = val - } - if val, ok := getHibernationScheduleGetTimezoneAttributeTypeOk(o.Timezone); ok { - toSerialize["Timezone"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableHibernationSchedule struct { - value *HibernationSchedule - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableHibernationSchedule) Get() *HibernationSchedule { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableHibernationSchedule) Set(val *HibernationSchedule) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableHibernationSchedule) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableHibernationSchedule) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableHibernationSchedule(val *HibernationSchedule) *NullableHibernationSchedule { - return &NullableHibernationSchedule{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableHibernationSchedule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableHibernationSchedule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_hibernation_schedule_test.go b/services/ske/model_hibernation_schedule_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_hibernation_schedule_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_hibernation_test.go b/services/ske/model_hibernation_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_hibernation_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_idp.go b/services/ske/model_idp.go deleted file mode 100644 index 9cdb6ba72a..0000000000 --- a/services/ske/model_idp.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the IDP type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &IDP{} - -/* - types and functions for enabled -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPgetEnabledAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPgetEnabledArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPgetEnabledRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getIDPgetEnabledAttributeTypeOk(arg IDPgetEnabledAttributeType) (ret IDPgetEnabledRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setIDPgetEnabledAttributeType(arg *IDPgetEnabledAttributeType, val IDPgetEnabledRetType) { - *arg = &val -} - -/* - types and functions for type -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPGetTypeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getIDPGetTypeAttributeTypeOk(arg IDPGetTypeAttributeType) (ret IDPGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setIDPGetTypeAttributeType(arg *IDPGetTypeAttributeType, val IDPGetTypeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPGetTypeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPGetTypeRetType = string - -// IDP struct for IDP -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDP struct { - // Enable IDP integration for the cluster. - // REQUIRED - Enabled IDPgetEnabledAttributeType `json:"enabled" required:"true"` - // Possible values: `\"stackit\"` - // REQUIRED - Type IDPGetTypeAttributeType `json:"type" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _IDP IDP - -// NewIDP instantiates a new IDP object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewIDP(enabled IDPgetEnabledArgType, types IDPGetTypeArgType) *IDP { - this := IDP{} - setIDPgetEnabledAttributeType(&this.Enabled, enabled) - setIDPGetTypeAttributeType(&this.Type, types) - return &this -} - -// NewIDPWithDefaults instantiates a new IDP object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewIDPWithDefaults() *IDP { - this := IDP{} - return &this -} - -// GetEnabled returns the Enabled field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDP) GetEnabled() (ret IDPgetEnabledRetType) { - ret, _ = o.GetEnabledOk() - return ret -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDP) GetEnabledOk() (ret IDPgetEnabledRetType, ok bool) { - return getIDPgetEnabledAttributeTypeOk(o.Enabled) -} - -// SetEnabled sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDP) SetEnabled(v IDPgetEnabledRetType) { - setIDPgetEnabledAttributeType(&o.Enabled, v) -} - -// GetType returns the Type field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDP) GetType() (ret IDPGetTypeRetType) { - ret, _ = o.GetTypeOk() - return ret -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDP) GetTypeOk() (ret IDPGetTypeRetType, ok bool) { - return getIDPGetTypeAttributeTypeOk(o.Type) -} - -// SetType sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDP) SetType(v IDPGetTypeRetType) { - setIDPGetTypeAttributeType(&o.Type, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o IDP) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getIDPgetEnabledAttributeTypeOk(o.Enabled); ok { - toSerialize["Enabled"] = val - } - if val, ok := getIDPGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableIDP struct { - value *IDP - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableIDP) Get() *IDP { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableIDP) Set(val *IDP) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableIDP) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableIDP) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableIDP(val *IDP) *NullableIDP { - return &NullableIDP{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableIDP) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableIDP) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_idp_kubeconfig.go b/services/ske/model_idp_kubeconfig.go deleted file mode 100644 index da8cb27024..0000000000 --- a/services/ske/model_idp_kubeconfig.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the IDPKubeconfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &IDPKubeconfig{} - -/* - types and functions for kubeconfig -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPKubeconfigGetKubeconfigAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getIDPKubeconfigGetKubeconfigAttributeTypeOk(arg IDPKubeconfigGetKubeconfigAttributeType) (ret IDPKubeconfigGetKubeconfigRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setIDPKubeconfigGetKubeconfigAttributeType(arg *IDPKubeconfigGetKubeconfigAttributeType, val IDPKubeconfigGetKubeconfigRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPKubeconfigGetKubeconfigArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPKubeconfigGetKubeconfigRetType = string - -// IDPKubeconfig struct for IDPKubeconfig -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type IDPKubeconfig struct { - Kubeconfig IDPKubeconfigGetKubeconfigAttributeType `json:"kubeconfig,omitempty"` -} - -// NewIDPKubeconfig instantiates a new IDPKubeconfig object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewIDPKubeconfig() *IDPKubeconfig { - this := IDPKubeconfig{} - return &this -} - -// NewIDPKubeconfigWithDefaults instantiates a new IDPKubeconfig object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewIDPKubeconfigWithDefaults() *IDPKubeconfig { - this := IDPKubeconfig{} - return &this -} - -// GetKubeconfig returns the Kubeconfig field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDPKubeconfig) GetKubeconfig() (res IDPKubeconfigGetKubeconfigRetType) { - res, _ = o.GetKubeconfigOk() - return -} - -// GetKubeconfigOk returns a tuple with the Kubeconfig field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDPKubeconfig) GetKubeconfigOk() (ret IDPKubeconfigGetKubeconfigRetType, ok bool) { - return getIDPKubeconfigGetKubeconfigAttributeTypeOk(o.Kubeconfig) -} - -// HasKubeconfig returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDPKubeconfig) HasKubeconfig() bool { - _, ok := o.GetKubeconfigOk() - return ok -} - -// SetKubeconfig gets a reference to the given string and assigns it to the Kubeconfig field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *IDPKubeconfig) SetKubeconfig(v IDPKubeconfigGetKubeconfigRetType) { - setIDPKubeconfigGetKubeconfigAttributeType(&o.Kubeconfig, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o IDPKubeconfig) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getIDPKubeconfigGetKubeconfigAttributeTypeOk(o.Kubeconfig); ok { - toSerialize["Kubeconfig"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableIDPKubeconfig struct { - value *IDPKubeconfig - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableIDPKubeconfig) Get() *IDPKubeconfig { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableIDPKubeconfig) Set(val *IDPKubeconfig) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableIDPKubeconfig) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableIDPKubeconfig) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableIDPKubeconfig(val *IDPKubeconfig) *NullableIDPKubeconfig { - return &NullableIDPKubeconfig{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableIDPKubeconfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableIDPKubeconfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_idp_kubeconfig_test.go b/services/ske/model_idp_kubeconfig_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_idp_kubeconfig_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_idp_test.go b/services/ske/model_idp_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_idp_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_image.go b/services/ske/model_image.go deleted file mode 100644 index ce10da7de6..0000000000 --- a/services/ske/model_image.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Image type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Image{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ImageGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getImageGetNameAttributeTypeOk(arg ImageGetNameAttributeType) (ret ImageGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setImageGetNameAttributeType(arg *ImageGetNameAttributeType, val ImageGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ImageGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ImageGetNameRetType = string - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ImageGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getImageGetVersionAttributeTypeOk(arg ImageGetVersionAttributeType) (ret ImageGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setImageGetVersionAttributeType(arg *ImageGetVersionAttributeType, val ImageGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ImageGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ImageGetVersionRetType = string - -// Image For valid names and versions please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `machineImages`. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Image struct { - // REQUIRED - Name ImageGetNameAttributeType `json:"name" required:"true"` - // REQUIRED - Version ImageGetVersionAttributeType `json:"version" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Image Image - -// NewImage instantiates a new Image object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewImage(name ImageGetNameArgType, version ImageGetVersionArgType) *Image { - this := Image{} - setImageGetNameAttributeType(&this.Name, name) - setImageGetVersionAttributeType(&this.Version, version) - return &this -} - -// NewImageWithDefaults instantiates a new Image object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewImageWithDefaults() *Image { - this := Image{} - return &this -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Image) GetName() (ret ImageGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Image) GetNameOk() (ret ImageGetNameRetType, ok bool) { - return getImageGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Image) SetName(v ImageGetNameRetType) { - setImageGetNameAttributeType(&o.Name, v) -} - -// GetVersion returns the Version field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Image) GetVersion() (ret ImageGetVersionRetType) { - ret, _ = o.GetVersionOk() - return ret -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Image) GetVersionOk() (ret ImageGetVersionRetType, ok bool) { - return getImageGetVersionAttributeTypeOk(o.Version) -} - -// SetVersion sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Image) SetVersion(v ImageGetVersionRetType) { - setImageGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Image) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getImageGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getImageGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableImage struct { - value *Image - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableImage) Get() *Image { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableImage) Set(val *Image) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableImage) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableImage) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableImage(val *Image) *NullableImage { - return &NullableImage{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableImage) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableImage) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_image_test.go b/services/ske/model_image_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_image_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_kubeconfig.go b/services/ske/model_kubeconfig.go deleted file mode 100644 index f620918534..0000000000 --- a/services/ske/model_kubeconfig.go +++ /dev/null @@ -1,210 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "time" -) - -// checks if the Kubeconfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Kubeconfig{} - -/* - types and functions for expirationTimestamp -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubeconfigGetExpirationTimestampAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubeconfigGetExpirationTimestampArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubeconfigGetExpirationTimestampRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getKubeconfigGetExpirationTimestampAttributeTypeOk(arg KubeconfigGetExpirationTimestampAttributeType) (ret KubeconfigGetExpirationTimestampRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setKubeconfigGetExpirationTimestampAttributeType(arg *KubeconfigGetExpirationTimestampAttributeType, val KubeconfigGetExpirationTimestampRetType) { - *arg = &val -} - -/* - types and functions for kubeconfig -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubeconfigGetKubeconfigAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getKubeconfigGetKubeconfigAttributeTypeOk(arg KubeconfigGetKubeconfigAttributeType) (ret KubeconfigGetKubeconfigRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setKubeconfigGetKubeconfigAttributeType(arg *KubeconfigGetKubeconfigAttributeType, val KubeconfigGetKubeconfigRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubeconfigGetKubeconfigArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubeconfigGetKubeconfigRetType = string - -// Kubeconfig struct for Kubeconfig -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Kubeconfig struct { - ExpirationTimestamp KubeconfigGetExpirationTimestampAttributeType `json:"expirationTimestamp,omitempty"` - Kubeconfig KubeconfigGetKubeconfigAttributeType `json:"kubeconfig,omitempty"` -} - -// NewKubeconfig instantiates a new Kubeconfig object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewKubeconfig() *Kubeconfig { - this := Kubeconfig{} - return &this -} - -// NewKubeconfigWithDefaults instantiates a new Kubeconfig object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewKubeconfigWithDefaults() *Kubeconfig { - this := Kubeconfig{} - return &this -} - -// GetExpirationTimestamp returns the ExpirationTimestamp field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) GetExpirationTimestamp() (res KubeconfigGetExpirationTimestampRetType) { - res, _ = o.GetExpirationTimestampOk() - return -} - -// GetExpirationTimestampOk returns a tuple with the ExpirationTimestamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) GetExpirationTimestampOk() (ret KubeconfigGetExpirationTimestampRetType, ok bool) { - return getKubeconfigGetExpirationTimestampAttributeTypeOk(o.ExpirationTimestamp) -} - -// HasExpirationTimestamp returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) HasExpirationTimestamp() bool { - _, ok := o.GetExpirationTimestampOk() - return ok -} - -// SetExpirationTimestamp gets a reference to the given time.Time and assigns it to the ExpirationTimestamp field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) SetExpirationTimestamp(v KubeconfigGetExpirationTimestampRetType) { - setKubeconfigGetExpirationTimestampAttributeType(&o.ExpirationTimestamp, v) -} - -// GetKubeconfig returns the Kubeconfig field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) GetKubeconfig() (res KubeconfigGetKubeconfigRetType) { - res, _ = o.GetKubeconfigOk() - return -} - -// GetKubeconfigOk returns a tuple with the Kubeconfig field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) GetKubeconfigOk() (ret KubeconfigGetKubeconfigRetType, ok bool) { - return getKubeconfigGetKubeconfigAttributeTypeOk(o.Kubeconfig) -} - -// HasKubeconfig returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) HasKubeconfig() bool { - _, ok := o.GetKubeconfigOk() - return ok -} - -// SetKubeconfig gets a reference to the given string and assigns it to the Kubeconfig field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubeconfig) SetKubeconfig(v KubeconfigGetKubeconfigRetType) { - setKubeconfigGetKubeconfigAttributeType(&o.Kubeconfig, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Kubeconfig) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getKubeconfigGetExpirationTimestampAttributeTypeOk(o.ExpirationTimestamp); ok { - toSerialize["ExpirationTimestamp"] = val - } - if val, ok := getKubeconfigGetKubeconfigAttributeTypeOk(o.Kubeconfig); ok { - toSerialize["Kubeconfig"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableKubeconfig struct { - value *Kubeconfig - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubeconfig) Get() *Kubeconfig { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubeconfig) Set(val *Kubeconfig) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubeconfig) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubeconfig) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableKubeconfig(val *Kubeconfig) *NullableKubeconfig { - return &NullableKubeconfig{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubeconfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubeconfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_kubeconfig_test.go b/services/ske/model_kubeconfig_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_kubeconfig_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_kubernetes.go b/services/ske/model_kubernetes.go deleted file mode 100644 index 5a70c3a775..0000000000 --- a/services/ske/model_kubernetes.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Kubernetes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Kubernetes{} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getKubernetesGetVersionAttributeTypeOk(arg KubernetesGetVersionAttributeType) (ret KubernetesGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setKubernetesGetVersionAttributeType(arg *KubernetesGetVersionAttributeType, val KubernetesGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesGetVersionRetType = string - -// Kubernetes For valid versions please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `kubernetesVersions`. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Kubernetes struct { - // REQUIRED - Version KubernetesGetVersionAttributeType `json:"version" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Kubernetes Kubernetes - -// NewKubernetes instantiates a new Kubernetes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewKubernetes(version KubernetesGetVersionArgType) *Kubernetes { - this := Kubernetes{} - setKubernetesGetVersionAttributeType(&this.Version, version) - return &this -} - -// NewKubernetesWithDefaults instantiates a new Kubernetes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewKubernetesWithDefaults() *Kubernetes { - this := Kubernetes{} - return &this -} - -// GetVersion returns the Version field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubernetes) GetVersion() (ret KubernetesGetVersionRetType) { - ret, _ = o.GetVersionOk() - return ret -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubernetes) GetVersionOk() (ret KubernetesGetVersionRetType, ok bool) { - return getKubernetesGetVersionAttributeTypeOk(o.Version) -} - -// SetVersion sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Kubernetes) SetVersion(v KubernetesGetVersionRetType) { - setKubernetesGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Kubernetes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getKubernetesGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableKubernetes struct { - value *Kubernetes - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubernetes) Get() *Kubernetes { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubernetes) Set(val *Kubernetes) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubernetes) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubernetes) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableKubernetes(val *Kubernetes) *NullableKubernetes { - return &NullableKubernetes{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubernetes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubernetes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_kubernetes_test.go b/services/ske/model_kubernetes_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_kubernetes_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_kubernetes_version.go b/services/ske/model_kubernetes_version.go deleted file mode 100644 index 94d3d4431a..0000000000 --- a/services/ske/model_kubernetes_version.go +++ /dev/null @@ -1,326 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "time" -) - -// checks if the KubernetesVersion type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &KubernetesVersion{} - -/* - types and functions for expirationDate -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetExpirationDateAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetExpirationDateArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetExpirationDateRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getKubernetesVersionGetExpirationDateAttributeTypeOk(arg KubernetesVersionGetExpirationDateAttributeType) (ret KubernetesVersionGetExpirationDateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setKubernetesVersionGetExpirationDateAttributeType(arg *KubernetesVersionGetExpirationDateAttributeType, val KubernetesVersionGetExpirationDateRetType) { - *arg = &val -} - -/* - types and functions for featureGates -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetFeatureGatesAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetFeatureGatesArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetFeatureGatesRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getKubernetesVersionGetFeatureGatesAttributeTypeOk(arg KubernetesVersionGetFeatureGatesAttributeType) (ret KubernetesVersionGetFeatureGatesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setKubernetesVersionGetFeatureGatesAttributeType(arg *KubernetesVersionGetFeatureGatesAttributeType, val KubernetesVersionGetFeatureGatesRetType) { - *arg = &val -} - -/* - types and functions for state -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetStateAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getKubernetesVersionGetStateAttributeTypeOk(arg KubernetesVersionGetStateAttributeType) (ret KubernetesVersionGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setKubernetesVersionGetStateAttributeType(arg *KubernetesVersionGetStateAttributeType, val KubernetesVersionGetStateRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetStateArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetStateRetType = string - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getKubernetesVersionGetVersionAttributeTypeOk(arg KubernetesVersionGetVersionAttributeType) (ret KubernetesVersionGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setKubernetesVersionGetVersionAttributeType(arg *KubernetesVersionGetVersionAttributeType, val KubernetesVersionGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersionGetVersionRetType = string - -// KubernetesVersion struct for KubernetesVersion -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type KubernetesVersion struct { - ExpirationDate KubernetesVersionGetExpirationDateAttributeType `json:"expirationDate,omitempty"` - FeatureGates KubernetesVersionGetFeatureGatesAttributeType `json:"featureGates,omitempty"` - State KubernetesVersionGetStateAttributeType `json:"state,omitempty"` - Version KubernetesVersionGetVersionAttributeType `json:"version,omitempty"` -} - -// NewKubernetesVersion instantiates a new KubernetesVersion object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewKubernetesVersion() *KubernetesVersion { - this := KubernetesVersion{} - return &this -} - -// NewKubernetesVersionWithDefaults instantiates a new KubernetesVersion object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewKubernetesVersionWithDefaults() *KubernetesVersion { - this := KubernetesVersion{} - return &this -} - -// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetExpirationDate() (res KubernetesVersionGetExpirationDateRetType) { - res, _ = o.GetExpirationDateOk() - return -} - -// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetExpirationDateOk() (ret KubernetesVersionGetExpirationDateRetType, ok bool) { - return getKubernetesVersionGetExpirationDateAttributeTypeOk(o.ExpirationDate) -} - -// HasExpirationDate returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) HasExpirationDate() bool { - _, ok := o.GetExpirationDateOk() - return ok -} - -// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) SetExpirationDate(v KubernetesVersionGetExpirationDateRetType) { - setKubernetesVersionGetExpirationDateAttributeType(&o.ExpirationDate, v) -} - -// GetFeatureGates returns the FeatureGates field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetFeatureGates() (res KubernetesVersionGetFeatureGatesRetType) { - res, _ = o.GetFeatureGatesOk() - return -} - -// GetFeatureGatesOk returns a tuple with the FeatureGates field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetFeatureGatesOk() (ret KubernetesVersionGetFeatureGatesRetType, ok bool) { - return getKubernetesVersionGetFeatureGatesAttributeTypeOk(o.FeatureGates) -} - -// HasFeatureGates returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) HasFeatureGates() bool { - _, ok := o.GetFeatureGatesOk() - return ok -} - -// SetFeatureGates gets a reference to the given map[string]string and assigns it to the FeatureGates field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) SetFeatureGates(v KubernetesVersionGetFeatureGatesRetType) { - setKubernetesVersionGetFeatureGatesAttributeType(&o.FeatureGates, v) -} - -// GetState returns the State field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetState() (res KubernetesVersionGetStateRetType) { - res, _ = o.GetStateOk() - return -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetStateOk() (ret KubernetesVersionGetStateRetType, ok bool) { - return getKubernetesVersionGetStateAttributeTypeOk(o.State) -} - -// HasState returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) HasState() bool { - _, ok := o.GetStateOk() - return ok -} - -// SetState gets a reference to the given string and assigns it to the State field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) SetState(v KubernetesVersionGetStateRetType) { - setKubernetesVersionGetStateAttributeType(&o.State, v) -} - -// GetVersion returns the Version field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetVersion() (res KubernetesVersionGetVersionRetType) { - res, _ = o.GetVersionOk() - return -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) GetVersionOk() (ret KubernetesVersionGetVersionRetType, ok bool) { - return getKubernetesVersionGetVersionAttributeTypeOk(o.Version) -} - -// HasVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) HasVersion() bool { - _, ok := o.GetVersionOk() - return ok -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *KubernetesVersion) SetVersion(v KubernetesVersionGetVersionRetType) { - setKubernetesVersionGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o KubernetesVersion) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getKubernetesVersionGetExpirationDateAttributeTypeOk(o.ExpirationDate); ok { - toSerialize["ExpirationDate"] = val - } - if val, ok := getKubernetesVersionGetFeatureGatesAttributeTypeOk(o.FeatureGates); ok { - toSerialize["FeatureGates"] = val - } - if val, ok := getKubernetesVersionGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - if val, ok := getKubernetesVersionGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableKubernetesVersion struct { - value *KubernetesVersion - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubernetesVersion) Get() *KubernetesVersion { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubernetesVersion) Set(val *KubernetesVersion) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubernetesVersion) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubernetesVersion) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableKubernetesVersion(val *KubernetesVersion) *NullableKubernetesVersion { - return &NullableKubernetesVersion{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableKubernetesVersion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableKubernetesVersion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_kubernetes_version_test.go b/services/ske/model_kubernetes_version_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_kubernetes_version_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_list_clusters_response.go b/services/ske/model_list_clusters_response.go deleted file mode 100644 index d69c9756aa..0000000000 --- a/services/ske/model_list_clusters_response.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the ListClustersResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListClustersResponse{} - -/* - types and functions for items -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListClustersResponseGetItemsAttributeType = *[]Cluster - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListClustersResponseGetItemsArgType = []Cluster - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListClustersResponseGetItemsRetType = []Cluster - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListClustersResponseGetItemsAttributeTypeOk(arg ListClustersResponseGetItemsAttributeType) (ret ListClustersResponseGetItemsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListClustersResponseGetItemsAttributeType(arg *ListClustersResponseGetItemsAttributeType, val ListClustersResponseGetItemsRetType) { - *arg = &val -} - -// ListClustersResponse struct for ListClustersResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListClustersResponse struct { - Items ListClustersResponseGetItemsAttributeType `json:"items,omitempty"` -} - -// NewListClustersResponse instantiates a new ListClustersResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListClustersResponse() *ListClustersResponse { - this := ListClustersResponse{} - return &this -} - -// NewListClustersResponseWithDefaults instantiates a new ListClustersResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListClustersResponseWithDefaults() *ListClustersResponse { - this := ListClustersResponse{} - return &this -} - -// GetItems returns the Items field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListClustersResponse) GetItems() (res ListClustersResponseGetItemsRetType) { - res, _ = o.GetItemsOk() - return -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListClustersResponse) GetItemsOk() (ret ListClustersResponseGetItemsRetType, ok bool) { - return getListClustersResponseGetItemsAttributeTypeOk(o.Items) -} - -// HasItems returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListClustersResponse) HasItems() bool { - _, ok := o.GetItemsOk() - return ok -} - -// SetItems gets a reference to the given []Cluster and assigns it to the Items field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListClustersResponse) SetItems(v ListClustersResponseGetItemsRetType) { - setListClustersResponseGetItemsAttributeType(&o.Items, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListClustersResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListClustersResponseGetItemsAttributeTypeOk(o.Items); ok { - toSerialize["Items"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListClustersResponse struct { - value *ListClustersResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListClustersResponse) Get() *ListClustersResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListClustersResponse) Set(val *ListClustersResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListClustersResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListClustersResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListClustersResponse(val *ListClustersResponse) *NullableListClustersResponse { - return &NullableListClustersResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListClustersResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListClustersResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_list_clusters_response_test.go b/services/ske/model_list_clusters_response_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_list_clusters_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_login_kubeconfig.go b/services/ske/model_login_kubeconfig.go deleted file mode 100644 index ec0cc37ed6..0000000000 --- a/services/ske/model_login_kubeconfig.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the LoginKubeconfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LoginKubeconfig{} - -/* - types and functions for kubeconfig -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type LoginKubeconfigGetKubeconfigAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getLoginKubeconfigGetKubeconfigAttributeTypeOk(arg LoginKubeconfigGetKubeconfigAttributeType) (ret LoginKubeconfigGetKubeconfigRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setLoginKubeconfigGetKubeconfigAttributeType(arg *LoginKubeconfigGetKubeconfigAttributeType, val LoginKubeconfigGetKubeconfigRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type LoginKubeconfigGetKubeconfigArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type LoginKubeconfigGetKubeconfigRetType = string - -// LoginKubeconfig struct for LoginKubeconfig -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type LoginKubeconfig struct { - Kubeconfig LoginKubeconfigGetKubeconfigAttributeType `json:"kubeconfig,omitempty"` -} - -// NewLoginKubeconfig instantiates a new LoginKubeconfig object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewLoginKubeconfig() *LoginKubeconfig { - this := LoginKubeconfig{} - return &this -} - -// NewLoginKubeconfigWithDefaults instantiates a new LoginKubeconfig object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewLoginKubeconfigWithDefaults() *LoginKubeconfig { - this := LoginKubeconfig{} - return &this -} - -// GetKubeconfig returns the Kubeconfig field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *LoginKubeconfig) GetKubeconfig() (res LoginKubeconfigGetKubeconfigRetType) { - res, _ = o.GetKubeconfigOk() - return -} - -// GetKubeconfigOk returns a tuple with the Kubeconfig field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *LoginKubeconfig) GetKubeconfigOk() (ret LoginKubeconfigGetKubeconfigRetType, ok bool) { - return getLoginKubeconfigGetKubeconfigAttributeTypeOk(o.Kubeconfig) -} - -// HasKubeconfig returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *LoginKubeconfig) HasKubeconfig() bool { - _, ok := o.GetKubeconfigOk() - return ok -} - -// SetKubeconfig gets a reference to the given string and assigns it to the Kubeconfig field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *LoginKubeconfig) SetKubeconfig(v LoginKubeconfigGetKubeconfigRetType) { - setLoginKubeconfigGetKubeconfigAttributeType(&o.Kubeconfig, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o LoginKubeconfig) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getLoginKubeconfigGetKubeconfigAttributeTypeOk(o.Kubeconfig); ok { - toSerialize["Kubeconfig"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableLoginKubeconfig struct { - value *LoginKubeconfig - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableLoginKubeconfig) Get() *LoginKubeconfig { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableLoginKubeconfig) Set(val *LoginKubeconfig) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableLoginKubeconfig) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableLoginKubeconfig) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableLoginKubeconfig(val *LoginKubeconfig) *NullableLoginKubeconfig { - return &NullableLoginKubeconfig{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableLoginKubeconfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableLoginKubeconfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_login_kubeconfig_test.go b/services/ske/model_login_kubeconfig_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_login_kubeconfig_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_machine.go b/services/ske/model_machine.go deleted file mode 100644 index 20645e837d..0000000000 --- a/services/ske/model_machine.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Machine type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Machine{} - -/* - types and functions for image -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineGetImageAttributeType = *Image - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineGetImageArgType = Image - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineGetImageRetType = Image - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineGetImageAttributeTypeOk(arg MachineGetImageAttributeType) (ret MachineGetImageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineGetImageAttributeType(arg *MachineGetImageAttributeType, val MachineGetImageRetType) { - *arg = &val -} - -/* - types and functions for type -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineGetTypeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineGetTypeAttributeTypeOk(arg MachineGetTypeAttributeType) (ret MachineGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineGetTypeAttributeType(arg *MachineGetTypeAttributeType, val MachineGetTypeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineGetTypeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineGetTypeRetType = string - -// Machine struct for Machine -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Machine struct { - // REQUIRED - Image MachineGetImageAttributeType `json:"image" required:"true"` - // For valid types please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `machineTypes`. - // REQUIRED - Type MachineGetTypeAttributeType `json:"type" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Machine Machine - -// NewMachine instantiates a new Machine object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachine(image MachineGetImageArgType, types MachineGetTypeArgType) *Machine { - this := Machine{} - setMachineGetImageAttributeType(&this.Image, image) - setMachineGetTypeAttributeType(&this.Type, types) - return &this -} - -// NewMachineWithDefaults instantiates a new Machine object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachineWithDefaults() *Machine { - this := Machine{} - return &this -} - -// GetImage returns the Image field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Machine) GetImage() (ret MachineGetImageRetType) { - ret, _ = o.GetImageOk() - return ret -} - -// GetImageOk returns a tuple with the Image field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Machine) GetImageOk() (ret MachineGetImageRetType, ok bool) { - return getMachineGetImageAttributeTypeOk(o.Image) -} - -// SetImage sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Machine) SetImage(v MachineGetImageRetType) { - setMachineGetImageAttributeType(&o.Image, v) -} - -// GetType returns the Type field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Machine) GetType() (ret MachineGetTypeRetType) { - ret, _ = o.GetTypeOk() - return ret -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Machine) GetTypeOk() (ret MachineGetTypeRetType, ok bool) { - return getMachineGetTypeAttributeTypeOk(o.Type) -} - -// SetType sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Machine) SetType(v MachineGetTypeRetType) { - setMachineGetTypeAttributeType(&o.Type, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Machine) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getMachineGetImageAttributeTypeOk(o.Image); ok { - toSerialize["Image"] = val - } - if val, ok := getMachineGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableMachine struct { - value *Machine - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachine) Get() *Machine { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachine) Set(val *Machine) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachine) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachine) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableMachine(val *Machine) *NullableMachine { - return &NullableMachine{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachine) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachine) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_machine_image.go b/services/ske/model_machine_image.go deleted file mode 100644 index f3199c31fc..0000000000 --- a/services/ske/model_machine_image.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the MachineImage type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MachineImage{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineImageGetNameAttributeTypeOk(arg MachineImageGetNameAttributeType) (ret MachineImageGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineImageGetNameAttributeType(arg *MachineImageGetNameAttributeType, val MachineImageGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageGetNameRetType = string - -/* - types and functions for versions -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageGetVersionsAttributeType = *[]MachineImageVersion - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageGetVersionsArgType = []MachineImageVersion - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageGetVersionsRetType = []MachineImageVersion - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineImageGetVersionsAttributeTypeOk(arg MachineImageGetVersionsAttributeType) (ret MachineImageGetVersionsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineImageGetVersionsAttributeType(arg *MachineImageGetVersionsAttributeType, val MachineImageGetVersionsRetType) { - *arg = &val -} - -// MachineImage struct for MachineImage -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImage struct { - Name MachineImageGetNameAttributeType `json:"name,omitempty"` - Versions MachineImageGetVersionsAttributeType `json:"versions,omitempty"` -} - -// NewMachineImage instantiates a new MachineImage object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachineImage() *MachineImage { - this := MachineImage{} - return &this -} - -// NewMachineImageWithDefaults instantiates a new MachineImage object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachineImageWithDefaults() *MachineImage { - this := MachineImage{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) GetName() (res MachineImageGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) GetNameOk() (ret MachineImageGetNameRetType, ok bool) { - return getMachineImageGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) SetName(v MachineImageGetNameRetType) { - setMachineImageGetNameAttributeType(&o.Name, v) -} - -// GetVersions returns the Versions field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) GetVersions() (res MachineImageGetVersionsRetType) { - res, _ = o.GetVersionsOk() - return -} - -// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) GetVersionsOk() (ret MachineImageGetVersionsRetType, ok bool) { - return getMachineImageGetVersionsAttributeTypeOk(o.Versions) -} - -// HasVersions returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) HasVersions() bool { - _, ok := o.GetVersionsOk() - return ok -} - -// SetVersions gets a reference to the given []MachineImageVersion and assigns it to the Versions field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImage) SetVersions(v MachineImageGetVersionsRetType) { - setMachineImageGetVersionsAttributeType(&o.Versions, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o MachineImage) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getMachineImageGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getMachineImageGetVersionsAttributeTypeOk(o.Versions); ok { - toSerialize["Versions"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableMachineImage struct { - value *MachineImage - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineImage) Get() *MachineImage { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineImage) Set(val *MachineImage) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineImage) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineImage) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableMachineImage(val *MachineImage) *NullableMachineImage { - return &NullableMachineImage{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineImage) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineImage) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_machine_image_test.go b/services/ske/model_machine_image_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_machine_image_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_machine_image_version.go b/services/ske/model_machine_image_version.go deleted file mode 100644 index fd2d4d3b61..0000000000 --- a/services/ske/model_machine_image_version.go +++ /dev/null @@ -1,326 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "time" -) - -// checks if the MachineImageVersion type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MachineImageVersion{} - -/* - types and functions for cri -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetCriAttributeType = *[]CRI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetCriArgType = []CRI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetCriRetType = []CRI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineImageVersionGetCriAttributeTypeOk(arg MachineImageVersionGetCriAttributeType) (ret MachineImageVersionGetCriRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineImageVersionGetCriAttributeType(arg *MachineImageVersionGetCriAttributeType, val MachineImageVersionGetCriRetType) { - *arg = &val -} - -/* - types and functions for expirationDate -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetExpirationDateAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetExpirationDateArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetExpirationDateRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineImageVersionGetExpirationDateAttributeTypeOk(arg MachineImageVersionGetExpirationDateAttributeType) (ret MachineImageVersionGetExpirationDateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineImageVersionGetExpirationDateAttributeType(arg *MachineImageVersionGetExpirationDateAttributeType, val MachineImageVersionGetExpirationDateRetType) { - *arg = &val -} - -/* - types and functions for state -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetStateAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineImageVersionGetStateAttributeTypeOk(arg MachineImageVersionGetStateAttributeType) (ret MachineImageVersionGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineImageVersionGetStateAttributeType(arg *MachineImageVersionGetStateAttributeType, val MachineImageVersionGetStateRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetStateArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetStateRetType = string - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineImageVersionGetVersionAttributeTypeOk(arg MachineImageVersionGetVersionAttributeType) (ret MachineImageVersionGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineImageVersionGetVersionAttributeType(arg *MachineImageVersionGetVersionAttributeType, val MachineImageVersionGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersionGetVersionRetType = string - -// MachineImageVersion struct for MachineImageVersion -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineImageVersion struct { - Cri MachineImageVersionGetCriAttributeType `json:"cri,omitempty"` - ExpirationDate MachineImageVersionGetExpirationDateAttributeType `json:"expirationDate,omitempty"` - State MachineImageVersionGetStateAttributeType `json:"state,omitempty"` - Version MachineImageVersionGetVersionAttributeType `json:"version,omitempty"` -} - -// NewMachineImageVersion instantiates a new MachineImageVersion object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachineImageVersion() *MachineImageVersion { - this := MachineImageVersion{} - return &this -} - -// NewMachineImageVersionWithDefaults instantiates a new MachineImageVersion object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachineImageVersionWithDefaults() *MachineImageVersion { - this := MachineImageVersion{} - return &this -} - -// GetCri returns the Cri field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetCri() (res MachineImageVersionGetCriRetType) { - res, _ = o.GetCriOk() - return -} - -// GetCriOk returns a tuple with the Cri field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetCriOk() (ret MachineImageVersionGetCriRetType, ok bool) { - return getMachineImageVersionGetCriAttributeTypeOk(o.Cri) -} - -// HasCri returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) HasCri() bool { - _, ok := o.GetCriOk() - return ok -} - -// SetCri gets a reference to the given []CRI and assigns it to the Cri field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) SetCri(v MachineImageVersionGetCriRetType) { - setMachineImageVersionGetCriAttributeType(&o.Cri, v) -} - -// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetExpirationDate() (res MachineImageVersionGetExpirationDateRetType) { - res, _ = o.GetExpirationDateOk() - return -} - -// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetExpirationDateOk() (ret MachineImageVersionGetExpirationDateRetType, ok bool) { - return getMachineImageVersionGetExpirationDateAttributeTypeOk(o.ExpirationDate) -} - -// HasExpirationDate returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) HasExpirationDate() bool { - _, ok := o.GetExpirationDateOk() - return ok -} - -// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) SetExpirationDate(v MachineImageVersionGetExpirationDateRetType) { - setMachineImageVersionGetExpirationDateAttributeType(&o.ExpirationDate, v) -} - -// GetState returns the State field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetState() (res MachineImageVersionGetStateRetType) { - res, _ = o.GetStateOk() - return -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetStateOk() (ret MachineImageVersionGetStateRetType, ok bool) { - return getMachineImageVersionGetStateAttributeTypeOk(o.State) -} - -// HasState returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) HasState() bool { - _, ok := o.GetStateOk() - return ok -} - -// SetState gets a reference to the given string and assigns it to the State field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) SetState(v MachineImageVersionGetStateRetType) { - setMachineImageVersionGetStateAttributeType(&o.State, v) -} - -// GetVersion returns the Version field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetVersion() (res MachineImageVersionGetVersionRetType) { - res, _ = o.GetVersionOk() - return -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) GetVersionOk() (ret MachineImageVersionGetVersionRetType, ok bool) { - return getMachineImageVersionGetVersionAttributeTypeOk(o.Version) -} - -// HasVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) HasVersion() bool { - _, ok := o.GetVersionOk() - return ok -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineImageVersion) SetVersion(v MachineImageVersionGetVersionRetType) { - setMachineImageVersionGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o MachineImageVersion) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getMachineImageVersionGetCriAttributeTypeOk(o.Cri); ok { - toSerialize["Cri"] = val - } - if val, ok := getMachineImageVersionGetExpirationDateAttributeTypeOk(o.ExpirationDate); ok { - toSerialize["ExpirationDate"] = val - } - if val, ok := getMachineImageVersionGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - if val, ok := getMachineImageVersionGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableMachineImageVersion struct { - value *MachineImageVersion - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineImageVersion) Get() *MachineImageVersion { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineImageVersion) Set(val *MachineImageVersion) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineImageVersion) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineImageVersion) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableMachineImageVersion(val *MachineImageVersion) *NullableMachineImageVersion { - return &NullableMachineImageVersion{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineImageVersion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineImageVersion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_machine_image_version_test.go b/services/ske/model_machine_image_version_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_machine_image_version_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_machine_test.go b/services/ske/model_machine_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_machine_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_machine_type.go b/services/ske/model_machine_type.go deleted file mode 100644 index 2e2e126a46..0000000000 --- a/services/ske/model_machine_type.go +++ /dev/null @@ -1,386 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the MachineType type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MachineType{} - -/* - types and functions for architecture -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetArchitectureAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineTypeGetArchitectureAttributeTypeOk(arg MachineTypeGetArchitectureAttributeType) (ret MachineTypeGetArchitectureRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineTypeGetArchitectureAttributeType(arg *MachineTypeGetArchitectureAttributeType, val MachineTypeGetArchitectureRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetArchitectureArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetArchitectureRetType = string - -/* - types and functions for cpu -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetCpuAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetCpuArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetCpuRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineTypeGetCpuAttributeTypeOk(arg MachineTypeGetCpuAttributeType) (ret MachineTypeGetCpuRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineTypeGetCpuAttributeType(arg *MachineTypeGetCpuAttributeType, val MachineTypeGetCpuRetType) { - *arg = &val -} - -/* - types and functions for gpu -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetGpuAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetGpuArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetGpuRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineTypeGetGpuAttributeTypeOk(arg MachineTypeGetGpuAttributeType) (ret MachineTypeGetGpuRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineTypeGetGpuAttributeType(arg *MachineTypeGetGpuAttributeType, val MachineTypeGetGpuRetType) { - *arg = &val -} - -/* - types and functions for memory -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetMemoryAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetMemoryArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetMemoryRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineTypeGetMemoryAttributeTypeOk(arg MachineTypeGetMemoryAttributeType) (ret MachineTypeGetMemoryRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineTypeGetMemoryAttributeType(arg *MachineTypeGetMemoryAttributeType, val MachineTypeGetMemoryRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMachineTypeGetNameAttributeTypeOk(arg MachineTypeGetNameAttributeType) (ret MachineTypeGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMachineTypeGetNameAttributeType(arg *MachineTypeGetNameAttributeType, val MachineTypeGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineTypeGetNameRetType = string - -// MachineType struct for MachineType -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MachineType struct { - Architecture MachineTypeGetArchitectureAttributeType `json:"architecture,omitempty"` - // Can be cast to int32 without loss of precision. - Cpu MachineTypeGetCpuAttributeType `json:"cpu,omitempty"` - // Can be cast to int32 without loss of precision. - Gpu MachineTypeGetGpuAttributeType `json:"gpu,omitempty"` - // Can be cast to int32 without loss of precision. - Memory MachineTypeGetMemoryAttributeType `json:"memory,omitempty"` - Name MachineTypeGetNameAttributeType `json:"name,omitempty"` -} - -// NewMachineType instantiates a new MachineType object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachineType() *MachineType { - this := MachineType{} - return &this -} - -// NewMachineTypeWithDefaults instantiates a new MachineType object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMachineTypeWithDefaults() *MachineType { - this := MachineType{} - return &this -} - -// GetArchitecture returns the Architecture field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetArchitecture() (res MachineTypeGetArchitectureRetType) { - res, _ = o.GetArchitectureOk() - return -} - -// GetArchitectureOk returns a tuple with the Architecture field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetArchitectureOk() (ret MachineTypeGetArchitectureRetType, ok bool) { - return getMachineTypeGetArchitectureAttributeTypeOk(o.Architecture) -} - -// HasArchitecture returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) HasArchitecture() bool { - _, ok := o.GetArchitectureOk() - return ok -} - -// SetArchitecture gets a reference to the given string and assigns it to the Architecture field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) SetArchitecture(v MachineTypeGetArchitectureRetType) { - setMachineTypeGetArchitectureAttributeType(&o.Architecture, v) -} - -// GetCpu returns the Cpu field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetCpu() (res MachineTypeGetCpuRetType) { - res, _ = o.GetCpuOk() - return -} - -// GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetCpuOk() (ret MachineTypeGetCpuRetType, ok bool) { - return getMachineTypeGetCpuAttributeTypeOk(o.Cpu) -} - -// HasCpu returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) HasCpu() bool { - _, ok := o.GetCpuOk() - return ok -} - -// SetCpu gets a reference to the given int64 and assigns it to the Cpu field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) SetCpu(v MachineTypeGetCpuRetType) { - setMachineTypeGetCpuAttributeType(&o.Cpu, v) -} - -// GetGpu returns the Gpu field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetGpu() (res MachineTypeGetGpuRetType) { - res, _ = o.GetGpuOk() - return -} - -// GetGpuOk returns a tuple with the Gpu field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetGpuOk() (ret MachineTypeGetGpuRetType, ok bool) { - return getMachineTypeGetGpuAttributeTypeOk(o.Gpu) -} - -// HasGpu returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) HasGpu() bool { - _, ok := o.GetGpuOk() - return ok -} - -// SetGpu gets a reference to the given int64 and assigns it to the Gpu field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) SetGpu(v MachineTypeGetGpuRetType) { - setMachineTypeGetGpuAttributeType(&o.Gpu, v) -} - -// GetMemory returns the Memory field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetMemory() (res MachineTypeGetMemoryRetType) { - res, _ = o.GetMemoryOk() - return -} - -// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetMemoryOk() (ret MachineTypeGetMemoryRetType, ok bool) { - return getMachineTypeGetMemoryAttributeTypeOk(o.Memory) -} - -// HasMemory returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) HasMemory() bool { - _, ok := o.GetMemoryOk() - return ok -} - -// SetMemory gets a reference to the given int64 and assigns it to the Memory field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) SetMemory(v MachineTypeGetMemoryRetType) { - setMachineTypeGetMemoryAttributeType(&o.Memory, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetName() (res MachineTypeGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) GetNameOk() (ret MachineTypeGetNameRetType, ok bool) { - return getMachineTypeGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MachineType) SetName(v MachineTypeGetNameRetType) { - setMachineTypeGetNameAttributeType(&o.Name, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o MachineType) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getMachineTypeGetArchitectureAttributeTypeOk(o.Architecture); ok { - toSerialize["Architecture"] = val - } - if val, ok := getMachineTypeGetCpuAttributeTypeOk(o.Cpu); ok { - toSerialize["Cpu"] = val - } - if val, ok := getMachineTypeGetGpuAttributeTypeOk(o.Gpu); ok { - toSerialize["Gpu"] = val - } - if val, ok := getMachineTypeGetMemoryAttributeTypeOk(o.Memory); ok { - toSerialize["Memory"] = val - } - if val, ok := getMachineTypeGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableMachineType struct { - value *MachineType - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineType) Get() *MachineType { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineType) Set(val *MachineType) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineType) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineType) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableMachineType(val *MachineType) *NullableMachineType { - return &NullableMachineType{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMachineType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMachineType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_machine_type_test.go b/services/ske/model_machine_type_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_machine_type_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_maintenance.go b/services/ske/model_maintenance.go deleted file mode 100644 index ecaa519d4b..0000000000 --- a/services/ske/model_maintenance.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Maintenance type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Maintenance{} - -/* - types and functions for autoUpdate -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceGetAutoUpdateAttributeType = *MaintenanceAutoUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceGetAutoUpdateArgType = MaintenanceAutoUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceGetAutoUpdateRetType = MaintenanceAutoUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMaintenanceGetAutoUpdateAttributeTypeOk(arg MaintenanceGetAutoUpdateAttributeType) (ret MaintenanceGetAutoUpdateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMaintenanceGetAutoUpdateAttributeType(arg *MaintenanceGetAutoUpdateAttributeType, val MaintenanceGetAutoUpdateRetType) { - *arg = &val -} - -/* - types and functions for timeWindow -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceGetTimeWindowAttributeType = *TimeWindow - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceGetTimeWindowArgType = TimeWindow - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceGetTimeWindowRetType = TimeWindow - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMaintenanceGetTimeWindowAttributeTypeOk(arg MaintenanceGetTimeWindowAttributeType) (ret MaintenanceGetTimeWindowRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMaintenanceGetTimeWindowAttributeType(arg *MaintenanceGetTimeWindowAttributeType, val MaintenanceGetTimeWindowRetType) { - *arg = &val -} - -// Maintenance struct for Maintenance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Maintenance struct { - // REQUIRED - AutoUpdate MaintenanceGetAutoUpdateAttributeType `json:"autoUpdate" required:"true"` - // REQUIRED - TimeWindow MaintenanceGetTimeWindowAttributeType `json:"timeWindow" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Maintenance Maintenance - -// NewMaintenance instantiates a new Maintenance object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMaintenance(autoUpdate MaintenanceGetAutoUpdateArgType, timeWindow MaintenanceGetTimeWindowArgType) *Maintenance { - this := Maintenance{} - setMaintenanceGetAutoUpdateAttributeType(&this.AutoUpdate, autoUpdate) - setMaintenanceGetTimeWindowAttributeType(&this.TimeWindow, timeWindow) - return &this -} - -// NewMaintenanceWithDefaults instantiates a new Maintenance object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMaintenanceWithDefaults() *Maintenance { - this := Maintenance{} - return &this -} - -// GetAutoUpdate returns the AutoUpdate field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Maintenance) GetAutoUpdate() (ret MaintenanceGetAutoUpdateRetType) { - ret, _ = o.GetAutoUpdateOk() - return ret -} - -// GetAutoUpdateOk returns a tuple with the AutoUpdate field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Maintenance) GetAutoUpdateOk() (ret MaintenanceGetAutoUpdateRetType, ok bool) { - return getMaintenanceGetAutoUpdateAttributeTypeOk(o.AutoUpdate) -} - -// SetAutoUpdate sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Maintenance) SetAutoUpdate(v MaintenanceGetAutoUpdateRetType) { - setMaintenanceGetAutoUpdateAttributeType(&o.AutoUpdate, v) -} - -// GetTimeWindow returns the TimeWindow field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Maintenance) GetTimeWindow() (ret MaintenanceGetTimeWindowRetType) { - ret, _ = o.GetTimeWindowOk() - return ret -} - -// GetTimeWindowOk returns a tuple with the TimeWindow field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Maintenance) GetTimeWindowOk() (ret MaintenanceGetTimeWindowRetType, ok bool) { - return getMaintenanceGetTimeWindowAttributeTypeOk(o.TimeWindow) -} - -// SetTimeWindow sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Maintenance) SetTimeWindow(v MaintenanceGetTimeWindowRetType) { - setMaintenanceGetTimeWindowAttributeType(&o.TimeWindow, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Maintenance) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getMaintenanceGetAutoUpdateAttributeTypeOk(o.AutoUpdate); ok { - toSerialize["AutoUpdate"] = val - } - if val, ok := getMaintenanceGetTimeWindowAttributeTypeOk(o.TimeWindow); ok { - toSerialize["TimeWindow"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableMaintenance struct { - value *Maintenance - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMaintenance) Get() *Maintenance { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMaintenance) Set(val *Maintenance) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMaintenance) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMaintenance) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableMaintenance(val *Maintenance) *NullableMaintenance { - return &NullableMaintenance{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMaintenance) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMaintenance) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_maintenance_auto_update.go b/services/ske/model_maintenance_auto_update.go deleted file mode 100644 index 741f5be33a..0000000000 --- a/services/ske/model_maintenance_auto_update.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the MaintenanceAutoUpdate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MaintenanceAutoUpdate{} - -/* - types and functions for kubernetesVersion -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceAutoUpdategetKubernetesVersionAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceAutoUpdategetKubernetesVersionArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceAutoUpdategetKubernetesVersionRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMaintenanceAutoUpdategetKubernetesVersionAttributeTypeOk(arg MaintenanceAutoUpdategetKubernetesVersionAttributeType) (ret MaintenanceAutoUpdategetKubernetesVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMaintenanceAutoUpdategetKubernetesVersionAttributeType(arg *MaintenanceAutoUpdategetKubernetesVersionAttributeType, val MaintenanceAutoUpdategetKubernetesVersionRetType) { - *arg = &val -} - -/* - types and functions for machineImageVersion -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceAutoUpdategetMachineImageVersionAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceAutoUpdategetMachineImageVersionArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceAutoUpdategetMachineImageVersionRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getMaintenanceAutoUpdategetMachineImageVersionAttributeTypeOk(arg MaintenanceAutoUpdategetMachineImageVersionAttributeType) (ret MaintenanceAutoUpdategetMachineImageVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setMaintenanceAutoUpdategetMachineImageVersionAttributeType(arg *MaintenanceAutoUpdategetMachineImageVersionAttributeType, val MaintenanceAutoUpdategetMachineImageVersionRetType) { - *arg = &val -} - -// MaintenanceAutoUpdate struct for MaintenanceAutoUpdate -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MaintenanceAutoUpdate struct { - KubernetesVersion MaintenanceAutoUpdategetKubernetesVersionAttributeType `json:"kubernetesVersion,omitempty"` - MachineImageVersion MaintenanceAutoUpdategetMachineImageVersionAttributeType `json:"machineImageVersion,omitempty"` -} - -// NewMaintenanceAutoUpdate instantiates a new MaintenanceAutoUpdate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMaintenanceAutoUpdate() *MaintenanceAutoUpdate { - this := MaintenanceAutoUpdate{} - return &this -} - -// NewMaintenanceAutoUpdateWithDefaults instantiates a new MaintenanceAutoUpdate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewMaintenanceAutoUpdateWithDefaults() *MaintenanceAutoUpdate { - this := MaintenanceAutoUpdate{} - return &this -} - -// GetKubernetesVersion returns the KubernetesVersion field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) GetKubernetesVersion() (res MaintenanceAutoUpdategetKubernetesVersionRetType) { - res, _ = o.GetKubernetesVersionOk() - return -} - -// GetKubernetesVersionOk returns a tuple with the KubernetesVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) GetKubernetesVersionOk() (ret MaintenanceAutoUpdategetKubernetesVersionRetType, ok bool) { - return getMaintenanceAutoUpdategetKubernetesVersionAttributeTypeOk(o.KubernetesVersion) -} - -// HasKubernetesVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) HasKubernetesVersion() bool { - _, ok := o.GetKubernetesVersionOk() - return ok -} - -// SetKubernetesVersion gets a reference to the given bool and assigns it to the KubernetesVersion field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) SetKubernetesVersion(v MaintenanceAutoUpdategetKubernetesVersionRetType) { - setMaintenanceAutoUpdategetKubernetesVersionAttributeType(&o.KubernetesVersion, v) -} - -// GetMachineImageVersion returns the MachineImageVersion field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) GetMachineImageVersion() (res MaintenanceAutoUpdategetMachineImageVersionRetType) { - res, _ = o.GetMachineImageVersionOk() - return -} - -// GetMachineImageVersionOk returns a tuple with the MachineImageVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) GetMachineImageVersionOk() (ret MaintenanceAutoUpdategetMachineImageVersionRetType, ok bool) { - return getMaintenanceAutoUpdategetMachineImageVersionAttributeTypeOk(o.MachineImageVersion) -} - -// HasMachineImageVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) HasMachineImageVersion() bool { - _, ok := o.GetMachineImageVersionOk() - return ok -} - -// SetMachineImageVersion gets a reference to the given bool and assigns it to the MachineImageVersion field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *MaintenanceAutoUpdate) SetMachineImageVersion(v MaintenanceAutoUpdategetMachineImageVersionRetType) { - setMaintenanceAutoUpdategetMachineImageVersionAttributeType(&o.MachineImageVersion, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o MaintenanceAutoUpdate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getMaintenanceAutoUpdategetKubernetesVersionAttributeTypeOk(o.KubernetesVersion); ok { - toSerialize["KubernetesVersion"] = val - } - if val, ok := getMaintenanceAutoUpdategetMachineImageVersionAttributeTypeOk(o.MachineImageVersion); ok { - toSerialize["MachineImageVersion"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableMaintenanceAutoUpdate struct { - value *MaintenanceAutoUpdate - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMaintenanceAutoUpdate) Get() *MaintenanceAutoUpdate { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMaintenanceAutoUpdate) Set(val *MaintenanceAutoUpdate) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMaintenanceAutoUpdate) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMaintenanceAutoUpdate) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableMaintenanceAutoUpdate(val *MaintenanceAutoUpdate) *NullableMaintenanceAutoUpdate { - return &NullableMaintenanceAutoUpdate{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableMaintenanceAutoUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableMaintenanceAutoUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_maintenance_auto_update_test.go b/services/ske/model_maintenance_auto_update_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_maintenance_auto_update_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_maintenance_test.go b/services/ske/model_maintenance_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_maintenance_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_network.go b/services/ske/model_network.go deleted file mode 100644 index f2d660dbaf..0000000000 --- a/services/ske/model_network.go +++ /dev/null @@ -1,267 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Network type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Network{} - -/* - types and functions for cni -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetCniAttributeType = *CNI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetCniArgType = CNI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetCniRetType = CNI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNetworkGetCniAttributeTypeOk(arg NetworkGetCniAttributeType) (ret NetworkGetCniRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNetworkGetCniAttributeType(arg *NetworkGetCniAttributeType, val NetworkGetCniRetType) { - *arg = &val -} - -/* - types and functions for controlPlane -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetControlPlaneAttributeType = *V2ControlPlaneNetwork - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetControlPlaneArgType = V2ControlPlaneNetwork - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetControlPlaneRetType = V2ControlPlaneNetwork - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNetworkGetControlPlaneAttributeTypeOk(arg NetworkGetControlPlaneAttributeType) (ret NetworkGetControlPlaneRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNetworkGetControlPlaneAttributeType(arg *NetworkGetControlPlaneAttributeType, val NetworkGetControlPlaneRetType) { - *arg = &val -} - -/* - types and functions for id -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNetworkGetIdAttributeTypeOk(arg NetworkGetIdAttributeType) (ret NetworkGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNetworkGetIdAttributeType(arg *NetworkGetIdAttributeType, val NetworkGetIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NetworkGetIdRetType = string - -// Network struct for Network -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Network struct { - Cni NetworkGetCniAttributeType `json:"cni,omitempty"` - ControlPlane NetworkGetControlPlaneAttributeType `json:"controlPlane,omitempty"` - Id NetworkGetIdAttributeType `json:"id,omitempty"` -} - -// NewNetwork instantiates a new Network object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNetwork() *Network { - this := Network{} - return &this -} - -// NewNetworkWithDefaults instantiates a new Network object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNetworkWithDefaults() *Network { - this := Network{} - return &this -} - -// GetCni returns the Cni field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) GetCni() (res NetworkGetCniRetType) { - res, _ = o.GetCniOk() - return -} - -// GetCniOk returns a tuple with the Cni field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) GetCniOk() (ret NetworkGetCniRetType, ok bool) { - return getNetworkGetCniAttributeTypeOk(o.Cni) -} - -// HasCni returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) HasCni() bool { - _, ok := o.GetCniOk() - return ok -} - -// SetCni gets a reference to the given CNI and assigns it to the Cni field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) SetCni(v NetworkGetCniRetType) { - setNetworkGetCniAttributeType(&o.Cni, v) -} - -// GetControlPlane returns the ControlPlane field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) GetControlPlane() (res NetworkGetControlPlaneRetType) { - res, _ = o.GetControlPlaneOk() - return -} - -// GetControlPlaneOk returns a tuple with the ControlPlane field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) GetControlPlaneOk() (ret NetworkGetControlPlaneRetType, ok bool) { - return getNetworkGetControlPlaneAttributeTypeOk(o.ControlPlane) -} - -// HasControlPlane returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) HasControlPlane() bool { - _, ok := o.GetControlPlaneOk() - return ok -} - -// SetControlPlane gets a reference to the given V2ControlPlaneNetwork and assigns it to the ControlPlane field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) SetControlPlane(v NetworkGetControlPlaneRetType) { - setNetworkGetControlPlaneAttributeType(&o.ControlPlane, v) -} - -// GetId returns the Id field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) GetId() (res NetworkGetIdRetType) { - res, _ = o.GetIdOk() - return -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) GetIdOk() (ret NetworkGetIdRetType, ok bool) { - return getNetworkGetIdAttributeTypeOk(o.Id) -} - -// HasId returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) HasId() bool { - _, ok := o.GetIdOk() - return ok -} - -// SetId gets a reference to the given string and assigns it to the Id field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Network) SetId(v NetworkGetIdRetType) { - setNetworkGetIdAttributeType(&o.Id, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Network) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getNetworkGetCniAttributeTypeOk(o.Cni); ok { - toSerialize["Cni"] = val - } - if val, ok := getNetworkGetControlPlaneAttributeTypeOk(o.ControlPlane); ok { - toSerialize["ControlPlane"] = val - } - if val, ok := getNetworkGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableNetwork struct { - value *Network - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNetwork) Get() *Network { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNetwork) Set(val *Network) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNetwork) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNetwork) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableNetwork(val *Network) *NullableNetwork { - return &NullableNetwork{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNetwork) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNetwork) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_network_test.go b/services/ske/model_network_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_network_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_nodepool.go b/services/ske/model_nodepool.go deleted file mode 100644 index 5457565c81..0000000000 --- a/services/ske/model_nodepool.go +++ /dev/null @@ -1,828 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Nodepool type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Nodepool{} - -/* - types and functions for allowSystemComponents -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolgetAllowSystemComponentsAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolgetAllowSystemComponentsArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolgetAllowSystemComponentsRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolgetAllowSystemComponentsAttributeTypeOk(arg NodepoolgetAllowSystemComponentsAttributeType) (ret NodepoolgetAllowSystemComponentsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolgetAllowSystemComponentsAttributeType(arg *NodepoolgetAllowSystemComponentsAttributeType, val NodepoolgetAllowSystemComponentsRetType) { - *arg = &val -} - -/* - types and functions for availabilityZones -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetAvailabilityZonesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetAvailabilityZonesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetAvailabilityZonesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetAvailabilityZonesAttributeTypeOk(arg NodepoolGetAvailabilityZonesAttributeType) (ret NodepoolGetAvailabilityZonesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetAvailabilityZonesAttributeType(arg *NodepoolGetAvailabilityZonesAttributeType, val NodepoolGetAvailabilityZonesRetType) { - *arg = &val -} - -/* - types and functions for cri -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetCriAttributeType = *CRI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetCriArgType = CRI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetCriRetType = CRI - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetCriAttributeTypeOk(arg NodepoolGetCriAttributeType) (ret NodepoolGetCriRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetCriAttributeType(arg *NodepoolGetCriAttributeType, val NodepoolGetCriRetType) { - *arg = &val -} - -/* - types and functions for kubernetes -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetKubernetesAttributeType = *NodepoolKubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetKubernetesArgType = NodepoolKubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetKubernetesRetType = NodepoolKubernetes - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetKubernetesAttributeTypeOk(arg NodepoolGetKubernetesAttributeType) (ret NodepoolGetKubernetesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetKubernetesAttributeType(arg *NodepoolGetKubernetesAttributeType, val NodepoolGetKubernetesRetType) { - *arg = &val -} - -/* - types and functions for labels -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetLabelsAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetLabelsArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetLabelsRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetLabelsAttributeTypeOk(arg NodepoolGetLabelsAttributeType) (ret NodepoolGetLabelsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetLabelsAttributeType(arg *NodepoolGetLabelsAttributeType, val NodepoolGetLabelsRetType) { - *arg = &val -} - -/* - types and functions for machine -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMachineAttributeType = *Machine - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMachineArgType = Machine - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMachineRetType = Machine - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetMachineAttributeTypeOk(arg NodepoolGetMachineAttributeType) (ret NodepoolGetMachineRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetMachineAttributeType(arg *NodepoolGetMachineAttributeType, val NodepoolGetMachineRetType) { - *arg = &val -} - -/* - types and functions for maxSurge -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaxSurgeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaxSurgeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaxSurgeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetMaxSurgeAttributeTypeOk(arg NodepoolGetMaxSurgeAttributeType) (ret NodepoolGetMaxSurgeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetMaxSurgeAttributeType(arg *NodepoolGetMaxSurgeAttributeType, val NodepoolGetMaxSurgeRetType) { - *arg = &val -} - -/* - types and functions for maxUnavailable -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaxUnavailableAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaxUnavailableArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaxUnavailableRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetMaxUnavailableAttributeTypeOk(arg NodepoolGetMaxUnavailableAttributeType) (ret NodepoolGetMaxUnavailableRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetMaxUnavailableAttributeType(arg *NodepoolGetMaxUnavailableAttributeType, val NodepoolGetMaxUnavailableRetType) { - *arg = &val -} - -/* - types and functions for maximum -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaximumAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaximumArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMaximumRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetMaximumAttributeTypeOk(arg NodepoolGetMaximumAttributeType) (ret NodepoolGetMaximumRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetMaximumAttributeType(arg *NodepoolGetMaximumAttributeType, val NodepoolGetMaximumRetType) { - *arg = &val -} - -/* - types and functions for minimum -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMinimumAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMinimumArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetMinimumRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetMinimumAttributeTypeOk(arg NodepoolGetMinimumAttributeType) (ret NodepoolGetMinimumRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetMinimumAttributeType(arg *NodepoolGetMinimumAttributeType, val NodepoolGetMinimumRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetNameAttributeTypeOk(arg NodepoolGetNameAttributeType) (ret NodepoolGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetNameAttributeType(arg *NodepoolGetNameAttributeType, val NodepoolGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetNameRetType = string - -/* - types and functions for taints -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetTaintsAttributeType = *[]Taint - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetTaintsArgType = []Taint - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetTaintsRetType = []Taint - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetTaintsAttributeTypeOk(arg NodepoolGetTaintsAttributeType) (ret NodepoolGetTaintsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetTaintsAttributeType(arg *NodepoolGetTaintsAttributeType, val NodepoolGetTaintsRetType) { - *arg = &val -} - -/* - types and functions for volume -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetVolumeAttributeType = *Volume - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetVolumeArgType = Volume - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolGetVolumeRetType = Volume - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolGetVolumeAttributeTypeOk(arg NodepoolGetVolumeAttributeType) (ret NodepoolGetVolumeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolGetVolumeAttributeType(arg *NodepoolGetVolumeAttributeType, val NodepoolGetVolumeRetType) { - *arg = &val -} - -// Nodepool struct for Nodepool -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Nodepool struct { - // This needs to be true for at least one node pool. - AllowSystemComponents NodepoolgetAllowSystemComponentsAttributeType `json:"allowSystemComponents,omitempty"` - // REQUIRED - AvailabilityZones NodepoolGetAvailabilityZonesAttributeType `json:"availabilityZones" required:"true"` - Cri NodepoolGetCriAttributeType `json:"cri,omitempty"` - Kubernetes NodepoolGetKubernetesAttributeType `json:"kubernetes,omitempty"` - Labels NodepoolGetLabelsAttributeType `json:"labels,omitempty"` - // REQUIRED - Machine NodepoolGetMachineAttributeType `json:"machine" required:"true"` - // Can be cast to int32 without loss of precision. - MaxSurge NodepoolGetMaxSurgeAttributeType `json:"maxSurge,omitempty"` - // Can be cast to int32 without loss of precision. - MaxUnavailable NodepoolGetMaxUnavailableAttributeType `json:"maxUnavailable,omitempty"` - // Maximum number of nodes in the pool. During runtime, the cluster will never scale beyond 1000 nodes, even if the total maximum would allow for a larger cluster. - // Can be cast to int32 without loss of precision. - // REQUIRED - Maximum NodepoolGetMaximumAttributeType `json:"maximum" required:"true"` - // Minimum number of nodes in the pool. The sum of all minima must not exceed 1000. - // Can be cast to int32 without loss of precision. - // REQUIRED - Minimum NodepoolGetMinimumAttributeType `json:"minimum" required:"true"` - // Maximum 15 chars - // REQUIRED - Name NodepoolGetNameAttributeType `json:"name" required:"true"` - Taints NodepoolGetTaintsAttributeType `json:"taints,omitempty"` - // REQUIRED - Volume NodepoolGetVolumeAttributeType `json:"volume" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Nodepool Nodepool - -// NewNodepool instantiates a new Nodepool object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNodepool(availabilityZones NodepoolGetAvailabilityZonesArgType, machine NodepoolGetMachineArgType, maximum NodepoolGetMaximumArgType, minimum NodepoolGetMinimumArgType, name NodepoolGetNameArgType, volume NodepoolGetVolumeArgType) *Nodepool { - this := Nodepool{} - setNodepoolGetAvailabilityZonesAttributeType(&this.AvailabilityZones, availabilityZones) - setNodepoolGetMachineAttributeType(&this.Machine, machine) - setNodepoolGetMaximumAttributeType(&this.Maximum, maximum) - setNodepoolGetMinimumAttributeType(&this.Minimum, minimum) - setNodepoolGetNameAttributeType(&this.Name, name) - setNodepoolGetVolumeAttributeType(&this.Volume, volume) - return &this -} - -// NewNodepoolWithDefaults instantiates a new Nodepool object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNodepoolWithDefaults() *Nodepool { - this := Nodepool{} - return &this -} - -// GetAllowSystemComponents returns the AllowSystemComponents field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetAllowSystemComponents() (res NodepoolgetAllowSystemComponentsRetType) { - res, _ = o.GetAllowSystemComponentsOk() - return -} - -// GetAllowSystemComponentsOk returns a tuple with the AllowSystemComponents field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetAllowSystemComponentsOk() (ret NodepoolgetAllowSystemComponentsRetType, ok bool) { - return getNodepoolgetAllowSystemComponentsAttributeTypeOk(o.AllowSystemComponents) -} - -// HasAllowSystemComponents returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) HasAllowSystemComponents() bool { - _, ok := o.GetAllowSystemComponentsOk() - return ok -} - -// SetAllowSystemComponents gets a reference to the given bool and assigns it to the AllowSystemComponents field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetAllowSystemComponents(v NodepoolgetAllowSystemComponentsRetType) { - setNodepoolgetAllowSystemComponentsAttributeType(&o.AllowSystemComponents, v) -} - -// GetAvailabilityZones returns the AvailabilityZones field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetAvailabilityZones() (ret NodepoolGetAvailabilityZonesRetType) { - ret, _ = o.GetAvailabilityZonesOk() - return ret -} - -// GetAvailabilityZonesOk returns a tuple with the AvailabilityZones field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetAvailabilityZonesOk() (ret NodepoolGetAvailabilityZonesRetType, ok bool) { - return getNodepoolGetAvailabilityZonesAttributeTypeOk(o.AvailabilityZones) -} - -// SetAvailabilityZones sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetAvailabilityZones(v NodepoolGetAvailabilityZonesRetType) { - setNodepoolGetAvailabilityZonesAttributeType(&o.AvailabilityZones, v) -} - -// GetCri returns the Cri field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetCri() (res NodepoolGetCriRetType) { - res, _ = o.GetCriOk() - return -} - -// GetCriOk returns a tuple with the Cri field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetCriOk() (ret NodepoolGetCriRetType, ok bool) { - return getNodepoolGetCriAttributeTypeOk(o.Cri) -} - -// HasCri returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) HasCri() bool { - _, ok := o.GetCriOk() - return ok -} - -// SetCri gets a reference to the given CRI and assigns it to the Cri field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetCri(v NodepoolGetCriRetType) { - setNodepoolGetCriAttributeType(&o.Cri, v) -} - -// GetKubernetes returns the Kubernetes field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetKubernetes() (res NodepoolGetKubernetesRetType) { - res, _ = o.GetKubernetesOk() - return -} - -// GetKubernetesOk returns a tuple with the Kubernetes field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetKubernetesOk() (ret NodepoolGetKubernetesRetType, ok bool) { - return getNodepoolGetKubernetesAttributeTypeOk(o.Kubernetes) -} - -// HasKubernetes returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) HasKubernetes() bool { - _, ok := o.GetKubernetesOk() - return ok -} - -// SetKubernetes gets a reference to the given NodepoolKubernetes and assigns it to the Kubernetes field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetKubernetes(v NodepoolGetKubernetesRetType) { - setNodepoolGetKubernetesAttributeType(&o.Kubernetes, v) -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetLabels() (res NodepoolGetLabelsRetType) { - res, _ = o.GetLabelsOk() - return -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetLabelsOk() (ret NodepoolGetLabelsRetType, ok bool) { - return getNodepoolGetLabelsAttributeTypeOk(o.Labels) -} - -// HasLabels returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) HasLabels() bool { - _, ok := o.GetLabelsOk() - return ok -} - -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetLabels(v NodepoolGetLabelsRetType) { - setNodepoolGetLabelsAttributeType(&o.Labels, v) -} - -// GetMachine returns the Machine field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMachine() (ret NodepoolGetMachineRetType) { - ret, _ = o.GetMachineOk() - return ret -} - -// GetMachineOk returns a tuple with the Machine field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMachineOk() (ret NodepoolGetMachineRetType, ok bool) { - return getNodepoolGetMachineAttributeTypeOk(o.Machine) -} - -// SetMachine sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetMachine(v NodepoolGetMachineRetType) { - setNodepoolGetMachineAttributeType(&o.Machine, v) -} - -// GetMaxSurge returns the MaxSurge field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMaxSurge() (res NodepoolGetMaxSurgeRetType) { - res, _ = o.GetMaxSurgeOk() - return -} - -// GetMaxSurgeOk returns a tuple with the MaxSurge field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMaxSurgeOk() (ret NodepoolGetMaxSurgeRetType, ok bool) { - return getNodepoolGetMaxSurgeAttributeTypeOk(o.MaxSurge) -} - -// HasMaxSurge returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) HasMaxSurge() bool { - _, ok := o.GetMaxSurgeOk() - return ok -} - -// SetMaxSurge gets a reference to the given int64 and assigns it to the MaxSurge field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetMaxSurge(v NodepoolGetMaxSurgeRetType) { - setNodepoolGetMaxSurgeAttributeType(&o.MaxSurge, v) -} - -// GetMaxUnavailable returns the MaxUnavailable field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMaxUnavailable() (res NodepoolGetMaxUnavailableRetType) { - res, _ = o.GetMaxUnavailableOk() - return -} - -// GetMaxUnavailableOk returns a tuple with the MaxUnavailable field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMaxUnavailableOk() (ret NodepoolGetMaxUnavailableRetType, ok bool) { - return getNodepoolGetMaxUnavailableAttributeTypeOk(o.MaxUnavailable) -} - -// HasMaxUnavailable returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) HasMaxUnavailable() bool { - _, ok := o.GetMaxUnavailableOk() - return ok -} - -// SetMaxUnavailable gets a reference to the given int64 and assigns it to the MaxUnavailable field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetMaxUnavailable(v NodepoolGetMaxUnavailableRetType) { - setNodepoolGetMaxUnavailableAttributeType(&o.MaxUnavailable, v) -} - -// GetMaximum returns the Maximum field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMaximum() (ret NodepoolGetMaximumRetType) { - ret, _ = o.GetMaximumOk() - return ret -} - -// GetMaximumOk returns a tuple with the Maximum field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMaximumOk() (ret NodepoolGetMaximumRetType, ok bool) { - return getNodepoolGetMaximumAttributeTypeOk(o.Maximum) -} - -// SetMaximum sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetMaximum(v NodepoolGetMaximumRetType) { - setNodepoolGetMaximumAttributeType(&o.Maximum, v) -} - -// GetMinimum returns the Minimum field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMinimum() (ret NodepoolGetMinimumRetType) { - ret, _ = o.GetMinimumOk() - return ret -} - -// GetMinimumOk returns a tuple with the Minimum field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetMinimumOk() (ret NodepoolGetMinimumRetType, ok bool) { - return getNodepoolGetMinimumAttributeTypeOk(o.Minimum) -} - -// SetMinimum sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetMinimum(v NodepoolGetMinimumRetType) { - setNodepoolGetMinimumAttributeType(&o.Minimum, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetName() (ret NodepoolGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetNameOk() (ret NodepoolGetNameRetType, ok bool) { - return getNodepoolGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetName(v NodepoolGetNameRetType) { - setNodepoolGetNameAttributeType(&o.Name, v) -} - -// GetTaints returns the Taints field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetTaints() (res NodepoolGetTaintsRetType) { - res, _ = o.GetTaintsOk() - return -} - -// GetTaintsOk returns a tuple with the Taints field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetTaintsOk() (ret NodepoolGetTaintsRetType, ok bool) { - return getNodepoolGetTaintsAttributeTypeOk(o.Taints) -} - -// HasTaints returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) HasTaints() bool { - _, ok := o.GetTaintsOk() - return ok -} - -// SetTaints gets a reference to the given []Taint and assigns it to the Taints field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetTaints(v NodepoolGetTaintsRetType) { - setNodepoolGetTaintsAttributeType(&o.Taints, v) -} - -// GetVolume returns the Volume field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetVolume() (ret NodepoolGetVolumeRetType) { - ret, _ = o.GetVolumeOk() - return ret -} - -// GetVolumeOk returns a tuple with the Volume field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) GetVolumeOk() (ret NodepoolGetVolumeRetType, ok bool) { - return getNodepoolGetVolumeAttributeTypeOk(o.Volume) -} - -// SetVolume sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Nodepool) SetVolume(v NodepoolGetVolumeRetType) { - setNodepoolGetVolumeAttributeType(&o.Volume, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Nodepool) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getNodepoolgetAllowSystemComponentsAttributeTypeOk(o.AllowSystemComponents); ok { - toSerialize["AllowSystemComponents"] = val - } - if val, ok := getNodepoolGetAvailabilityZonesAttributeTypeOk(o.AvailabilityZones); ok { - toSerialize["AvailabilityZones"] = val - } - if val, ok := getNodepoolGetCriAttributeTypeOk(o.Cri); ok { - toSerialize["Cri"] = val - } - if val, ok := getNodepoolGetKubernetesAttributeTypeOk(o.Kubernetes); ok { - toSerialize["Kubernetes"] = val - } - if val, ok := getNodepoolGetLabelsAttributeTypeOk(o.Labels); ok { - toSerialize["Labels"] = val - } - if val, ok := getNodepoolGetMachineAttributeTypeOk(o.Machine); ok { - toSerialize["Machine"] = val - } - if val, ok := getNodepoolGetMaxSurgeAttributeTypeOk(o.MaxSurge); ok { - toSerialize["MaxSurge"] = val - } - if val, ok := getNodepoolGetMaxUnavailableAttributeTypeOk(o.MaxUnavailable); ok { - toSerialize["MaxUnavailable"] = val - } - if val, ok := getNodepoolGetMaximumAttributeTypeOk(o.Maximum); ok { - toSerialize["Maximum"] = val - } - if val, ok := getNodepoolGetMinimumAttributeTypeOk(o.Minimum); ok { - toSerialize["Minimum"] = val - } - if val, ok := getNodepoolGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getNodepoolGetTaintsAttributeTypeOk(o.Taints); ok { - toSerialize["Taints"] = val - } - if val, ok := getNodepoolGetVolumeAttributeTypeOk(o.Volume); ok { - toSerialize["Volume"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableNodepool struct { - value *Nodepool - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNodepool) Get() *Nodepool { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNodepool) Set(val *Nodepool) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNodepool) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNodepool) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableNodepool(val *Nodepool) *NullableNodepool { - return &NullableNodepool{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNodepool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNodepool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_nodepool_kubernetes.go b/services/ske/model_nodepool_kubernetes.go deleted file mode 100644 index 023017937e..0000000000 --- a/services/ske/model_nodepool_kubernetes.go +++ /dev/null @@ -1,152 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the NodepoolKubernetes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &NodepoolKubernetes{} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolKubernetesGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getNodepoolKubernetesGetVersionAttributeTypeOk(arg NodepoolKubernetesGetVersionAttributeType) (ret NodepoolKubernetesGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setNodepoolKubernetesGetVersionAttributeType(arg *NodepoolKubernetesGetVersionAttributeType, val NodepoolKubernetesGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolKubernetesGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolKubernetesGetVersionRetType = string - -// NodepoolKubernetes struct for NodepoolKubernetes -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NodepoolKubernetes struct { - // Override the Kubernetes version for the Kubelet of this Nodepool. Version must be equal or lower than the version of the cluster. Only one minor version difference to the version of the cluster is allowed. Downgrade of existing Nodepools is prohibited. - Version NodepoolKubernetesGetVersionAttributeType `json:"version,omitempty"` -} - -// NewNodepoolKubernetes instantiates a new NodepoolKubernetes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNodepoolKubernetes() *NodepoolKubernetes { - this := NodepoolKubernetes{} - return &this -} - -// NewNodepoolKubernetesWithDefaults instantiates a new NodepoolKubernetes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNodepoolKubernetesWithDefaults() *NodepoolKubernetes { - this := NodepoolKubernetes{} - return &this -} - -// GetVersion returns the Version field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *NodepoolKubernetes) GetVersion() (res NodepoolKubernetesGetVersionRetType) { - res, _ = o.GetVersionOk() - return -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *NodepoolKubernetes) GetVersionOk() (ret NodepoolKubernetesGetVersionRetType, ok bool) { - return getNodepoolKubernetesGetVersionAttributeTypeOk(o.Version) -} - -// HasVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *NodepoolKubernetes) HasVersion() bool { - _, ok := o.GetVersionOk() - return ok -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *NodepoolKubernetes) SetVersion(v NodepoolKubernetesGetVersionRetType) { - setNodepoolKubernetesGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o NodepoolKubernetes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getNodepoolKubernetesGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableNodepoolKubernetes struct { - value *NodepoolKubernetes - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNodepoolKubernetes) Get() *NodepoolKubernetes { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNodepoolKubernetes) Set(val *NodepoolKubernetes) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNodepoolKubernetes) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNodepoolKubernetes) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableNodepoolKubernetes(val *NodepoolKubernetes) *NullableNodepoolKubernetes { - return &NullableNodepoolKubernetes{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableNodepoolKubernetes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableNodepoolKubernetes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_nodepool_kubernetes_test.go b/services/ske/model_nodepool_kubernetes_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_nodepool_kubernetes_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_nodepool_test.go b/services/ske/model_nodepool_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_nodepool_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_observability.go b/services/ske/model_observability.go deleted file mode 100644 index 31632d02b6..0000000000 --- a/services/ske/model_observability.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Observability type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Observability{} - -/* - types and functions for enabled -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ObservabilitygetEnabledAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ObservabilitygetEnabledArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ObservabilitygetEnabledRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getObservabilitygetEnabledAttributeTypeOk(arg ObservabilitygetEnabledAttributeType) (ret ObservabilitygetEnabledRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setObservabilitygetEnabledAttributeType(arg *ObservabilitygetEnabledAttributeType, val ObservabilitygetEnabledRetType) { - *arg = &val -} - -/* - types and functions for instanceId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ObservabilityGetInstanceIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getObservabilityGetInstanceIdAttributeTypeOk(arg ObservabilityGetInstanceIdAttributeType) (ret ObservabilityGetInstanceIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setObservabilityGetInstanceIdAttributeType(arg *ObservabilityGetInstanceIdAttributeType, val ObservabilityGetInstanceIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ObservabilityGetInstanceIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ObservabilityGetInstanceIdRetType = string - -// Observability struct for Observability -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Observability struct { - // Enables the Observability extension. - // REQUIRED - Enabled ObservabilitygetEnabledAttributeType `json:"enabled" required:"true"` - // Instance ID to choose which Observability instance is used. - // REQUIRED - InstanceId ObservabilityGetInstanceIdAttributeType `json:"instanceId" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Observability Observability - -// NewObservability instantiates a new Observability object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewObservability(enabled ObservabilitygetEnabledArgType, instanceId ObservabilityGetInstanceIdArgType) *Observability { - this := Observability{} - setObservabilitygetEnabledAttributeType(&this.Enabled, enabled) - setObservabilityGetInstanceIdAttributeType(&this.InstanceId, instanceId) - return &this -} - -// NewObservabilityWithDefaults instantiates a new Observability object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewObservabilityWithDefaults() *Observability { - this := Observability{} - return &this -} - -// GetEnabled returns the Enabled field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Observability) GetEnabled() (ret ObservabilitygetEnabledRetType) { - ret, _ = o.GetEnabledOk() - return ret -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Observability) GetEnabledOk() (ret ObservabilitygetEnabledRetType, ok bool) { - return getObservabilitygetEnabledAttributeTypeOk(o.Enabled) -} - -// SetEnabled sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Observability) SetEnabled(v ObservabilitygetEnabledRetType) { - setObservabilitygetEnabledAttributeType(&o.Enabled, v) -} - -// GetInstanceId returns the InstanceId field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Observability) GetInstanceId() (ret ObservabilityGetInstanceIdRetType) { - ret, _ = o.GetInstanceIdOk() - return ret -} - -// GetInstanceIdOk returns a tuple with the InstanceId field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Observability) GetInstanceIdOk() (ret ObservabilityGetInstanceIdRetType, ok bool) { - return getObservabilityGetInstanceIdAttributeTypeOk(o.InstanceId) -} - -// SetInstanceId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Observability) SetInstanceId(v ObservabilityGetInstanceIdRetType) { - setObservabilityGetInstanceIdAttributeType(&o.InstanceId, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Observability) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getObservabilitygetEnabledAttributeTypeOk(o.Enabled); ok { - toSerialize["Enabled"] = val - } - if val, ok := getObservabilityGetInstanceIdAttributeTypeOk(o.InstanceId); ok { - toSerialize["InstanceId"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableObservability struct { - value *Observability - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableObservability) Get() *Observability { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableObservability) Set(val *Observability) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableObservability) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableObservability) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableObservability(val *Observability) *NullableObservability { - return &NullableObservability{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableObservability) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableObservability) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_observability_test.go b/services/ske/model_observability_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_observability_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_provider_options.go b/services/ske/model_provider_options.go deleted file mode 100644 index 186e66d96d..0000000000 --- a/services/ske/model_provider_options.go +++ /dev/null @@ -1,383 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the ProviderOptions type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProviderOptions{} - -/* - types and functions for availabilityZones -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetAvailabilityZonesAttributeType = *[]AvailabilityZone - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetAvailabilityZonesArgType = []AvailabilityZone - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetAvailabilityZonesRetType = []AvailabilityZone - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getProviderOptionsGetAvailabilityZonesAttributeTypeOk(arg ProviderOptionsGetAvailabilityZonesAttributeType) (ret ProviderOptionsGetAvailabilityZonesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setProviderOptionsGetAvailabilityZonesAttributeType(arg *ProviderOptionsGetAvailabilityZonesAttributeType, val ProviderOptionsGetAvailabilityZonesRetType) { - *arg = &val -} - -/* - types and functions for kubernetesVersions -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetKubernetesVersionsAttributeType = *[]KubernetesVersion - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetKubernetesVersionsArgType = []KubernetesVersion - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetKubernetesVersionsRetType = []KubernetesVersion - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getProviderOptionsGetKubernetesVersionsAttributeTypeOk(arg ProviderOptionsGetKubernetesVersionsAttributeType) (ret ProviderOptionsGetKubernetesVersionsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setProviderOptionsGetKubernetesVersionsAttributeType(arg *ProviderOptionsGetKubernetesVersionsAttributeType, val ProviderOptionsGetKubernetesVersionsRetType) { - *arg = &val -} - -/* - types and functions for machineImages -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetMachineImagesAttributeType = *[]MachineImage - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetMachineImagesArgType = []MachineImage - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetMachineImagesRetType = []MachineImage - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getProviderOptionsGetMachineImagesAttributeTypeOk(arg ProviderOptionsGetMachineImagesAttributeType) (ret ProviderOptionsGetMachineImagesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setProviderOptionsGetMachineImagesAttributeType(arg *ProviderOptionsGetMachineImagesAttributeType, val ProviderOptionsGetMachineImagesRetType) { - *arg = &val -} - -/* - types and functions for machineTypes -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetMachineTypesAttributeType = *[]MachineType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetMachineTypesArgType = []MachineType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetMachineTypesRetType = []MachineType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getProviderOptionsGetMachineTypesAttributeTypeOk(arg ProviderOptionsGetMachineTypesAttributeType) (ret ProviderOptionsGetMachineTypesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setProviderOptionsGetMachineTypesAttributeType(arg *ProviderOptionsGetMachineTypesAttributeType, val ProviderOptionsGetMachineTypesRetType) { - *arg = &val -} - -/* - types and functions for volumeTypes -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetVolumeTypesAttributeType = *[]VolumeType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetVolumeTypesArgType = []VolumeType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptionsGetVolumeTypesRetType = []VolumeType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getProviderOptionsGetVolumeTypesAttributeTypeOk(arg ProviderOptionsGetVolumeTypesAttributeType) (ret ProviderOptionsGetVolumeTypesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setProviderOptionsGetVolumeTypesAttributeType(arg *ProviderOptionsGetVolumeTypesAttributeType, val ProviderOptionsGetVolumeTypesRetType) { - *arg = &val -} - -// ProviderOptions struct for ProviderOptions -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ProviderOptions struct { - AvailabilityZones ProviderOptionsGetAvailabilityZonesAttributeType `json:"availabilityZones,omitempty"` - KubernetesVersions ProviderOptionsGetKubernetesVersionsAttributeType `json:"kubernetesVersions,omitempty"` - MachineImages ProviderOptionsGetMachineImagesAttributeType `json:"machineImages,omitempty"` - MachineTypes ProviderOptionsGetMachineTypesAttributeType `json:"machineTypes,omitempty"` - VolumeTypes ProviderOptionsGetVolumeTypesAttributeType `json:"volumeTypes,omitempty"` -} - -// NewProviderOptions instantiates a new ProviderOptions object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewProviderOptions() *ProviderOptions { - this := ProviderOptions{} - return &this -} - -// NewProviderOptionsWithDefaults instantiates a new ProviderOptions object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewProviderOptionsWithDefaults() *ProviderOptions { - this := ProviderOptions{} - return &this -} - -// GetAvailabilityZones returns the AvailabilityZones field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetAvailabilityZones() (res ProviderOptionsGetAvailabilityZonesRetType) { - res, _ = o.GetAvailabilityZonesOk() - return -} - -// GetAvailabilityZonesOk returns a tuple with the AvailabilityZones field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetAvailabilityZonesOk() (ret ProviderOptionsGetAvailabilityZonesRetType, ok bool) { - return getProviderOptionsGetAvailabilityZonesAttributeTypeOk(o.AvailabilityZones) -} - -// HasAvailabilityZones returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) HasAvailabilityZones() bool { - _, ok := o.GetAvailabilityZonesOk() - return ok -} - -// SetAvailabilityZones gets a reference to the given []AvailabilityZone and assigns it to the AvailabilityZones field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) SetAvailabilityZones(v ProviderOptionsGetAvailabilityZonesRetType) { - setProviderOptionsGetAvailabilityZonesAttributeType(&o.AvailabilityZones, v) -} - -// GetKubernetesVersions returns the KubernetesVersions field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetKubernetesVersions() (res ProviderOptionsGetKubernetesVersionsRetType) { - res, _ = o.GetKubernetesVersionsOk() - return -} - -// GetKubernetesVersionsOk returns a tuple with the KubernetesVersions field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetKubernetesVersionsOk() (ret ProviderOptionsGetKubernetesVersionsRetType, ok bool) { - return getProviderOptionsGetKubernetesVersionsAttributeTypeOk(o.KubernetesVersions) -} - -// HasKubernetesVersions returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) HasKubernetesVersions() bool { - _, ok := o.GetKubernetesVersionsOk() - return ok -} - -// SetKubernetesVersions gets a reference to the given []KubernetesVersion and assigns it to the KubernetesVersions field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) SetKubernetesVersions(v ProviderOptionsGetKubernetesVersionsRetType) { - setProviderOptionsGetKubernetesVersionsAttributeType(&o.KubernetesVersions, v) -} - -// GetMachineImages returns the MachineImages field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetMachineImages() (res ProviderOptionsGetMachineImagesRetType) { - res, _ = o.GetMachineImagesOk() - return -} - -// GetMachineImagesOk returns a tuple with the MachineImages field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetMachineImagesOk() (ret ProviderOptionsGetMachineImagesRetType, ok bool) { - return getProviderOptionsGetMachineImagesAttributeTypeOk(o.MachineImages) -} - -// HasMachineImages returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) HasMachineImages() bool { - _, ok := o.GetMachineImagesOk() - return ok -} - -// SetMachineImages gets a reference to the given []MachineImage and assigns it to the MachineImages field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) SetMachineImages(v ProviderOptionsGetMachineImagesRetType) { - setProviderOptionsGetMachineImagesAttributeType(&o.MachineImages, v) -} - -// GetMachineTypes returns the MachineTypes field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetMachineTypes() (res ProviderOptionsGetMachineTypesRetType) { - res, _ = o.GetMachineTypesOk() - return -} - -// GetMachineTypesOk returns a tuple with the MachineTypes field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetMachineTypesOk() (ret ProviderOptionsGetMachineTypesRetType, ok bool) { - return getProviderOptionsGetMachineTypesAttributeTypeOk(o.MachineTypes) -} - -// HasMachineTypes returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) HasMachineTypes() bool { - _, ok := o.GetMachineTypesOk() - return ok -} - -// SetMachineTypes gets a reference to the given []MachineType and assigns it to the MachineTypes field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) SetMachineTypes(v ProviderOptionsGetMachineTypesRetType) { - setProviderOptionsGetMachineTypesAttributeType(&o.MachineTypes, v) -} - -// GetVolumeTypes returns the VolumeTypes field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetVolumeTypes() (res ProviderOptionsGetVolumeTypesRetType) { - res, _ = o.GetVolumeTypesOk() - return -} - -// GetVolumeTypesOk returns a tuple with the VolumeTypes field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) GetVolumeTypesOk() (ret ProviderOptionsGetVolumeTypesRetType, ok bool) { - return getProviderOptionsGetVolumeTypesAttributeTypeOk(o.VolumeTypes) -} - -// HasVolumeTypes returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) HasVolumeTypes() bool { - _, ok := o.GetVolumeTypesOk() - return ok -} - -// SetVolumeTypes gets a reference to the given []VolumeType and assigns it to the VolumeTypes field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ProviderOptions) SetVolumeTypes(v ProviderOptionsGetVolumeTypesRetType) { - setProviderOptionsGetVolumeTypesAttributeType(&o.VolumeTypes, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ProviderOptions) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getProviderOptionsGetAvailabilityZonesAttributeTypeOk(o.AvailabilityZones); ok { - toSerialize["AvailabilityZones"] = val - } - if val, ok := getProviderOptionsGetKubernetesVersionsAttributeTypeOk(o.KubernetesVersions); ok { - toSerialize["KubernetesVersions"] = val - } - if val, ok := getProviderOptionsGetMachineImagesAttributeTypeOk(o.MachineImages); ok { - toSerialize["MachineImages"] = val - } - if val, ok := getProviderOptionsGetMachineTypesAttributeTypeOk(o.MachineTypes); ok { - toSerialize["MachineTypes"] = val - } - if val, ok := getProviderOptionsGetVolumeTypesAttributeTypeOk(o.VolumeTypes); ok { - toSerialize["VolumeTypes"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableProviderOptions struct { - value *ProviderOptions - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableProviderOptions) Get() *ProviderOptions { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableProviderOptions) Set(val *ProviderOptions) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableProviderOptions) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableProviderOptions) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableProviderOptions(val *ProviderOptions) *NullableProviderOptions { - return &NullableProviderOptions{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableProviderOptions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableProviderOptions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_provider_options_test.go b/services/ske/model_provider_options_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_provider_options_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_runtime_error.go b/services/ske/model_runtime_error.go deleted file mode 100644 index f06d7f08cd..0000000000 --- a/services/ske/model_runtime_error.go +++ /dev/null @@ -1,416 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "fmt" -) - -// checks if the RuntimeError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RuntimeError{} - -/* - types and functions for code -*/ - -// isEnum - -// RuntimeErrorCode - Code: `SKE_UNSPECIFIED` Message: \"An error occurred. Please open a support ticket if this error persists.\" - Code: `SKE_TMP_AUTH_ERROR` Message: \"Authentication failed. This is a temporary error. Please wait while the system recovers.\" - Code: `SKE_QUOTA_EXCEEDED` Message: \"Your project's resource quotas are exhausted. Please make sure your quota is sufficient for the ordered cluster.\" - Code: `SKE_OBSERVABILITY_INSTANCE_NOT_FOUND` Message: \"The provided Observability instance could not be found.\" - Code: `SKE_RATE_LIMITS` Message: \"While provisioning your cluster, request rate limits where incurred. Please wait while the system recovers.\" - Code: `SKE_INFRA_ERROR` Message: \"An error occurred with the underlying infrastructure. Please open a support ticket if this error persists.\" - Code: `SKE_REMAINING_RESOURCES` Message: \"There are remaining Kubernetes resources in your cluster that prevent deletion. Please make sure to remove them.\" - Code: `SKE_CONFIGURATION_PROBLEM` Message: \"A configuration error occurred. Please open a support ticket if this error persists.\" - Code: `SKE_UNREADY_NODES` Message: \"Not all worker nodes are ready. Please open a support ticket if this error persists.\" - Code: `SKE_API_SERVER_ERROR` Message: \"The Kubernetes API server is not reporting readiness. Please open a support ticket if this error persists.\" - Code: `SKE_DNS_ZONE_NOT_FOUND` Message: \"The provided DNS zone for the STACKIT DNS extension could not be found. Please ensure you defined a valid domain that belongs to a STACKIT DNS zone.\" -// value type for enums -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorCode string - -// List of Code -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_UNSPECIFIED RuntimeErrorCode = "SKE_UNSPECIFIED" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_TMP_AUTH_ERROR RuntimeErrorCode = "SKE_TMP_AUTH_ERROR" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_QUOTA_EXCEEDED RuntimeErrorCode = "SKE_QUOTA_EXCEEDED" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_OBSERVABILITY_INSTANCE_NOT_FOUND RuntimeErrorCode = "SKE_OBSERVABILITY_INSTANCE_NOT_FOUND" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_RATE_LIMITS RuntimeErrorCode = "SKE_RATE_LIMITS" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_INFRA_ERROR RuntimeErrorCode = "SKE_INFRA_ERROR" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_REMAINING_RESOURCES RuntimeErrorCode = "SKE_REMAINING_RESOURCES" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_CONFIGURATION_PROBLEM RuntimeErrorCode = "SKE_CONFIGURATION_PROBLEM" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_UNREADY_NODES RuntimeErrorCode = "SKE_UNREADY_NODES" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_API_SERVER_ERROR RuntimeErrorCode = "SKE_API_SERVER_ERROR" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - RUNTIMEERRORCODE_DNS_ZONE_NOT_FOUND RuntimeErrorCode = "SKE_DNS_ZONE_NOT_FOUND" -) - -// All allowed values of RuntimeError enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedRuntimeErrorCodeEnumValues = []RuntimeErrorCode{ - "SKE_UNSPECIFIED", - "SKE_TMP_AUTH_ERROR", - "SKE_QUOTA_EXCEEDED", - "SKE_OBSERVABILITY_INSTANCE_NOT_FOUND", - "SKE_RATE_LIMITS", - "SKE_INFRA_ERROR", - "SKE_REMAINING_RESOURCES", - "SKE_CONFIGURATION_PROBLEM", - "SKE_UNREADY_NODES", - "SKE_API_SERVER_ERROR", - "SKE_DNS_ZONE_NOT_FOUND", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *RuntimeErrorCode) UnmarshalJSON(src []byte) error { - // use a type alias to prevent infinite recursion during unmarshal, - // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers - type TmpJson RuntimeErrorCode - var value TmpJson - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue TmpJson - if value == zeroValue { - return nil - } - enumTypeValue := RuntimeErrorCode(value) - for _, existing := range AllowedRuntimeErrorCodeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid RuntimeError", value) -} - -// NewRuntimeErrorCodeFromValue returns a pointer to a valid RuntimeErrorCode -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewRuntimeErrorCodeFromValue(v RuntimeErrorCode) (*RuntimeErrorCode, error) { - ev := RuntimeErrorCode(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for RuntimeErrorCode: valid values are %v", v, AllowedRuntimeErrorCodeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v RuntimeErrorCode) IsValid() bool { - for _, existing := range AllowedRuntimeErrorCodeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to CodeCode value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v RuntimeErrorCode) Ptr() *RuntimeErrorCode { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableRuntimeErrorCode struct { - value *RuntimeErrorCode - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableRuntimeErrorCode) Get() *RuntimeErrorCode { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableRuntimeErrorCode) Set(val *RuntimeErrorCode) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableRuntimeErrorCode) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableRuntimeErrorCode) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableRuntimeErrorCode(val *RuntimeErrorCode) *NullableRuntimeErrorCode { - return &NullableRuntimeErrorCode{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableRuntimeErrorCode) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableRuntimeErrorCode) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetCodeAttributeType = *RuntimeErrorCode - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetCodeArgType = RuntimeErrorCode - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetCodeRetType = RuntimeErrorCode - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getRuntimeErrorGetCodeAttributeTypeOk(arg RuntimeErrorGetCodeAttributeType) (ret RuntimeErrorGetCodeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setRuntimeErrorGetCodeAttributeType(arg *RuntimeErrorGetCodeAttributeType, val RuntimeErrorGetCodeRetType) { - *arg = &val -} - -/* - types and functions for details -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetDetailsAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getRuntimeErrorGetDetailsAttributeTypeOk(arg RuntimeErrorGetDetailsAttributeType) (ret RuntimeErrorGetDetailsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setRuntimeErrorGetDetailsAttributeType(arg *RuntimeErrorGetDetailsAttributeType, val RuntimeErrorGetDetailsRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetDetailsArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetDetailsRetType = string - -/* - types and functions for message -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetMessageAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getRuntimeErrorGetMessageAttributeTypeOk(arg RuntimeErrorGetMessageAttributeType) (ret RuntimeErrorGetMessageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setRuntimeErrorGetMessageAttributeType(arg *RuntimeErrorGetMessageAttributeType, val RuntimeErrorGetMessageRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetMessageArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeErrorGetMessageRetType = string - -// RuntimeError struct for RuntimeError -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type RuntimeError struct { - // - Code: `SKE_UNSPECIFIED` Message: \"An error occurred. Please open a support ticket if this error persists.\" - Code: `SKE_TMP_AUTH_ERROR` Message: \"Authentication failed. This is a temporary error. Please wait while the system recovers.\" - Code: `SKE_QUOTA_EXCEEDED` Message: \"Your project's resource quotas are exhausted. Please make sure your quota is sufficient for the ordered cluster.\" - Code: `SKE_OBSERVABILITY_INSTANCE_NOT_FOUND` Message: \"The provided Observability instance could not be found.\" - Code: `SKE_RATE_LIMITS` Message: \"While provisioning your cluster, request rate limits where incurred. Please wait while the system recovers.\" - Code: `SKE_INFRA_ERROR` Message: \"An error occurred with the underlying infrastructure. Please open a support ticket if this error persists.\" - Code: `SKE_REMAINING_RESOURCES` Message: \"There are remaining Kubernetes resources in your cluster that prevent deletion. Please make sure to remove them.\" - Code: `SKE_CONFIGURATION_PROBLEM` Message: \"A configuration error occurred. Please open a support ticket if this error persists.\" - Code: `SKE_UNREADY_NODES` Message: \"Not all worker nodes are ready. Please open a support ticket if this error persists.\" - Code: `SKE_API_SERVER_ERROR` Message: \"The Kubernetes API server is not reporting readiness. Please open a support ticket if this error persists.\" - Code: `SKE_DNS_ZONE_NOT_FOUND` Message: \"The provided DNS zone for the STACKIT DNS extension could not be found. Please ensure you defined a valid domain that belongs to a STACKIT DNS zone.\" - Code RuntimeErrorGetCodeAttributeType `json:"code,omitempty"` - Details RuntimeErrorGetDetailsAttributeType `json:"details,omitempty"` - Message RuntimeErrorGetMessageAttributeType `json:"message,omitempty"` -} - -// NewRuntimeError instantiates a new RuntimeError object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewRuntimeError() *RuntimeError { - this := RuntimeError{} - return &this -} - -// NewRuntimeErrorWithDefaults instantiates a new RuntimeError object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewRuntimeErrorWithDefaults() *RuntimeError { - this := RuntimeError{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) GetCode() (res RuntimeErrorGetCodeRetType) { - res, _ = o.GetCodeOk() - return -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) GetCodeOk() (ret RuntimeErrorGetCodeRetType, ok bool) { - return getRuntimeErrorGetCodeAttributeTypeOk(o.Code) -} - -// HasCode returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) HasCode() bool { - _, ok := o.GetCodeOk() - return ok -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) SetCode(v RuntimeErrorGetCodeRetType) { - setRuntimeErrorGetCodeAttributeType(&o.Code, v) -} - -// GetDetails returns the Details field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) GetDetails() (res RuntimeErrorGetDetailsRetType) { - res, _ = o.GetDetailsOk() - return -} - -// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) GetDetailsOk() (ret RuntimeErrorGetDetailsRetType, ok bool) { - return getRuntimeErrorGetDetailsAttributeTypeOk(o.Details) -} - -// HasDetails returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) HasDetails() bool { - _, ok := o.GetDetailsOk() - return ok -} - -// SetDetails gets a reference to the given string and assigns it to the Details field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) SetDetails(v RuntimeErrorGetDetailsRetType) { - setRuntimeErrorGetDetailsAttributeType(&o.Details, v) -} - -// GetMessage returns the Message field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) GetMessage() (res RuntimeErrorGetMessageRetType) { - res, _ = o.GetMessageOk() - return -} - -// GetMessageOk returns a tuple with the Message field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) GetMessageOk() (ret RuntimeErrorGetMessageRetType, ok bool) { - return getRuntimeErrorGetMessageAttributeTypeOk(o.Message) -} - -// HasMessage returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) HasMessage() bool { - _, ok := o.GetMessageOk() - return ok -} - -// SetMessage gets a reference to the given string and assigns it to the Message field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *RuntimeError) SetMessage(v RuntimeErrorGetMessageRetType) { - setRuntimeErrorGetMessageAttributeType(&o.Message, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o RuntimeError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getRuntimeErrorGetCodeAttributeTypeOk(o.Code); ok { - toSerialize["Code"] = val - } - if val, ok := getRuntimeErrorGetDetailsAttributeTypeOk(o.Details); ok { - toSerialize["Details"] = val - } - if val, ok := getRuntimeErrorGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableRuntimeError struct { - value *RuntimeError - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableRuntimeError) Get() *RuntimeError { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableRuntimeError) Set(val *RuntimeError) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableRuntimeError) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableRuntimeError) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableRuntimeError(val *RuntimeError) *NullableRuntimeError { - return &NullableRuntimeError{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableRuntimeError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableRuntimeError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_runtime_error_test.go b/services/ske/model_runtime_error_test.go deleted file mode 100644 index a001d32379..0000000000 --- a/services/ske/model_runtime_error_test.go +++ /dev/null @@ -1,121 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske - -import ( - "testing" -) - -// isEnum - -func TestRuntimeErrorCode_UnmarshalJSON(t *testing.T) { - type args struct { - src []byte - } - tests := []struct { - name string - args args - wantErr bool - }{ - { - name: `success - possible enum value no. 1`, - args: args{ - src: []byte(`"SKE_UNSPECIFIED"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 2`, - args: args{ - src: []byte(`"SKE_TMP_AUTH_ERROR"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 3`, - args: args{ - src: []byte(`"SKE_QUOTA_EXCEEDED"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 4`, - args: args{ - src: []byte(`"SKE_OBSERVABILITY_INSTANCE_NOT_FOUND"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 5`, - args: args{ - src: []byte(`"SKE_RATE_LIMITS"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 6`, - args: args{ - src: []byte(`"SKE_INFRA_ERROR"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 7`, - args: args{ - src: []byte(`"SKE_REMAINING_RESOURCES"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 8`, - args: args{ - src: []byte(`"SKE_CONFIGURATION_PROBLEM"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 9`, - args: args{ - src: []byte(`"SKE_UNREADY_NODES"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 10`, - args: args{ - src: []byte(`"SKE_API_SERVER_ERROR"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 11`, - args: args{ - src: []byte(`"SKE_DNS_ZONE_NOT_FOUND"`), - }, - wantErr: false, - }, - { - name: "fail", - args: args{ - src: []byte("\"FOOBAR\""), - }, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - v := RuntimeErrorCode("") - if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { - t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) - } - }) - } -} diff --git a/services/ske/model_taint.go b/services/ske/model_taint.go deleted file mode 100644 index 08d69879fa..0000000000 --- a/services/ske/model_taint.go +++ /dev/null @@ -1,384 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "fmt" -) - -// checks if the Taint type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Taint{} - -/* - types and functions for effect -*/ - -// isEnum - -// TaintEffect the model 'Taint' -// value type for enums -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintEffect string - -// List of Effect -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - TAINTEFFECT_NO_SCHEDULE TaintEffect = "NoSchedule" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - TAINTEFFECT_PREFER_NO_SCHEDULE TaintEffect = "PreferNoSchedule" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - TAINTEFFECT_NO_EXECUTE TaintEffect = "NoExecute" -) - -// All allowed values of Taint enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedTaintEffectEnumValues = []TaintEffect{ - "NoSchedule", - "PreferNoSchedule", - "NoExecute", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *TaintEffect) UnmarshalJSON(src []byte) error { - // use a type alias to prevent infinite recursion during unmarshal, - // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers - type TmpJson TaintEffect - var value TmpJson - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue TmpJson - if value == zeroValue { - return nil - } - enumTypeValue := TaintEffect(value) - for _, existing := range AllowedTaintEffectEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid Taint", value) -} - -// NewTaintEffectFromValue returns a pointer to a valid TaintEffect -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewTaintEffectFromValue(v TaintEffect) (*TaintEffect, error) { - ev := TaintEffect(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for TaintEffect: valid values are %v", v, AllowedTaintEffectEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v TaintEffect) IsValid() bool { - for _, existing := range AllowedTaintEffectEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to EffectEffect value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v TaintEffect) Ptr() *TaintEffect { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableTaintEffect struct { - value *TaintEffect - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTaintEffect) Get() *TaintEffect { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTaintEffect) Set(val *TaintEffect) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTaintEffect) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTaintEffect) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableTaintEffect(val *TaintEffect) *NullableTaintEffect { - return &NullableTaintEffect{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTaintEffect) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTaintEffect) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetEffectAttributeType = *TaintEffect - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetEffectArgType = TaintEffect - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetEffectRetType = TaintEffect - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getTaintGetEffectAttributeTypeOk(arg TaintGetEffectAttributeType) (ret TaintGetEffectRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setTaintGetEffectAttributeType(arg *TaintGetEffectAttributeType, val TaintGetEffectRetType) { - *arg = &val -} - -/* - types and functions for key -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetKeyAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getTaintGetKeyAttributeTypeOk(arg TaintGetKeyAttributeType) (ret TaintGetKeyRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setTaintGetKeyAttributeType(arg *TaintGetKeyAttributeType, val TaintGetKeyRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetKeyArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetKeyRetType = string - -/* - types and functions for value -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetValueAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getTaintGetValueAttributeTypeOk(arg TaintGetValueAttributeType) (ret TaintGetValueRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setTaintGetValueAttributeType(arg *TaintGetValueAttributeType, val TaintGetValueRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetValueArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TaintGetValueRetType = string - -// Taint struct for Taint -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Taint struct { - // REQUIRED - Effect TaintGetEffectAttributeType `json:"effect" required:"true"` - // REQUIRED - Key TaintGetKeyAttributeType `json:"key" required:"true"` - Value TaintGetValueAttributeType `json:"value,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Taint Taint - -// NewTaint instantiates a new Taint object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewTaint(effect TaintGetEffectArgType, key TaintGetKeyArgType) *Taint { - this := Taint{} - setTaintGetEffectAttributeType(&this.Effect, effect) - setTaintGetKeyAttributeType(&this.Key, key) - return &this -} - -// NewTaintWithDefaults instantiates a new Taint object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewTaintWithDefaults() *Taint { - this := Taint{} - return &this -} - -// GetEffect returns the Effect field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) GetEffect() (ret TaintGetEffectRetType) { - ret, _ = o.GetEffectOk() - return ret -} - -// GetEffectOk returns a tuple with the Effect field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) GetEffectOk() (ret TaintGetEffectRetType, ok bool) { - return getTaintGetEffectAttributeTypeOk(o.Effect) -} - -// SetEffect sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) SetEffect(v TaintGetEffectRetType) { - setTaintGetEffectAttributeType(&o.Effect, v) -} - -// GetKey returns the Key field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) GetKey() (ret TaintGetKeyRetType) { - ret, _ = o.GetKeyOk() - return ret -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) GetKeyOk() (ret TaintGetKeyRetType, ok bool) { - return getTaintGetKeyAttributeTypeOk(o.Key) -} - -// SetKey sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) SetKey(v TaintGetKeyRetType) { - setTaintGetKeyAttributeType(&o.Key, v) -} - -// GetValue returns the Value field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) GetValue() (res TaintGetValueRetType) { - res, _ = o.GetValueOk() - return -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) GetValueOk() (ret TaintGetValueRetType, ok bool) { - return getTaintGetValueAttributeTypeOk(o.Value) -} - -// HasValue returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) HasValue() bool { - _, ok := o.GetValueOk() - return ok -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Taint) SetValue(v TaintGetValueRetType) { - setTaintGetValueAttributeType(&o.Value, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Taint) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getTaintGetEffectAttributeTypeOk(o.Effect); ok { - toSerialize["Effect"] = val - } - if val, ok := getTaintGetKeyAttributeTypeOk(o.Key); ok { - toSerialize["Key"] = val - } - if val, ok := getTaintGetValueAttributeTypeOk(o.Value); ok { - toSerialize["Value"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableTaint struct { - value *Taint - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTaint) Get() *Taint { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTaint) Set(val *Taint) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTaint) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTaint) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableTaint(val *Taint) *NullableTaint { - return &NullableTaint{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTaint) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTaint) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_taint_test.go b/services/ske/model_taint_test.go deleted file mode 100644 index ac51482d9f..0000000000 --- a/services/ske/model_taint_test.go +++ /dev/null @@ -1,65 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske - -import ( - "testing" -) - -// isEnum - -func TestTaintEffect_UnmarshalJSON(t *testing.T) { - type args struct { - src []byte - } - tests := []struct { - name string - args args - wantErr bool - }{ - { - name: `success - possible enum value no. 1`, - args: args{ - src: []byte(`"NoSchedule"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 2`, - args: args{ - src: []byte(`"PreferNoSchedule"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 3`, - args: args{ - src: []byte(`"NoExecute"`), - }, - wantErr: false, - }, - { - name: "fail", - args: args{ - src: []byte("\"FOOBAR\""), - }, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - v := TaintEffect("") - if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { - t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) - } - }) - } -} diff --git a/services/ske/model_time_window.go b/services/ske/model_time_window.go deleted file mode 100644 index a75f581e5d..0000000000 --- a/services/ske/model_time_window.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" - "time" -) - -// checks if the TimeWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TimeWindow{} - -/* - types and functions for end -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TimeWindowGetEndAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TimeWindowGetEndArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TimeWindowGetEndRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getTimeWindowGetEndAttributeTypeOk(arg TimeWindowGetEndAttributeType) (ret TimeWindowGetEndRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setTimeWindowGetEndAttributeType(arg *TimeWindowGetEndAttributeType, val TimeWindowGetEndRetType) { - *arg = &val -} - -/* - types and functions for start -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TimeWindowGetStartAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TimeWindowGetStartArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TimeWindowGetStartRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getTimeWindowGetStartAttributeTypeOk(arg TimeWindowGetStartAttributeType) (ret TimeWindowGetStartRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setTimeWindowGetStartAttributeType(arg *TimeWindowGetStartAttributeType, val TimeWindowGetStartRetType) { - *arg = &val -} - -// TimeWindow struct for TimeWindow -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type TimeWindow struct { - // REQUIRED - End TimeWindowGetEndAttributeType `json:"end" required:"true"` - // REQUIRED - Start TimeWindowGetStartAttributeType `json:"start" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _TimeWindow TimeWindow - -// NewTimeWindow instantiates a new TimeWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewTimeWindow(end TimeWindowGetEndArgType, start TimeWindowGetStartArgType) *TimeWindow { - this := TimeWindow{} - setTimeWindowGetEndAttributeType(&this.End, end) - setTimeWindowGetStartAttributeType(&this.Start, start) - return &this -} - -// NewTimeWindowWithDefaults instantiates a new TimeWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewTimeWindowWithDefaults() *TimeWindow { - this := TimeWindow{} - return &this -} - -// GetEnd returns the End field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *TimeWindow) GetEnd() (ret TimeWindowGetEndRetType) { - ret, _ = o.GetEndOk() - return ret -} - -// GetEndOk returns a tuple with the End field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *TimeWindow) GetEndOk() (ret TimeWindowGetEndRetType, ok bool) { - return getTimeWindowGetEndAttributeTypeOk(o.End) -} - -// SetEnd sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *TimeWindow) SetEnd(v TimeWindowGetEndRetType) { - setTimeWindowGetEndAttributeType(&o.End, v) -} - -// GetStart returns the Start field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *TimeWindow) GetStart() (ret TimeWindowGetStartRetType) { - ret, _ = o.GetStartOk() - return ret -} - -// GetStartOk returns a tuple with the Start field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *TimeWindow) GetStartOk() (ret TimeWindowGetStartRetType, ok bool) { - return getTimeWindowGetStartAttributeTypeOk(o.Start) -} - -// SetStart sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *TimeWindow) SetStart(v TimeWindowGetStartRetType) { - setTimeWindowGetStartAttributeType(&o.Start, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o TimeWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getTimeWindowGetEndAttributeTypeOk(o.End); ok { - toSerialize["End"] = val - } - if val, ok := getTimeWindowGetStartAttributeTypeOk(o.Start); ok { - toSerialize["Start"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableTimeWindow struct { - value *TimeWindow - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTimeWindow) Get() *TimeWindow { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTimeWindow) Set(val *TimeWindow) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTimeWindow) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTimeWindow) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableTimeWindow(val *TimeWindow) *NullableTimeWindow { - return &NullableTimeWindow{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTimeWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTimeWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_time_window_test.go b/services/ske/model_time_window_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_time_window_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_v2_control_plane_network.go b/services/ske/model_v2_control_plane_network.go deleted file mode 100644 index ef5d4cc5de..0000000000 --- a/services/ske/model_v2_control_plane_network.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the V2ControlPlaneNetwork type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &V2ControlPlaneNetwork{} - -/* - types and functions for accessScope -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type V2ControlPlaneNetworkGetAccessScopeAttributeType = *AccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type V2ControlPlaneNetworkGetAccessScopeArgType = AccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type V2ControlPlaneNetworkGetAccessScopeRetType = AccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getV2ControlPlaneNetworkGetAccessScopeAttributeTypeOk(arg V2ControlPlaneNetworkGetAccessScopeAttributeType) (ret V2ControlPlaneNetworkGetAccessScopeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setV2ControlPlaneNetworkGetAccessScopeAttributeType(arg *V2ControlPlaneNetworkGetAccessScopeAttributeType, val V2ControlPlaneNetworkGetAccessScopeRetType) { - *arg = &val -} - -// V2ControlPlaneNetwork struct for V2ControlPlaneNetwork -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type V2ControlPlaneNetwork struct { - AccessScope V2ControlPlaneNetworkGetAccessScopeAttributeType `json:"accessScope,omitempty"` -} - -// NewV2ControlPlaneNetwork instantiates a new V2ControlPlaneNetwork object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewV2ControlPlaneNetwork() *V2ControlPlaneNetwork { - this := V2ControlPlaneNetwork{} - return &this -} - -// NewV2ControlPlaneNetworkWithDefaults instantiates a new V2ControlPlaneNetwork object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewV2ControlPlaneNetworkWithDefaults() *V2ControlPlaneNetwork { - this := V2ControlPlaneNetwork{} - return &this -} - -// GetAccessScope returns the AccessScope field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *V2ControlPlaneNetwork) GetAccessScope() (res V2ControlPlaneNetworkGetAccessScopeRetType) { - res, _ = o.GetAccessScopeOk() - return -} - -// GetAccessScopeOk returns a tuple with the AccessScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *V2ControlPlaneNetwork) GetAccessScopeOk() (ret V2ControlPlaneNetworkGetAccessScopeRetType, ok bool) { - return getV2ControlPlaneNetworkGetAccessScopeAttributeTypeOk(o.AccessScope) -} - -// HasAccessScope returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *V2ControlPlaneNetwork) HasAccessScope() bool { - _, ok := o.GetAccessScopeOk() - return ok -} - -// SetAccessScope gets a reference to the given AccessScope and assigns it to the AccessScope field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *V2ControlPlaneNetwork) SetAccessScope(v V2ControlPlaneNetworkGetAccessScopeRetType) { - setV2ControlPlaneNetworkGetAccessScopeAttributeType(&o.AccessScope, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o V2ControlPlaneNetwork) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getV2ControlPlaneNetworkGetAccessScopeAttributeTypeOk(o.AccessScope); ok { - toSerialize["AccessScope"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableV2ControlPlaneNetwork struct { - value *V2ControlPlaneNetwork - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableV2ControlPlaneNetwork) Get() *V2ControlPlaneNetwork { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableV2ControlPlaneNetwork) Set(val *V2ControlPlaneNetwork) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableV2ControlPlaneNetwork) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableV2ControlPlaneNetwork) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableV2ControlPlaneNetwork(val *V2ControlPlaneNetwork) *NullableV2ControlPlaneNetwork { - return &NullableV2ControlPlaneNetwork{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableV2ControlPlaneNetwork) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableV2ControlPlaneNetwork) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_v2_control_plane_network_test.go b/services/ske/model_v2_control_plane_network_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_v2_control_plane_network_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_volume.go b/services/ske/model_volume.go deleted file mode 100644 index 0feb401967..0000000000 --- a/services/ske/model_volume.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the Volume type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Volume{} - -/* - types and functions for size -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeGetSizeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeGetSizeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeGetSizeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getVolumeGetSizeAttributeTypeOk(arg VolumeGetSizeAttributeType) (ret VolumeGetSizeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setVolumeGetSizeAttributeType(arg *VolumeGetSizeAttributeType, val VolumeGetSizeRetType) { - *arg = &val -} - -/* - types and functions for type -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeGetTypeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getVolumeGetTypeAttributeTypeOk(arg VolumeGetTypeAttributeType) (ret VolumeGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setVolumeGetTypeAttributeType(arg *VolumeGetTypeAttributeType, val VolumeGetTypeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeGetTypeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeGetTypeRetType = string - -// Volume struct for Volume -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Volume struct { - // Can be cast to int32 without loss of precision. - // REQUIRED - Size VolumeGetSizeAttributeType `json:"size" required:"true"` - // For valid values please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `volumeTypes`. - Type VolumeGetTypeAttributeType `json:"type,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Volume Volume - -// NewVolume instantiates a new Volume object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewVolume(size VolumeGetSizeArgType) *Volume { - this := Volume{} - setVolumeGetSizeAttributeType(&this.Size, size) - return &this -} - -// NewVolumeWithDefaults instantiates a new Volume object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewVolumeWithDefaults() *Volume { - this := Volume{} - return &this -} - -// GetSize returns the Size field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Volume) GetSize() (ret VolumeGetSizeRetType) { - ret, _ = o.GetSizeOk() - return ret -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Volume) GetSizeOk() (ret VolumeGetSizeRetType, ok bool) { - return getVolumeGetSizeAttributeTypeOk(o.Size) -} - -// SetSize sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Volume) SetSize(v VolumeGetSizeRetType) { - setVolumeGetSizeAttributeType(&o.Size, v) -} - -// GetType returns the Type field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Volume) GetType() (res VolumeGetTypeRetType) { - res, _ = o.GetTypeOk() - return -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Volume) GetTypeOk() (ret VolumeGetTypeRetType, ok bool) { - return getVolumeGetTypeAttributeTypeOk(o.Type) -} - -// HasType returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Volume) HasType() bool { - _, ok := o.GetTypeOk() - return ok -} - -// SetType gets a reference to the given string and assigns it to the Type field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Volume) SetType(v VolumeGetTypeRetType) { - setVolumeGetTypeAttributeType(&o.Type, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Volume) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getVolumeGetSizeAttributeTypeOk(o.Size); ok { - toSerialize["Size"] = val - } - if val, ok := getVolumeGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableVolume struct { - value *Volume - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVolume) Get() *Volume { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVolume) Set(val *Volume) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVolume) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVolume) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableVolume(val *Volume) *NullableVolume { - return &NullableVolume{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVolume) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVolume) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_volume_test.go b/services/ske/model_volume_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_volume_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/model_volume_type.go b/services/ske/model_volume_type.go deleted file mode 100644 index cbcbde9399..0000000000 --- a/services/ske/model_volume_type.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package ske - -import ( - "encoding/json" -) - -// checks if the VolumeType type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VolumeType{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeTypeGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getVolumeTypeGetNameAttributeTypeOk(arg VolumeTypeGetNameAttributeType) (ret VolumeTypeGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setVolumeTypeGetNameAttributeType(arg *VolumeTypeGetNameAttributeType, val VolumeTypeGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeTypeGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeTypeGetNameRetType = string - -// VolumeType struct for VolumeType -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VolumeType struct { - Name VolumeTypeGetNameAttributeType `json:"name,omitempty"` -} - -// NewVolumeType instantiates a new VolumeType object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewVolumeType() *VolumeType { - this := VolumeType{} - return &this -} - -// NewVolumeTypeWithDefaults instantiates a new VolumeType object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewVolumeTypeWithDefaults() *VolumeType { - this := VolumeType{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *VolumeType) GetName() (res VolumeTypeGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *VolumeType) GetNameOk() (ret VolumeTypeGetNameRetType, ok bool) { - return getVolumeTypeGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *VolumeType) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *VolumeType) SetName(v VolumeTypeGetNameRetType) { - setVolumeTypeGetNameAttributeType(&o.Name, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o VolumeType) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getVolumeTypeGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableVolumeType struct { - value *VolumeType - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVolumeType) Get() *VolumeType { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVolumeType) Set(val *VolumeType) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVolumeType) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVolumeType) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableVolumeType(val *VolumeType) *NullableVolumeType { - return &NullableVolumeType{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVolumeType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVolumeType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/ske/model_volume_type_test.go b/services/ske/model_volume_type_test.go deleted file mode 100644 index be50da75a4..0000000000 --- a/services/ske/model_volume_type_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske diff --git a/services/ske/oas_commit b/services/ske/oas_commit index 69bfa80b38..71a76821d4 100644 --- a/services/ske/oas_commit +++ b/services/ske/oas_commit @@ -1 +1 @@ -864bdad12a54f612df8fcdb6e41dd2933e94c3af +0afa5e4924e6bf230fdade5cb294ecfd97dd63e5 diff --git a/services/ske/package.go b/services/ske/package.go new file mode 100644 index 0000000000..b923a18413 --- /dev/null +++ b/services/ske/package.go @@ -0,0 +1 @@ +package ske diff --git a/services/ske/utils.go b/services/ske/utils.go deleted file mode 100644 index 85041ff9cc..0000000000 --- a/services/ske/utils.go +++ /dev/null @@ -1,466 +0,0 @@ -/* -STACKIT Kubernetes Engine API - -The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske - -import ( - "encoding/json" - "math/rand" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrTime(v time.Time) *time.Time { return &v } - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableValue[T any] struct { - value *T - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValue[T]) Get() *T { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValue[T]) Set(val *T) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValue[T]) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValue[T]) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableBool struct { - value *bool - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBool) Get() *bool { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBool) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInt struct { - value *int - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt) Get() *int { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInt32 struct { - value *int32 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt32) Get() *int32 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInt64 struct { - value *int64 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt64) Get() *int64 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableFloat32 struct { - value *float32 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat32) Get() *float32 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableFloat64 struct { - value *float64 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat64) Get() *float64 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableString struct { - value *string - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableString) Get() *string { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableString) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableTime struct { - value *time.Time - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTime) Get() *time.Time { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTime) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// IsNil checks if an input is nil -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func IsNil(i interface{}) bool { - if i == nil { - return true - } - if t, ok := i.(interface{ IsSet() bool }); ok { - return !t.IsSet() - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MappedNullable interface { - ToMap() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" - -// randString returns a random string with a specified length. It panics if n <= 0. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func randString(n int) string { - b := make([]byte, n) - for i := range b { - b[i] = letterRunes[rand.Intn(len(letterRunes))] - } - return string(b) -} diff --git a/services/ske/v1api/model_cluster_status_state.go b/services/ske/v1api/model_cluster_status_state.go index 87ac8357ee..99416d4943 100644 --- a/services/ske/v1api/model_cluster_status_state.go +++ b/services/ske/v1api/model_cluster_status_state.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// ClusterStatusState the model 'ClusterStatusState' +// ClusterStatusState aggregated state of the cluster type ClusterStatusState string // List of ClusterStatusState diff --git a/services/ske/v1api/model_maintenance.go b/services/ske/v1api/model_maintenance.go index 95f846af23..db1f76f07b 100644 --- a/services/ske/v1api/model_maintenance.go +++ b/services/ske/v1api/model_maintenance.go @@ -12,7 +12,6 @@ package v1api import ( "encoding/json" - "fmt" ) // checks if the Maintenance type satisfies the MappedNullable interface at compile time @@ -20,8 +19,8 @@ var _ MappedNullable = &Maintenance{} // Maintenance struct for Maintenance type Maintenance struct { - AutoUpdate MaintenanceAutoUpdate `json:"autoUpdate"` - TimeWindow TimeWindow `json:"timeWindow"` + AutoUpdate *MaintenanceAutoUpdate `json:"autoUpdate,omitempty"` + TimeWindow *TimeWindow `json:"timeWindow,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,10 +30,8 @@ type _Maintenance Maintenance // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewMaintenance(autoUpdate MaintenanceAutoUpdate, timeWindow TimeWindow) *Maintenance { +func NewMaintenance() *Maintenance { this := Maintenance{} - this.AutoUpdate = autoUpdate - this.TimeWindow = timeWindow return &this } @@ -46,52 +43,68 @@ func NewMaintenanceWithDefaults() *Maintenance { return &this } -// GetAutoUpdate returns the AutoUpdate field value +// GetAutoUpdate returns the AutoUpdate field value if set, zero value otherwise. func (o *Maintenance) GetAutoUpdate() MaintenanceAutoUpdate { - if o == nil { + if o == nil || IsNil(o.AutoUpdate) { var ret MaintenanceAutoUpdate return ret } - - return o.AutoUpdate + return *o.AutoUpdate } -// GetAutoUpdateOk returns a tuple with the AutoUpdate field value +// GetAutoUpdateOk returns a tuple with the AutoUpdate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Maintenance) GetAutoUpdateOk() (*MaintenanceAutoUpdate, bool) { - if o == nil { + if o == nil || IsNil(o.AutoUpdate) { return nil, false } - return &o.AutoUpdate, true + return o.AutoUpdate, true +} + +// HasAutoUpdate returns a boolean if a field has been set. +func (o *Maintenance) HasAutoUpdate() bool { + if o != nil && !IsNil(o.AutoUpdate) { + return true + } + + return false } -// SetAutoUpdate sets field value +// SetAutoUpdate gets a reference to the given MaintenanceAutoUpdate and assigns it to the AutoUpdate field. func (o *Maintenance) SetAutoUpdate(v MaintenanceAutoUpdate) { - o.AutoUpdate = v + o.AutoUpdate = &v } -// GetTimeWindow returns the TimeWindow field value +// GetTimeWindow returns the TimeWindow field value if set, zero value otherwise. func (o *Maintenance) GetTimeWindow() TimeWindow { - if o == nil { + if o == nil || IsNil(o.TimeWindow) { var ret TimeWindow return ret } - - return o.TimeWindow + return *o.TimeWindow } -// GetTimeWindowOk returns a tuple with the TimeWindow field value +// GetTimeWindowOk returns a tuple with the TimeWindow field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Maintenance) GetTimeWindowOk() (*TimeWindow, bool) { - if o == nil { + if o == nil || IsNil(o.TimeWindow) { return nil, false } - return &o.TimeWindow, true + return o.TimeWindow, true } -// SetTimeWindow sets field value +// HasTimeWindow returns a boolean if a field has been set. +func (o *Maintenance) HasTimeWindow() bool { + if o != nil && !IsNil(o.TimeWindow) { + return true + } + + return false +} + +// SetTimeWindow gets a reference to the given TimeWindow and assigns it to the TimeWindow field. func (o *Maintenance) SetTimeWindow(v TimeWindow) { - o.TimeWindow = v + o.TimeWindow = &v } func (o Maintenance) MarshalJSON() ([]byte, error) { @@ -104,8 +117,12 @@ func (o Maintenance) MarshalJSON() ([]byte, error) { func (o Maintenance) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["autoUpdate"] = o.AutoUpdate - toSerialize["timeWindow"] = o.TimeWindow + if !IsNil(o.AutoUpdate) { + toSerialize["autoUpdate"] = o.AutoUpdate + } + if !IsNil(o.TimeWindow) { + toSerialize["timeWindow"] = o.TimeWindow + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -115,28 +132,6 @@ func (o Maintenance) ToMap() (map[string]interface{}, error) { } func (o *Maintenance) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "autoUpdate", - "timeWindow", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - varMaintenance := _Maintenance{} err = json.Unmarshal(data, &varMaintenance) diff --git a/services/ske/v2api/model_access_scope.go b/services/ske/v2api/model_access_scope.go index 02b7161970..1f53a154a4 100644 --- a/services/ske/v2api/model_access_scope.go +++ b/services/ske/v2api/model_access_scope.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// AccessScope The access scope of the Control Plane. It defines if the Kubernetes control plane is public or only available inside a STACKIT Network Area. This field is immutable. ⚠️ Note: This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. +// AccessScope The access scope of the Control Plane. It defines if the Kubernetes control plane is public or only available inside a STACKIT Network Area. ⚠️ Warning: Changing the access scope on an existing cluster directly impacts its network exposure (e.g., making a private cluster publicly accessible) ⚠️ Note: This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. type AccessScope string // List of AccessScope diff --git a/services/ske/v2api/model_cluster_status.go b/services/ske/v2api/model_cluster_status.go index edffd4c095..d3634c6f62 100644 --- a/services/ske/v2api/model_cluster_status.go +++ b/services/ske/v2api/model_cluster_status.go @@ -31,9 +31,13 @@ type ClusterStatus struct { Expiration *ExpirationStatus `json:"expiration,omitempty"` Hibernated *bool `json:"hibernated,omitempty"` Identity *string `json:"identity,omitempty"` + // The network ranges (in CIDR notation) used by nodes of the cluster. + NodeAddressRanges []string `json:"nodeAddressRanges,omitempty"` // The network ranges (in CIDR notation) used by pods of the cluster. PodAddressRanges []string `json:"podAddressRanges,omitempty"` ServiceAccountIssuer *string `json:"serviceAccountIssuer,omitempty"` + // The network ranges (in CIDR notation) used by services of the cluster. + ServiceAddressRanges []string `json:"serviceAddressRanges,omitempty"` AdditionalProperties map[string]interface{} } @@ -344,6 +348,38 @@ func (o *ClusterStatus) SetIdentity(v string) { o.Identity = &v } +// GetNodeAddressRanges returns the NodeAddressRanges field value if set, zero value otherwise. +func (o *ClusterStatus) GetNodeAddressRanges() []string { + if o == nil || IsNil(o.NodeAddressRanges) { + var ret []string + return ret + } + return o.NodeAddressRanges +} + +// GetNodeAddressRangesOk returns a tuple with the NodeAddressRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterStatus) GetNodeAddressRangesOk() ([]string, bool) { + if o == nil || IsNil(o.NodeAddressRanges) { + return nil, false + } + return o.NodeAddressRanges, true +} + +// HasNodeAddressRanges returns a boolean if a field has been set. +func (o *ClusterStatus) HasNodeAddressRanges() bool { + if o != nil && !IsNil(o.NodeAddressRanges) { + return true + } + + return false +} + +// SetNodeAddressRanges gets a reference to the given []string and assigns it to the NodeAddressRanges field. +func (o *ClusterStatus) SetNodeAddressRanges(v []string) { + o.NodeAddressRanges = v +} + // GetPodAddressRanges returns the PodAddressRanges field value if set, zero value otherwise. func (o *ClusterStatus) GetPodAddressRanges() []string { if o == nil || IsNil(o.PodAddressRanges) { @@ -408,6 +444,38 @@ func (o *ClusterStatus) SetServiceAccountIssuer(v string) { o.ServiceAccountIssuer = &v } +// GetServiceAddressRanges returns the ServiceAddressRanges field value if set, zero value otherwise. +func (o *ClusterStatus) GetServiceAddressRanges() []string { + if o == nil || IsNil(o.ServiceAddressRanges) { + var ret []string + return ret + } + return o.ServiceAddressRanges +} + +// GetServiceAddressRangesOk returns a tuple with the ServiceAddressRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterStatus) GetServiceAddressRangesOk() ([]string, bool) { + if o == nil || IsNil(o.ServiceAddressRanges) { + return nil, false + } + return o.ServiceAddressRanges, true +} + +// HasServiceAddressRanges returns a boolean if a field has been set. +func (o *ClusterStatus) HasServiceAddressRanges() bool { + if o != nil && !IsNil(o.ServiceAddressRanges) { + return true + } + + return false +} + +// SetServiceAddressRanges gets a reference to the given []string and assigns it to the ServiceAddressRanges field. +func (o *ClusterStatus) SetServiceAddressRanges(v []string) { + o.ServiceAddressRanges = v +} + func (o ClusterStatus) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -445,12 +513,18 @@ func (o ClusterStatus) ToMap() (map[string]interface{}, error) { if !IsNil(o.Identity) { toSerialize["identity"] = o.Identity } + if !IsNil(o.NodeAddressRanges) { + toSerialize["nodeAddressRanges"] = o.NodeAddressRanges + } if !IsNil(o.PodAddressRanges) { toSerialize["podAddressRanges"] = o.PodAddressRanges } if !IsNil(o.ServiceAccountIssuer) { toSerialize["serviceAccountIssuer"] = o.ServiceAccountIssuer } + if !IsNil(o.ServiceAddressRanges) { + toSerialize["serviceAddressRanges"] = o.ServiceAddressRanges + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -482,8 +556,10 @@ func (o *ClusterStatus) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "expiration") delete(additionalProperties, "hibernated") delete(additionalProperties, "identity") + delete(additionalProperties, "nodeAddressRanges") delete(additionalProperties, "podAddressRanges") delete(additionalProperties, "serviceAccountIssuer") + delete(additionalProperties, "serviceAddressRanges") o.AdditionalProperties = additionalProperties } diff --git a/services/ske/v2api/model_cluster_status_state.go b/services/ske/v2api/model_cluster_status_state.go index ba2b80086b..d31be23bf6 100644 --- a/services/ske/v2api/model_cluster_status_state.go +++ b/services/ske/v2api/model_cluster_status_state.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// ClusterStatusState the model 'ClusterStatusState' +// ClusterStatusState ClusterStatusState holds information about the current state of the Cluster type ClusterStatusState string // List of ClusterStatusState diff --git a/services/ske/v2api/model_cri.go b/services/ske/v2api/model_cri.go index 75b553e396..77b9b30c61 100644 --- a/services/ske/v2api/model_cri.go +++ b/services/ske/v2api/model_cri.go @@ -19,6 +19,7 @@ var _ MappedNullable = &CRI{} // CRI struct for CRI type CRI struct { + Kata *Kata `json:"kata,omitempty"` Name *NameOfTheCriLibrary `json:"name,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,6 +43,38 @@ func NewCRIWithDefaults() *CRI { return &this } +// GetKata returns the Kata field value if set, zero value otherwise. +func (o *CRI) GetKata() Kata { + if o == nil || IsNil(o.Kata) { + var ret Kata + return ret + } + return *o.Kata +} + +// GetKataOk returns a tuple with the Kata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CRI) GetKataOk() (*Kata, bool) { + if o == nil || IsNil(o.Kata) { + return nil, false + } + return o.Kata, true +} + +// HasKata returns a boolean if a field has been set. +func (o *CRI) HasKata() bool { + if o != nil && !IsNil(o.Kata) { + return true + } + + return false +} + +// SetKata gets a reference to the given Kata and assigns it to the Kata field. +func (o *CRI) SetKata(v Kata) { + o.Kata = &v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *CRI) GetName() NameOfTheCriLibrary { if o == nil || IsNil(o.Name) { @@ -84,6 +117,9 @@ func (o CRI) MarshalJSON() ([]byte, error) { func (o CRI) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Kata) { + toSerialize["kata"] = o.Kata + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -109,6 +145,7 @@ func (o *CRI) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "kata") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/services/ske/v2api/model_kata.go b/services/ske/v2api/model_kata.go new file mode 100644 index 0000000000..ca5a67eac0 --- /dev/null +++ b/services/ske/v2api/model_kata.go @@ -0,0 +1,167 @@ +/* +STACKIT Kubernetes Engine API + +The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2api + +import ( + "encoding/json" + "fmt" +) + +// checks if the Kata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Kata{} + +// Kata struct for Kata +type Kata struct { + // Enable workload isolation via Kata Containers for pods scheduled on this node pool. ⚠️ Note: This feature is in private preview. Enabling is only possible for enabled accounts. Otherwise the request will be rejected. + Enabled bool `json:"enabled"` + AdditionalProperties map[string]interface{} +} + +type _Kata Kata + +// NewKata instantiates a new Kata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKata(enabled bool) *Kata { + this := Kata{} + this.Enabled = enabled + return &this +} + +// NewKataWithDefaults instantiates a new Kata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKataWithDefaults() *Kata { + this := Kata{} + return &this +} + +// GetEnabled returns the Enabled field value +func (o *Kata) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *Kata) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *Kata) SetEnabled(v bool) { + o.Enabled = v +} + +func (o Kata) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Kata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["enabled"] = o.Enabled + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Kata) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "enabled", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varKata := _Kata{} + + err = json.Unmarshal(data, &varKata) + + if err != nil { + return err + } + + *o = Kata(varKata) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKata struct { + value *Kata + isSet bool +} + +func (v NullableKata) Get() *Kata { + return v.value +} + +func (v *NullableKata) Set(val *Kata) { + v.value = val + v.isSet = true +} + +func (v NullableKata) IsSet() bool { + return v.isSet +} + +func (v *NullableKata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKata(val *Kata) *NullableKata { + return &NullableKata{value: val, isSet: true} +} + +func (v NullableKata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/ske/v2api/model_maintenance.go b/services/ske/v2api/model_maintenance.go index b3870db1c3..2c12faf062 100644 --- a/services/ske/v2api/model_maintenance.go +++ b/services/ske/v2api/model_maintenance.go @@ -12,7 +12,6 @@ package v2api import ( "encoding/json" - "fmt" ) // checks if the Maintenance type satisfies the MappedNullable interface at compile time @@ -20,8 +19,8 @@ var _ MappedNullable = &Maintenance{} // Maintenance struct for Maintenance type Maintenance struct { - AutoUpdate MaintenanceAutoUpdate `json:"autoUpdate"` - TimeWindow TimeWindow `json:"timeWindow"` + AutoUpdate *MaintenanceAutoUpdate `json:"autoUpdate,omitempty"` + TimeWindow *TimeWindow `json:"timeWindow,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,10 +30,8 @@ type _Maintenance Maintenance // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewMaintenance(autoUpdate MaintenanceAutoUpdate, timeWindow TimeWindow) *Maintenance { +func NewMaintenance() *Maintenance { this := Maintenance{} - this.AutoUpdate = autoUpdate - this.TimeWindow = timeWindow return &this } @@ -46,52 +43,68 @@ func NewMaintenanceWithDefaults() *Maintenance { return &this } -// GetAutoUpdate returns the AutoUpdate field value +// GetAutoUpdate returns the AutoUpdate field value if set, zero value otherwise. func (o *Maintenance) GetAutoUpdate() MaintenanceAutoUpdate { - if o == nil { + if o == nil || IsNil(o.AutoUpdate) { var ret MaintenanceAutoUpdate return ret } - - return o.AutoUpdate + return *o.AutoUpdate } -// GetAutoUpdateOk returns a tuple with the AutoUpdate field value +// GetAutoUpdateOk returns a tuple with the AutoUpdate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Maintenance) GetAutoUpdateOk() (*MaintenanceAutoUpdate, bool) { - if o == nil { + if o == nil || IsNil(o.AutoUpdate) { return nil, false } - return &o.AutoUpdate, true + return o.AutoUpdate, true +} + +// HasAutoUpdate returns a boolean if a field has been set. +func (o *Maintenance) HasAutoUpdate() bool { + if o != nil && !IsNil(o.AutoUpdate) { + return true + } + + return false } -// SetAutoUpdate sets field value +// SetAutoUpdate gets a reference to the given MaintenanceAutoUpdate and assigns it to the AutoUpdate field. func (o *Maintenance) SetAutoUpdate(v MaintenanceAutoUpdate) { - o.AutoUpdate = v + o.AutoUpdate = &v } -// GetTimeWindow returns the TimeWindow field value +// GetTimeWindow returns the TimeWindow field value if set, zero value otherwise. func (o *Maintenance) GetTimeWindow() TimeWindow { - if o == nil { + if o == nil || IsNil(o.TimeWindow) { var ret TimeWindow return ret } - - return o.TimeWindow + return *o.TimeWindow } -// GetTimeWindowOk returns a tuple with the TimeWindow field value +// GetTimeWindowOk returns a tuple with the TimeWindow field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Maintenance) GetTimeWindowOk() (*TimeWindow, bool) { - if o == nil { + if o == nil || IsNil(o.TimeWindow) { return nil, false } - return &o.TimeWindow, true + return o.TimeWindow, true } -// SetTimeWindow sets field value +// HasTimeWindow returns a boolean if a field has been set. +func (o *Maintenance) HasTimeWindow() bool { + if o != nil && !IsNil(o.TimeWindow) { + return true + } + + return false +} + +// SetTimeWindow gets a reference to the given TimeWindow and assigns it to the TimeWindow field. func (o *Maintenance) SetTimeWindow(v TimeWindow) { - o.TimeWindow = v + o.TimeWindow = &v } func (o Maintenance) MarshalJSON() ([]byte, error) { @@ -104,8 +117,12 @@ func (o Maintenance) MarshalJSON() ([]byte, error) { func (o Maintenance) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["autoUpdate"] = o.AutoUpdate - toSerialize["timeWindow"] = o.TimeWindow + if !IsNil(o.AutoUpdate) { + toSerialize["autoUpdate"] = o.AutoUpdate + } + if !IsNil(o.TimeWindow) { + toSerialize["timeWindow"] = o.TimeWindow + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -115,28 +132,6 @@ func (o Maintenance) ToMap() (map[string]interface{}, error) { } func (o *Maintenance) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "autoUpdate", - "timeWindow", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - varMaintenance := _Maintenance{} err = json.Unmarshal(data, &varMaintenance) diff --git a/services/ske/v2api/model_network.go b/services/ske/v2api/model_network.go index 19edd35f4b..ffc9d341e7 100644 --- a/services/ske/v2api/model_network.go +++ b/services/ske/v2api/model_network.go @@ -19,9 +19,13 @@ var _ MappedNullable = &Network{} // Network struct for Network type Network struct { - Cni *CNI `json:"cni,omitempty"` - ControlPlane *V2ControlPlaneNetwork `json:"controlPlane,omitempty"` - Id *string `json:"id,omitempty"` + Cni *CNI `json:"cni,omitempty"` + ControlPlane *V2ControlPlaneNetwork `json:"controlPlane,omitempty"` + Id *string `json:"id,omitempty"` + // PodAddressRanges contains the CIDRs that are used to allocate Pod IPs from. Currently only 1 range is allowed. Immutable after creation. + PodAddressRanges []string `json:"podAddressRanges,omitempty"` + // ServiceAddressRanges contains the CIDRs that are used to allocate Service ClusterIPs from. Currently only 1 range is allowed. Immutable after creation. + ServiceAddressRanges []string `json:"serviceAddressRanges,omitempty"` AdditionalProperties map[string]interface{} } @@ -140,6 +144,70 @@ func (o *Network) SetId(v string) { o.Id = &v } +// GetPodAddressRanges returns the PodAddressRanges field value if set, zero value otherwise. +func (o *Network) GetPodAddressRanges() []string { + if o == nil || IsNil(o.PodAddressRanges) { + var ret []string + return ret + } + return o.PodAddressRanges +} + +// GetPodAddressRangesOk returns a tuple with the PodAddressRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Network) GetPodAddressRangesOk() ([]string, bool) { + if o == nil || IsNil(o.PodAddressRanges) { + return nil, false + } + return o.PodAddressRanges, true +} + +// HasPodAddressRanges returns a boolean if a field has been set. +func (o *Network) HasPodAddressRanges() bool { + if o != nil && !IsNil(o.PodAddressRanges) { + return true + } + + return false +} + +// SetPodAddressRanges gets a reference to the given []string and assigns it to the PodAddressRanges field. +func (o *Network) SetPodAddressRanges(v []string) { + o.PodAddressRanges = v +} + +// GetServiceAddressRanges returns the ServiceAddressRanges field value if set, zero value otherwise. +func (o *Network) GetServiceAddressRanges() []string { + if o == nil || IsNil(o.ServiceAddressRanges) { + var ret []string + return ret + } + return o.ServiceAddressRanges +} + +// GetServiceAddressRangesOk returns a tuple with the ServiceAddressRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Network) GetServiceAddressRangesOk() ([]string, bool) { + if o == nil || IsNil(o.ServiceAddressRanges) { + return nil, false + } + return o.ServiceAddressRanges, true +} + +// HasServiceAddressRanges returns a boolean if a field has been set. +func (o *Network) HasServiceAddressRanges() bool { + if o != nil && !IsNil(o.ServiceAddressRanges) { + return true + } + + return false +} + +// SetServiceAddressRanges gets a reference to the given []string and assigns it to the ServiceAddressRanges field. +func (o *Network) SetServiceAddressRanges(v []string) { + o.ServiceAddressRanges = v +} + func (o Network) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +227,12 @@ func (o Network) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.PodAddressRanges) { + toSerialize["podAddressRanges"] = o.PodAddressRanges + } + if !IsNil(o.ServiceAddressRanges) { + toSerialize["serviceAddressRanges"] = o.ServiceAddressRanges + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -184,6 +258,8 @@ func (o *Network) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "cni") delete(additionalProperties, "controlPlane") delete(additionalProperties, "id") + delete(additionalProperties, "podAddressRanges") + delete(additionalProperties, "serviceAddressRanges") o.AdditionalProperties = additionalProperties } diff --git a/services/ske/wait/deprecation.go b/services/ske/wait/deprecation.go deleted file mode 100644 index 58f184c093..0000000000 --- a/services/ske/wait/deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package wait diff --git a/services/ske/wait/wait.go b/services/ske/wait/wait.go deleted file mode 100644 index 16ff759a0d..0000000000 --- a/services/ske/wait/wait.go +++ /dev/null @@ -1,255 +0,0 @@ -package wait - -import ( - "context" - "fmt" - "time" - - "github.com/stackitcloud/stackit-sdk-go/core/wait" - "github.com/stackitcloud/stackit-sdk-go/services/ske" -) - -const ( - // Deprecated: StateHealthy is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_HEALTHY] instead. - StateHealthy = "STATE_HEALTHY" - // Deprecated: StateHibernated is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_HIBERNATED] instead. - StateHibernated = "STATE_HIBERNATED" - StateFailed = "STATE_FAILED" - // Deprecated: StateDeleting is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_DELETING] instead. - StateDeleting = "STATE_DELETING" - // Deprecated: StateCreated is deprecated and will be removed after 14th November 2025. - StateCreated = "STATE_CREATED" - // Deprecated: StateUnhealthy is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_UNHEALTHY] instead. - StateUnhealthy = "STATE_UNHEALTHY" - // Deprecated: StateReconciling is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_RECONCILING] instead. - StateReconciling = "STATE_RECONCILING" - // Deprecated: CredentialsRotationStatePreparing is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_PREPARING] instead. - CredentialsRotationStatePreparing = "PREPARING" - // Deprecated: CredentialsRotationStatePrepared is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_PREPARED] instead. - CredentialsRotationStatePrepared = "PREPARED" - // Deprecated: CredentialsRotationStateCompleting is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_COMPLETING] instead. - CredentialsRotationStateCompleting = "COMPLETING" - // Deprecated: CredentialsRotationStateCompleted is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_COMPLETED] instead. - CredentialsRotationStateCompleted = "COMPLETED" - // Deprecated: InvalidArgusInstanceErrorCode is deprecated and will be removed after 14th November 2025. Use [ske.RUNTIMEERRORCODE_OBSERVABILITY_INSTANCE_NOT_FOUND] instead. - InvalidArgusInstanceErrorCode = "SKE_ARGUS_INSTANCE_NOT_FOUND" -) - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type APIClientClusterInterface interface { - GetClusterExecute(ctx context.Context, projectId, region, name string) (*ske.Cluster, error) - ListClustersExecute(ctx context.Context, projectId, region string) (*ske.ListClustersResponse, error) -} - -// CreateOrUpdateClusterWaitHandler will wait for cluster creation or update -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func CreateOrUpdateClusterWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, name string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - s, err := a.GetClusterExecute(ctx, projectId, region, name) - if err != nil { - return false, nil, err - } - state := *s.Status.Aggregated - - // The state "STATE_UNHEALTHY" (aka "Impaired" in the portal) could be temporarily occur during cluster creation and the system is recovering usually, so it is not considered as a failed state here. - // -- alignment meeting with SKE team on 4.8.23 - // The exception is when providing an invalid argus instance id, in that case the cluster will stay as "Impaired" until the SKE team solves it, but it is still usable. - if state == ske.CLUSTERSTATUSSTATE_UNHEALTHY && s.Status.Error != nil && s.Status.Error.Message != nil && *s.Status.Error.Code == ske.RUNTIMEERRORCODE_OBSERVABILITY_INSTANCE_NOT_FOUND { - return true, s, nil - } - - if state == ske.CLUSTERSTATUSSTATE_HEALTHY || state == ske.CLUSTERSTATUSSTATE_HIBERNATED { - return true, s, nil - } - - if state == StateFailed { - return true, s, fmt.Errorf("create failed") - } - - return false, nil, nil - }) - handler.SetTimeout(45 * time.Minute) - return handler -} - -// DeleteClusterWaitHandler will wait for cluster deletion -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func DeleteClusterWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, name string) *wait.AsyncActionHandler[ske.ListClustersResponse] { - handler := wait.New(func() (waitFinished bool, response *ske.ListClustersResponse, err error) { - s, err := a.ListClustersExecute(ctx, projectId, region) - if err != nil { - return false, nil, err - } - items := *s.Items - for i := range items { - n := items[i].Name - if n != nil && *n == name { - return false, nil, nil - } - } - return true, s, nil - }) - // Timeout was aligned with the service team - handler.SetTimeout(90 * time.Minute) - return handler -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func TriggerClusterHibernationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - cluster, err := a.GetClusterExecute(ctx, projectId, region, clusterName) - if err != nil { - return false, nil, err - } - state := *cluster.Status.Aggregated - - if state == ske.CLUSTERSTATUSSTATE_HIBERNATING { - return false, nil, nil - } - - return true, cluster, nil - }) - handler.SetTimeout(45 * time.Minute) - return handler -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func TriggerClusterMaintenanceWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - cluster, err := a.GetClusterExecute(ctx, projectId, region, clusterName) - if err != nil { - return false, nil, err - } - state := *cluster.Status.Aggregated - - if state == ske.CLUSTERSTATUSSTATE_RECONCILING { - return false, nil, nil - } - - return true, cluster, nil - }) - handler.SetTimeout(45 * time.Minute) - return handler -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func TriggerClusterReconciliationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - cluster, err := a.GetClusterExecute(ctx, projectId, region, clusterName) - if err != nil { - return false, nil, err - } - state := *cluster.Status.Aggregated - - if state == ske.CLUSTERSTATUSSTATE_RECONCILING { - return false, nil, nil - } - - return true, cluster, nil - }) - handler.SetTimeout(45 * time.Minute) - return handler -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func TriggerClusterWakeupWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - cluster, err := a.GetClusterExecute(ctx, projectId, region, clusterName) - if err != nil { - return false, nil, err - } - state := *cluster.Status.Aggregated - - if state == ske.CLUSTERSTATUSSTATE_WAKINGUP { - return false, nil, nil - } - - return true, cluster, nil - }) - handler.SetTimeout(45 * time.Minute) - return handler -} - -// RotateCredentialsWaitHandler will wait for credentials rotation -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func RotateCredentialsWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - s, err := a.GetClusterExecute(ctx, projectId, region, clusterName) - if err != nil { - return false, nil, err - } - state := *s.Status.Aggregated - - if state == ske.CLUSTERSTATUSSTATE_HEALTHY || state == ske.CLUSTERSTATUSSTATE_HIBERNATED { - return true, s, nil - } - - if state == ske.CLUSTERSTATUSSTATE_RECONCILING { - return false, nil, nil - } - - if state == StateFailed { - return true, s, fmt.Errorf("credentials rotation failed") - } - - return true, s, fmt.Errorf("unexpected state %s while waiting for cluster reconciliation", state) - }) - - handler.SetTimeout(10 * time.Minute) - return handler -} - -// StartCredentialsRotationWaitHandler will wait for credentials rotation -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func StartCredentialsRotationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - s, err := a.GetClusterExecute(ctx, projectId, region, clusterName) - if err != nil { - return false, nil, err - } - state := *s.Status.CredentialsRotation.Phase - - if state == ske.CREDENTIALSROTATIONSTATEPHASE_PREPARED { - return true, s, nil - } - - if state == ske.CREDENTIALSROTATIONSTATEPHASE_PREPARING { - return false, nil, nil - } - - return true, s, fmt.Errorf("unexpected status %s while waiting for cluster credentials rotation to be prepared", state) - }) - - handler.SetTimeout(45 * time.Minute) - return handler -} - -// CompleteCredentialsRotationWaitHandler will wait for credentials rotation -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func CompleteCredentialsRotationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster] { - handler := wait.New(func() (waitFinished bool, response *ske.Cluster, err error) { - s, err := a.GetClusterExecute(ctx, projectId, region, clusterName) - if err != nil { - return false, nil, err - } - state := *s.Status.CredentialsRotation.Phase - - if state == ske.CREDENTIALSROTATIONSTATEPHASE_COMPLETED { - return true, s, nil - } - - if state == ske.CREDENTIALSROTATIONSTATEPHASE_COMPLETING { - return false, nil, nil - } - - return true, s, fmt.Errorf("unexpected status %s while waiting for cluster credentials rotation to be completed", state) - }) - - handler.SetTimeout(45 * time.Minute) - return handler -} diff --git a/services/ske/wait/wait_test.go b/services/ske/wait/wait_test.go deleted file mode 100644 index f5c64c74bc..0000000000 --- a/services/ske/wait/wait_test.go +++ /dev/null @@ -1,530 +0,0 @@ -package wait - -import ( - "context" - "net/http" - "testing" - "testing/synctest" - "time" - - "github.com/google/go-cmp/cmp" - - "github.com/stackitcloud/stackit-sdk-go/core/oapierror" - "github.com/stackitcloud/stackit-sdk-go/core/utils" - "github.com/stackitcloud/stackit-sdk-go/services/ske" -) - -// Used for testing cluster operations -type apiClientClusterMocked struct { - getFails bool - name string - resourceState ske.ClusterStatusState - invalidArgusInstance bool -} - -const testRegion = "eu01" - -func (a *apiClientClusterMocked) GetClusterExecute(_ context.Context, _, _, _ string) (*ske.Cluster, error) { - if a.getFails { - return nil, &oapierror.GenericOpenAPIError{ - StatusCode: http.StatusInternalServerError, - } - } - rs := ske.ClusterStatusState(a.resourceState) - - if a.invalidArgusInstance { - return &ske.Cluster{ - Name: utils.Ptr("cluster"), - Status: &ske.ClusterStatus{ - Aggregated: &rs, - Error: &ske.RuntimeError{ - Code: utils.Ptr(ske.RUNTIMEERRORCODE_OBSERVABILITY_INSTANCE_NOT_FOUND), - Message: utils.Ptr("invalid argus instance"), - }, - }, - }, nil - } - return &ske.Cluster{ - Name: utils.Ptr("cluster"), - Status: &ske.ClusterStatus{ - Aggregated: &rs, - }, - }, nil -} - -func (a *apiClientClusterMocked) ListClustersExecute(_ context.Context, _, _ string) (*ske.ListClustersResponse, error) { - if a.getFails { - return nil, &oapierror.GenericOpenAPIError{ - StatusCode: http.StatusInternalServerError, - } - } - rs := ske.ClusterStatusState(a.resourceState) - return &ske.ListClustersResponse{ - Items: &[]ske.Cluster{ - { - Name: utils.Ptr("cluster"), - Status: &ske.ClusterStatus{ - Aggregated: &rs, - }, - }, - }, - }, nil -} - -func TestCreateOrUpdateClusterWaitHandler(t *testing.T) { - tests := []struct { - desc string - getFails bool - resourceState ske.ClusterStatusState - invalidArgusInstance bool - wantErr bool - wantResp bool - }{ - { - desc: "create_succeeded", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HEALTHY, - wantErr: false, - wantResp: true, - }, - { - desc: "update_succeeded", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HIBERNATED, - wantErr: false, - wantResp: true, - }, - { - desc: "unhealthy_cluster", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_UNHEALTHY, - invalidArgusInstance: true, - wantErr: false, - wantResp: true, - }, - { - desc: "create_failed", - getFails: false, - resourceState: StateFailed, - wantErr: true, - wantResp: true, - }, - { - desc: "get_fails", - getFails: true, - wantErr: true, - wantResp: false, - }, - { - desc: "timeout", - getFails: false, - resourceState: "ANOTHER STATE", - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - name := "cluster" - - apiClient := &apiClientClusterMocked{ - getFails: tt.getFails, - name: name, - resourceState: tt.resourceState, - invalidArgusInstance: tt.invalidArgusInstance, - } - var wantRes *ske.Cluster - rs := ske.ClusterStatusState(tt.resourceState) - if tt.wantResp { - wantRes = &ske.Cluster{ - Name: &name, - Status: &ske.ClusterStatus{ - Aggregated: &rs, - }, - } - - if tt.invalidArgusInstance { - wantRes.Status.Error = &ske.RuntimeError{ - Code: utils.Ptr(ske.RUNTIMEERRORCODE_OBSERVABILITY_INSTANCE_NOT_FOUND), - Message: utils.Ptr("invalid argus instance"), - } - } - } - - handler := CreateOrUpdateClusterWaitHandler(context.Background(), apiClient, "", testRegion, name) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %+v, want %+v", gotRes, wantRes) - } - }) - }) - } -} - -func TestTriggerClusterHibernationWaitHandler(t *testing.T) { - tests := []struct { - description string - getFails bool - resourceState ske.ClusterStatusState - wantErr bool - wantResp bool - }{ - { - description: "hibernation ongoing (timeout)", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HIBERNATING, - wantErr: true, - wantResp: false, - }, - { - description: "hibernation succeeded", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HIBERNATED, - wantErr: false, - wantResp: true, - }, - { - description: "unexpected status", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HEALTHY, - wantErr: false, - wantResp: true, - }, - { - description: "get_fails", - getFails: true, - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.description, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - name := "cluster" - - apiClient := &apiClientClusterMocked{ - getFails: tt.getFails, - name: name, - resourceState: tt.resourceState, - } - var wantRes *ske.Cluster - if tt.wantResp { - wantRes = &ske.Cluster{ - Name: &name, - Status: &ske.ClusterStatus{ - Aggregated: utils.Ptr(tt.resourceState), - }, - } - } - - handler := TriggerClusterHibernationWaitHandler(context.Background(), apiClient, "", testRegion, name) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %+v, want %+v", gotRes, wantRes) - } - }) - }) - } -} - -func TestTriggerClusterMaintenanceWaitHandler(t *testing.T) { - tests := []struct { - description string - getFails bool - resourceState ske.ClusterStatusState - wantErr bool - wantResp bool - }{ - { - description: "maintenance ongoing (timeout)", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_RECONCILING, - wantErr: true, - wantResp: false, - }, - { - description: "maintenance succeeded", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HEALTHY, - wantErr: false, - wantResp: true, - }, - { - description: "unexpected status", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HIBERNATED, - wantErr: false, - wantResp: true, - }, - { - description: "get_fails", - getFails: true, - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.description, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - name := "cluster" - - apiClient := &apiClientClusterMocked{ - getFails: tt.getFails, - name: name, - resourceState: tt.resourceState, - } - var wantRes *ske.Cluster - if tt.wantResp { - wantRes = &ske.Cluster{ - Name: &name, - Status: &ske.ClusterStatus{ - Aggregated: utils.Ptr(tt.resourceState), - }, - } - } - - handler := TriggerClusterMaintenanceWaitHandler(context.Background(), apiClient, "", testRegion, name) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %+v, want %+v", gotRes, wantRes) - } - }) - }) - } -} - -func TestTriggerClusterWakeupWaitHandler(t *testing.T) { - tests := []struct { - description string - getFails bool - resourceState ske.ClusterStatusState - wantErr bool - wantResp bool - }{ - { - description: "wakeup ongoing (timeout)", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_WAKINGUP, - wantErr: true, - wantResp: false, - }, - { - description: "wakeup succeeded", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HEALTHY, - wantErr: false, - wantResp: true, - }, - { - description: "unexpected status", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_DELETING, - wantErr: false, - wantResp: true, - }, - { - description: "get_fails", - getFails: true, - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.description, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - name := "cluster" - - apiClient := &apiClientClusterMocked{ - getFails: tt.getFails, - name: name, - resourceState: tt.resourceState, - } - var wantRes *ske.Cluster - if tt.wantResp { - wantRes = &ske.Cluster{ - Name: &name, - Status: &ske.ClusterStatus{ - Aggregated: utils.Ptr(tt.resourceState), - }, - } - } - - handler := TriggerClusterWakeupWaitHandler(context.Background(), apiClient, "", testRegion, name) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %+v, want %+v", gotRes, wantRes) - } - }) - }) - } -} - -func TestTriggerClusterReconciliationWaitHandler(t *testing.T) { - tests := []struct { - description string - getFails bool - resourceState ske.ClusterStatusState - wantErr bool - wantResp bool - }{ - { - description: "reconciliation ongoing (timeout)", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_RECONCILING, - wantErr: true, - wantResp: false, - }, - { - description: "reconciliation succeeded", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HEALTHY, - wantErr: false, - wantResp: true, - }, - { - description: "unexpected status", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_CREATING, - wantErr: false, - wantResp: true, - }, - { - description: "get_fails", - getFails: true, - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.description, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - name := "cluster" - - apiClient := &apiClientClusterMocked{ - getFails: tt.getFails, - name: name, - resourceState: tt.resourceState, - } - var wantRes *ske.Cluster - if tt.wantResp { - wantRes = &ske.Cluster{ - Name: &name, - Status: &ske.ClusterStatus{ - Aggregated: utils.Ptr(tt.resourceState), - }, - } - } - - handler := TriggerClusterReconciliationWaitHandler(context.Background(), apiClient, "", testRegion, name) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %+v, want %+v", gotRes, wantRes) - } - }) - }) - } -} - -func TestRotateCredentialsWaitHandler(t *testing.T) { - tests := []struct { - desc string - getFails bool - resourceState ske.ClusterStatusState - wantErr bool - wantResp bool - }{ - { - desc: "reconciliation_succeeded_1", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HEALTHY, - wantErr: false, - wantResp: true, - }, - { - desc: "reconciliation_succeeded_2", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_HIBERNATED, - wantErr: false, - wantResp: true, - }, - { - desc: "reconciliation_failed", - getFails: false, - resourceState: StateFailed, - wantErr: true, - wantResp: true, - }, - { - desc: "get_fails", - getFails: true, - wantErr: true, - wantResp: false, - }, - { - desc: "timeout", - getFails: false, - resourceState: ske.CLUSTERSTATUSSTATE_RECONCILING, - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - name := "cluster" - - apiClient := &apiClientClusterMocked{ - getFails: tt.getFails, - name: name, - resourceState: tt.resourceState, - } - var wantRes *ske.Cluster - if tt.wantResp { - wantRes = &ske.Cluster{ - Name: &name, - Status: &ske.ClusterStatus{ - Aggregated: utils.Ptr(tt.resourceState), - }, - } - } - - handler := RotateCredentialsWaitHandler(context.Background(), apiClient, "", testRegion, name) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %+v, want %+v", gotRes, wantRes) - } - }) - }) - } -}