From 6e0ccc82f01c3fcbcaa1eb0bd33dac3505fdf53e Mon Sep 17 00:00:00 2001 From: testA113 Date: Tue, 8 Oct 2024 12:09:39 +1300 Subject: [PATCH] fix doc resource name --- api/http/handler/kubernetes/cluster_role_bindings.go | 4 ++-- api/http/handler/kubernetes/cluster_roles.go | 4 ++-- api/http/handler/kubernetes/role_bindings.go | 4 ++-- api/http/handler/kubernetes/roles.go | 4 ++-- api/http/handler/kubernetes/service_accounts.go | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api/http/handler/kubernetes/cluster_role_bindings.go b/api/http/handler/kubernetes/cluster_role_bindings.go index de98025b8..d4c6078ee 100644 --- a/api/http/handler/kubernetes/cluster_role_bindings.go +++ b/api/http/handler/kubernetes/cluster_role_bindings.go @@ -60,8 +60,8 @@ func (handler *Handler) getAllKubernetesClusterRoleBindings(w http.ResponseWrite // @failure 400 "Invalid request payload, such as missing required fields or fields not meeting validation criteria." // @failure 401 "Unauthorized access - the user is not authenticated or does not have the necessary permissions. Ensure that you have provided a valid API key or JWT token, and that you have the required permissions." // @failure 403 "Permission denied - the user is authenticated but does not have the necessary permissions to access the requested resource or perform the specified operation. Check your user roles and permissions." -// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific service." -// @failure 500 "Server error occurred while attempting to delete services." +// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific cluster role binding." +// @failure 500 "Server error occurred while attempting to delete cluster role bindings." // @router /kubernetes/{id}/cluster_role_bindings/delete [POST] func (handler *Handler) deleteClusterRoleBindings(w http.ResponseWriter, r *http.Request) *httperror.HandlerError { var payload models.K8sClusterRoleBindingDeleteRequests diff --git a/api/http/handler/kubernetes/cluster_roles.go b/api/http/handler/kubernetes/cluster_roles.go index 1cbe674f1..d38e16315 100644 --- a/api/http/handler/kubernetes/cluster_roles.go +++ b/api/http/handler/kubernetes/cluster_roles.go @@ -60,8 +60,8 @@ func (handler *Handler) getAllKubernetesClusterRoles(w http.ResponseWriter, r *h // @failure 400 "Invalid request payload, such as missing required fields or fields not meeting validation criteria." // @failure 401 "Unauthorized access - the user is not authenticated or does not have the necessary permissions. Ensure that you have provided a valid API key or JWT token, and that you have the required permissions." // @failure 403 "Permission denied - the user is authenticated but does not have the necessary permissions to access the requested resource or perform the specified operation. Check your user roles and permissions." -// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific service." -// @failure 500 "Server error occurred while attempting to delete services." +// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific cluster role." +// @failure 500 "Server error occurred while attempting to delete cluster roles." // @router /kubernetes/{id}/cluster_roles/delete [POST] func (handler *Handler) deleteClusterRoles(w http.ResponseWriter, r *http.Request) *httperror.HandlerError { var payload models.K8sClusterRoleDeleteRequests diff --git a/api/http/handler/kubernetes/role_bindings.go b/api/http/handler/kubernetes/role_bindings.go index 208799815..bbae2401f 100644 --- a/api/http/handler/kubernetes/role_bindings.go +++ b/api/http/handler/kubernetes/role_bindings.go @@ -55,8 +55,8 @@ func (handler *Handler) getAllKubernetesRoleBindings(w http.ResponseWriter, r *h // @failure 400 "Invalid request payload, such as missing required fields or fields not meeting validation criteria." // @failure 401 "Unauthorized access - the user is not authenticated or does not have the necessary permissions. Ensure that you have provided a valid API key or JWT token, and that you have the required permissions." // @failure 403 "Permission denied - the user is authenticated but does not have the necessary permissions to access the requested resource or perform the specified operation. Check your user roles and permissions." -// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific service." -// @failure 500 "Server error occurred while attempting to delete services." +// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific role binding." +// @failure 500 "Server error occurred while attempting to delete role bindings." // @router /kubernetes/{id}/role_bindings/delete [POST] func (h *Handler) deleteRoleBindings(w http.ResponseWriter, r *http.Request) *httperror.HandlerError { var payload models.K8sRoleBindingDeleteRequests diff --git a/api/http/handler/kubernetes/roles.go b/api/http/handler/kubernetes/roles.go index 088d327ef..15c235a5f 100644 --- a/api/http/handler/kubernetes/roles.go +++ b/api/http/handler/kubernetes/roles.go @@ -55,8 +55,8 @@ func (handler *Handler) getAllKubernetesRoles(w http.ResponseWriter, r *http.Req // @failure 400 "Invalid request payload, such as missing required fields or fields not meeting validation criteria." // @failure 401 "Unauthorized access - the user is not authenticated or does not have the necessary permissions. Ensure that you have provided a valid API key or JWT token, and that you have the required permissions." // @failure 403 "Permission denied - the user is authenticated but does not have the necessary permissions to access the requested resource or perform the specified operation. Check your user roles and permissions." -// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific service." -// @failure 500 "Server error occurred while attempting to delete services." +// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific role." +// @failure 500 "Server error occurred while attempting to delete roles." // @router /kubernetes/{id}/roles/delete [POST] func (h *Handler) deleteRoles(w http.ResponseWriter, r *http.Request) *httperror.HandlerError { var payload models.K8sRoleDeleteRequests diff --git a/api/http/handler/kubernetes/service_accounts.go b/api/http/handler/kubernetes/service_accounts.go index 3647a7c2d..d0ce15b6f 100644 --- a/api/http/handler/kubernetes/service_accounts.go +++ b/api/http/handler/kubernetes/service_accounts.go @@ -55,8 +55,8 @@ func (handler *Handler) getAllKubernetesServiceAccounts(w http.ResponseWriter, r // @failure 400 "Invalid request payload, such as missing required fields or fields not meeting validation criteria." // @failure 401 "Unauthorized access - the user is not authenticated or does not have the necessary permissions. Ensure that you have provided a valid API key or JWT token, and that you have the required permissions." // @failure 403 "Permission denied - the user is authenticated but does not have the necessary permissions to access the requested resource or perform the specified operation. Check your user roles and permissions." -// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific service." -// @failure 500 "Server error occurred while attempting to delete services." +// @failure 404 "Unable to find an environment with the specified identifier or unable to find a specific service account." +// @failure 500 "Server error occurred while attempting to delete service accounts." // @router /kubernetes/{id}/service_accounts/delete [POST] func (handler *Handler) deleteKubernetesServiceAccounts(w http.ResponseWriter, r *http.Request) *httperror.HandlerError { var payload models.K8sServiceAccountDeleteRequests