Skip to content

Commit d6c643a

Browse files
fix : [CDS-112204] Added forceUpdate to update cluster request. (#682)
* fix : added forceupdate to update cluster request * fix : [CDS-112204] : Added forceUpdate to the cluster update request * Update api_clusters.go * docs:[CDS-112204] : fixed the comments for better understanding --------- Co-authored-by: Himanshu Sharma <[email protected]>
1 parent 262cd9d commit d6c643a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

harness/nextgen/api_clusters.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ type ClustersApiAgentClusterServiceUpdateOpts struct {
691691
AccountIdentifier optional.String
692692
OrgIdentifier optional.String
693693
ProjectIdentifier optional.String
694+
ForceUpdate optional.Bool
694695
}
695696

696697
func (a *ClustersApiService) AgentClusterServiceUpdate(ctx context.Context, body ClustersClusterUpdateRequest, agentIdentifier string, identifier string, localVarOptionals *ClustersApiAgentClusterServiceUpdateOpts) (Servicev1Cluster, *http.Response, error) {
@@ -721,6 +722,9 @@ func (a *ClustersApiService) AgentClusterServiceUpdate(ctx context.Context, body
721722
if localVarOptionals != nil && localVarOptionals.ProjectIdentifier.IsSet() {
722723
localVarQueryParams.Add("projectIdentifier", parameterToString(localVarOptionals.ProjectIdentifier.Value(), ""))
723724
}
725+
if localVarOptionals != nil && localVarOptionals.ForceUpdate.IsSet() {
726+
localVarQueryParams.Add("forceUpdate", parameterToString(localVarOptionals.ForceUpdate.Value(), ""))
727+
}
724728
// to determine the Content-Type header
725729
localVarHttpContentTypes := []string{"application/json"}
726730

@@ -960,6 +964,7 @@ Checks for whether the cluster exists
960964
* @param optional nil or *ClustersApiClusterServiceExistsOpts - Optional Parameters:
961965
* @param "OrgIdentifier" (optional.String) - Organization Identifier for the Entity.
962966
* @param "ProjectIdentifier" (optional.String) - Project Identifier for the Entity.
967+
* @param "ForceUpdate" (optional.Bool) - ForceUpdate allows updating the cluster name even if it is currently referenced by applications.
963968
* @param "AgentIdentifier" (optional.String) - Agent identifier for entity.
964969
* @param "Server" (optional.String) -
965970
@return bool

harness/nextgen/docs/ClustersApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ Name | Type | Description | Notes
223223
**accountIdentifier** | **optional.**| Account Identifier for the Entity. |
224224
**orgIdentifier** | **optional.**| Organization Identifier for the Entity. |
225225
**projectIdentifier** | **optional.**| Project Identifier for the Entity. |
226+
**forceUpdate** | **optional.**| forceUpdate allows updating the cluster name even if it is currently referenced by applications. |
226227

227228
### Return type
228229

0 commit comments

Comments
 (0)