diff --git a/harness/nextgen/api_applications.go b/harness/nextgen/api_applications.go index baca2b61..b3591d23 100644 --- a/harness/nextgen/api_applications.go +++ b/harness/nextgen/api_applications.go @@ -38,6 +38,7 @@ Creates application in project. * @param "ProjectIdentifier" (optional.String) - Project Identifier for the Entity. * @param "ClusterIdentifier" (optional.String) - * @param "RepoIdentifier" (optional.String) - + * @param "SkipRepoValidation" (optional.Bool) - @return Servicev1Application */ @@ -46,7 +47,8 @@ type ApplicationsApiAgentApplicationServiceCreateOpts struct { OrgIdentifier optional.String ProjectIdentifier optional.String ClusterIdentifier optional.String - RepoIdentifier optional.String + RepoIdentifier optional.String + SkipRepoValidation optional.Bool } func (a *ApplicationsApiService) AgentApplicationServiceCreate(ctx context.Context, body ApplicationsApplicationCreateRequest, agentIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServiceCreateOpts) (Servicev1Application, *http.Response, error) { @@ -82,6 +84,9 @@ func (a *ApplicationsApiService) AgentApplicationServiceCreate(ctx context.Conte if localVarOptionals != nil && localVarOptionals.RepoIdentifier.IsSet() { localVarQueryParams.Add("repoIdentifier", parameterToString(localVarOptionals.RepoIdentifier.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.SkipRepoValidation.IsSet() { + localVarQueryParams.Add("skipRepoValidation", parameterToString(localVarOptionals.SkipRepoValidation.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{"application/json"} @@ -502,7 +507,7 @@ ApplicationsApiService Get returns an application by name */ type ApplicationsApiAgentApplicationServiceGetOpts struct { - QueryRefresh optional.String + QueryRefresh optional.String QueryProject optional.Interface QueryResourceVersion optional.String QuerySelector optional.String @@ -3033,12 +3038,14 @@ Update updates an application. * @param optional nil or *ApplicationsApiAgentApplicationServiceUpdateOpts - Optional Parameters: * @param "ClusterIdentifier" (optional.String) - * @param "RepoIdentifier" (optional.String) - + * @param "SkipRepoValidation" (optional.Bool) - @return Servicev1Application */ type ApplicationsApiAgentApplicationServiceUpdateOpts struct { ClusterIdentifier optional.String RepoIdentifier optional.String + SkipRepoValidation optional.Bool } func (a *ApplicationsApiService) AgentApplicationServiceUpdate(ctx context.Context, body ApplicationsApplicationUpdateRequest, accountIdentifier string, orgIdentifier string, projectIdentifier string, agentIdentifier string, requestApplicationMetadataName string, localVarOptionals *ApplicationsApiAgentApplicationServiceUpdateOpts) (Servicev1Application, *http.Response, error) { @@ -3069,7 +3076,10 @@ func (a *ApplicationsApiService) AgentApplicationServiceUpdate(ctx context.Conte if localVarOptionals != nil && localVarOptionals.RepoIdentifier.IsSet() { localVarQueryParams.Add("repoIdentifier", parameterToString(localVarOptionals.RepoIdentifier.Value(), "")) } - // to determine the Content-Type header + if localVarOptionals != nil && localVarOptionals.SkipRepoValidation.IsSet() { + localVarQueryParams.Add("skipRepoValidation", parameterToString(localVarOptionals.SkipRepoValidation.Value(), "")) + } + // to determine the Content-Type header localVarHttpContentTypes := []string{"application/json"} // set Content-Type header diff --git a/harness/nextgen/docs/ApplicationsApi.md b/harness/nextgen/docs/ApplicationsApi.md index 869a381a..872b15d0 100644 --- a/harness/nextgen/docs/ApplicationsApi.md +++ b/harness/nextgen/docs/ApplicationsApi.md @@ -58,7 +58,7 @@ Name | Type | Description | Notes **projectIdentifier** | **optional.**| Project Identifier for the Entity. | **clusterIdentifier** | **optional.**| | **repoIdentifier** | **optional.**| | - + **skipRepoValidation** | **optional.**| | ### Return type [**Servicev1Application**](servicev1Application.md) @@ -961,7 +961,7 @@ Name | Type | Description | Notes **clusterIdentifier** | **optional.**| | **repoIdentifier** | **optional.**| | - + **skipRepoValidation** | **optional.**| | ### Return type [**Servicev1Application**](servicev1Application.md) diff --git a/harness/nextgen/model_servicev1_application.go b/harness/nextgen/model_servicev1_application.go index b504b674..586b73d8 100644 --- a/harness/nextgen/model_servicev1_application.go +++ b/harness/nextgen/model_servicev1_application.go @@ -29,4 +29,5 @@ type Servicev1Application struct { CreatedAt time.Time `json:"createdAt,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt,omitempty"` Stale bool `json:"stale,omitempty"` + SkipRepoValidation bool `json:"skipRepoValidation,omitempty"` }