diff --git a/services/ske/api_default.go b/services/ske/api_default.go index b11c1527b..9c8873fcf 100644 --- a/services/ske/api_default.go +++ b/services/ske/api_default.go @@ -83,7 +83,7 @@ type DefaultApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param region - @param clusterName + @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 @@ -95,7 +95,7 @@ type DefaultApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param region - @param clusterName + @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 @@ -963,7 +963,7 @@ Deprecated: Will be removed after 2026-09-30. Move to the packages generated for @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param region - @param clusterName + @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 { diff --git a/services/ske/model_cluster.go b/services/ske/model_cluster.go index a46ee1e14..85da3402e 100644 --- a/services/ske/model_cluster.go +++ b/services/ske/model_cluster.go @@ -270,8 +270,9 @@ type Cluster struct { // REQUIRED Kubernetes ClusterGetKubernetesAttributeType `json:"kubernetes" required:"true"` Maintenance ClusterGetMaintenanceAttributeType `json:"maintenance,omitempty"` - Name ClusterGetNameAttributeType `json:"name,omitempty"` - Network ClusterGetNetworkAttributeType `json:"network,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"` diff --git a/services/ske/oas_commit b/services/ske/oas_commit index 6ba71f50d..5c05d0ead 100644 --- a/services/ske/oas_commit +++ b/services/ske/oas_commit @@ -1 +1 @@ -d2755fb2bda0e2105f920af64d7176d184b2bcb7 +58dbd39e05f1ddc2d44b191eb3476225130c4ded diff --git a/services/ske/v1api/api_default.go b/services/ske/v1api/api_default.go index cfacdd905..10fbe076f 100644 --- a/services/ske/v1api/api_default.go +++ b/services/ske/v1api/api_default.go @@ -62,7 +62,7 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId - @param clusterName + @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 */ CreateOrUpdateCluster(ctx context.Context, projectId string, clusterName string) ApiCreateOrUpdateClusterRequest @@ -569,7 +569,7 @@ Create a new cluster in your project or modify an existing one. To get valid val @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId - @param clusterName + @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 *DefaultAPIService) CreateOrUpdateCluster(ctx context.Context, projectId string, clusterName string) ApiCreateOrUpdateClusterRequest { diff --git a/services/ske/v1api/model_cluster.go b/services/ske/v1api/model_cluster.go index 3c10f343e..cbb937db8 100644 --- a/services/ske/v1api/model_cluster.go +++ b/services/ske/v1api/model_cluster.go @@ -20,11 +20,12 @@ var _ MappedNullable = &Cluster{} // Cluster struct for Cluster type Cluster struct { - Extensions *Extension `json:"extensions,omitempty"` - Hibernation *Hibernation `json:"hibernation,omitempty"` - Kubernetes Kubernetes `json:"kubernetes"` - Maintenance *Maintenance `json:"maintenance,omitempty"` - Name *string `json:"name,omitempty"` + Extensions *Extension `json:"extensions,omitempty"` + Hibernation *Hibernation `json:"hibernation,omitempty"` + Kubernetes Kubernetes `json:"kubernetes"` + Maintenance *Maintenance `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 *string `json:"name,omitempty" validate:"regexp=^[a-z0-9]([a-z0-9-]{0,9}[a-z0-9])?$"` Network *Network `json:"network,omitempty"` Nodepools []Nodepool `json:"nodepools"` Status *ClusterStatus `json:"status,omitempty"` diff --git a/services/ske/v2api/api_default.go b/services/ske/v2api/api_default.go index a86b47e70..b6686ff04 100644 --- a/services/ske/v2api/api_default.go +++ b/services/ske/v2api/api_default.go @@ -65,7 +65,7 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param region - @param clusterName + @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 */ CreateOrUpdateCluster(ctx context.Context, projectId string, region string, clusterName string) ApiCreateOrUpdateClusterRequest @@ -609,7 +609,7 @@ Create a new cluster in your project or modify an existing one. To get valid val @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param region - @param clusterName + @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 *DefaultAPIService) CreateOrUpdateCluster(ctx context.Context, projectId string, region string, clusterName string) ApiCreateOrUpdateClusterRequest { diff --git a/services/ske/v2api/model_cluster.go b/services/ske/v2api/model_cluster.go index 7f86f54aa..6e36098dc 100644 --- a/services/ske/v2api/model_cluster.go +++ b/services/ske/v2api/model_cluster.go @@ -20,12 +20,13 @@ var _ MappedNullable = &Cluster{} // Cluster struct for Cluster type Cluster struct { - Access *Access `json:"access,omitempty"` - Extensions *Extension `json:"extensions,omitempty"` - Hibernation *Hibernation `json:"hibernation,omitempty"` - Kubernetes Kubernetes `json:"kubernetes"` - Maintenance *Maintenance `json:"maintenance,omitempty"` - Name *string `json:"name,omitempty"` + Access *Access `json:"access,omitempty"` + Extensions *Extension `json:"extensions,omitempty"` + Hibernation *Hibernation `json:"hibernation,omitempty"` + Kubernetes Kubernetes `json:"kubernetes"` + Maintenance *Maintenance `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 *string `json:"name,omitempty" validate:"regexp=^[a-z0-9]([a-z0-9-]{0,9}[a-z0-9])?$"` Network *Network `json:"network,omitempty"` Nodepools []Nodepool `json:"nodepools"` Status *ClusterStatus `json:"status,omitempty"`