From f8c8033d060f0c82b1f29eae5b5603ff13a71ca0 Mon Sep 17 00:00:00 2001 From: Manish Singh <142880974+mani5h-harness@users.noreply.github.com> Date: Wed, 22 Jan 2025 18:49:39 +0530 Subject: [PATCH] fix: [CDS-105804]: Add forceDelete to cluster delete request (#631) * fix: [CDS-105804]: Add forceDelete to cluster delete request * fix: [CDS-105804]: Add forceDelete to cluster delete request * fix: [CDS-105804]: Add forceDelete to cluster delete request --- harness/nextgen/api_clusters.go | 5 +++++ harness/nextgen/docs/ClustersApi.md | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/harness/nextgen/api_clusters.go b/harness/nextgen/api_clusters.go index 38ff5103..1d0c665b 100644 --- a/harness/nextgen/api_clusters.go +++ b/harness/nextgen/api_clusters.go @@ -191,6 +191,7 @@ Delete cluster. * @param "QueryIdType" (optional.String) - type is the type of the specified cluster identifier ( \"server\" - default, \"name\" ). * @param "QueryIdValue" (optional.String) - value holds the cluster server URL or cluster name. * @param "QueryProject" (optional.String) - + * @param "ForceDelete" (optional.Bool) - @return ClustersClusterResponse */ @@ -203,6 +204,7 @@ type ClustersApiAgentClusterServiceDeleteOpts struct { QueryIdType optional.String QueryIdValue optional.String QueryProject optional.String + ForceDelete optional.Bool } func (a *ClustersApiService) AgentClusterServiceDelete(ctx context.Context, agentIdentifier string, identifier string, localVarOptionals *ClustersApiAgentClusterServiceDeleteOpts) (ClustersClusterResponse, *http.Response, error) { @@ -248,6 +250,9 @@ func (a *ClustersApiService) AgentClusterServiceDelete(ctx context.Context, agen if localVarOptionals != nil && localVarOptionals.QueryProject.IsSet() { localVarQueryParams.Add("query.project", parameterToString(localVarOptionals.QueryProject.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.ForceDelete.IsSet() { + localVarQueryParams.Add("forceDelete", parameterToString(localVarOptionals.ForceDelete.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} diff --git a/harness/nextgen/docs/ClustersApi.md b/harness/nextgen/docs/ClustersApi.md index 99ad9892..8f822a60 100644 --- a/harness/nextgen/docs/ClustersApi.md +++ b/harness/nextgen/docs/ClustersApi.md @@ -89,6 +89,7 @@ Name | Type | Description | Notes **queryIdType** | **optional.String**| type is the type of the specified cluster identifier ( \"server\" - default, \"name\" ). | **queryIdValue** | **optional.String**| value holds the cluster server URL or cluster name. | **queryProject** | **optional.String**| | + **forceDelete** | **optional.Bool**| | ### Return type @@ -162,8 +163,8 @@ List clusters. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **agentIdentifier** | **string**| Agent identifier for entity. | - **accountIdentifier** | **string**| Account Identifier for the Entity. | + **agentIdentifier** | **string**| Agent identifier for entity. | + **accountIdentifier** | **string**| Account Identifier for the Entity. | **optional** | ***ClustersApiAgentClusterServiceListOpts** | optional parameters | nil if no parameters ### Optional Parameters