Skip to content

Commit

Permalink
fix: [CDS-105804]: Add forceDelete to cluster delete request (#631)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mani5h-harness authored Jan 22, 2025
1 parent d9e46e4 commit f8c8033
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions harness/nextgen/api_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand All @@ -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) {
Expand Down Expand Up @@ -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{}

Expand Down
5 changes: 3 additions & 2 deletions harness/nextgen/docs/ClustersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f8c8033

Please sign in to comment.