From d9e46e45e912be12ad6ce13443b24dbe0d7386ed Mon Sep 17 00:00:00 2001 From: Ashin Sabu <139749674+ashinsabu3@users.noreply.github.com> Date: Tue, 21 Jan 2025 23:48:30 +0530 Subject: [PATCH] techdebt: [CDS-102254]: update appproject and apps models (#629) * techdebt: [CDS-102254]: update appproject and apps models * techdebt: [CDS-102254]: update repositories api * techdebt: [CDS-102254]: update applications api * techdebt: [CDS-102254]: cluster config model * techdebt: [CDS-102254]: applications api docs * techdebt: [CDS-102254]: cluster config model doc * techdebt: [CDS-102254]: repository api doc * techdebt: [CDS-102254]: repository model doc --- harness/nextgen/api_applications.go | 130 ++++++++++++++++-- harness/nextgen/api_repositories.go | 89 +++++++++++- harness/nextgen/docs/ApplicationsApi.md | 83 +++++++---- .../docs/ApplicationsApplicationCondition.md | 1 + .../ApplicationsApplicationPatchRequest.md | 2 + ...icationsApplicationResourcePatchRequest.md | 2 + .../ApplicationsApplicationRollbackRequest.md | 2 + .../docs/ApplicationsApplicationSource.md | 1 + .../docs/ApplicationsApplicationSourceHelm.md | 8 ++ .../ApplicationsApplicationSourceKustomize.md | 5 + .../ApplicationsApplicationSourcePlugin.md | 1 + .../ApplicationsApplicationSyncRequest.md | 4 + .../ApplicationsApplicationUpdateRequest.md | 1 + ...pplicationsApplicationUpdateSpecRequest.md | 2 + .../nextgen/docs/ApplicationsHealthStatus.md | 1 + .../docs/ApplicationsOperationState.md | 2 + .../ApplicationsResourceActionRunRequest.md | 2 + .../docs/ApplicationsResourceStatus.md | 2 + .../docs/ApplicationsRevisionHistory.md | 2 + .../nextgen/docs/ApplicationsSyncOperation.md | 1 + .../docs/ApplicationsSyncOperationResult.md | 1 + .../nextgen/docs/ApplicationsSyncPolicy.md | 1 + .../nextgen/docs/ApplicationsSyncStatus.md | 1 + .../nextgen/docs/AppprojectsAppProjectSpec.md | 3 + harness/nextgen/docs/ClustersClusterConfig.md | 2 + harness/nextgen/docs/RepositoriesApi.md | 32 +++++ .../nextgen/docs/RepositoriesRepository.md | 2 + ...odel_applications_application_condition.go | 1 - ...applications_application_delete_request.go | 6 +- ..._applications_application_patch_request.go | 8 +- ...ions_application_resource_patch_request.go | 2 + ...plications_application_rollback_request.go | 10 +- .../model_applications_application_source.go | 2 + ...el_applications_application_source_helm.go | 26 +++- ...plications_application_source_kustomize.go | 27 ++-- ..._applications_application_source_plugin.go | 5 +- ...ons_application_source_plugin_parameter.go | 19 +++ .../model_applications_application_status.go | 26 ++-- ...l_applications_application_sync_request.go | 24 ++-- .../nextgen/model_applications_compared_to.go | 6 +- .../model_applications_kustomize_gvk.go | 16 +++ .../model_applications_kustomize_patch.go | 17 +++ .../model_applications_kustomize_replicas.go | 3 +- .../model_applications_kustomize_res_id.go | 16 +++ .../model_applications_kustomize_selector.go | 16 +++ ...applications_managed_namespace_metadata.go | 15 ++ .../model_applications_optional_array.go | 14 ++ .../model_applications_optional_map.go | 14 ++ ...pplications_resource_action_run_request.go | 2 + .../model_applications_resource_status.go | 20 +-- .../model_applications_resources_query.go | 13 +- .../model_applications_revision_history.go | 22 +-- ...el_applications_revision_metadata_query.go | 8 +- .../model_applications_sync_operation.go | 5 +- ...odel_applications_sync_operation_result.go | 11 +- .../nextgen/model_applications_sync_policy.go | 7 +- .../nextgen/model_applications_sync_status.go | 1 + ...licationv1alpha1_repository_certificate.go | 8 +- ...ionv1alpha1_repository_certificate_list.go | 4 +- .../model_appprojects_app_project_spec.go | 30 ++-- ...application_destination_service_account.go | 19 +++ .../nextgen/model_clusters_cluster_config.go | 2 + 62 files changed, 657 insertions(+), 151 deletions(-) create mode 100644 harness/nextgen/model_applications_application_source_plugin_parameter.go create mode 100644 harness/nextgen/model_applications_kustomize_gvk.go create mode 100644 harness/nextgen/model_applications_kustomize_patch.go create mode 100644 harness/nextgen/model_applications_kustomize_res_id.go create mode 100644 harness/nextgen/model_applications_kustomize_selector.go create mode 100644 harness/nextgen/model_applications_managed_namespace_metadata.go create mode 100644 harness/nextgen/model_applications_optional_array.go create mode 100644 harness/nextgen/model_applications_optional_map.go create mode 100644 harness/nextgen/model_appprojects_application_destination_service_account.go diff --git a/harness/nextgen/api_applications.go b/harness/nextgen/api_applications.go index 27cb7cda..e0f594cf 100644 --- a/harness/nextgen/api_applications.go +++ b/harness/nextgen/api_applications.go @@ -39,7 +39,7 @@ Creates application in project. * @param "ClusterIdentifier" (optional.String) - * @param "RepoIdentifier" (optional.String) - * @param "SkipRepoValidation" (optional.Bool) - - * @param "RepoIdentifiers" (optional.Interface of []string) - + * @param "RepoIdentifiers" (optional.Interface of []string) - @return Servicev1Application */ @@ -50,7 +50,7 @@ type ApplicationsApiAgentApplicationServiceCreateOpts struct { ClusterIdentifier optional.String RepoIdentifier optional.String SkipRepoValidation optional.Bool - RepoIdentifiers optional.Interface + RepoIdentifiers optional.Interface } func (a *ApplicationsApiService) AgentApplicationServiceCreate(ctx context.Context, body ApplicationsApplicationCreateRequest, agentIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServiceCreateOpts) (Servicev1Application, *http.Response, error) { @@ -207,6 +207,8 @@ Delete deletes an application. * @param "ProjectIdentifier" (optional.String) - Project Identifier for the Entity. * @param "RequestCascade" (optional.Bool) - * @param "RequestPropagationPolicy" (optional.String) - + * @param "RequestAppNamespace" (optional.String) - + * @param "RequestProject" (optional.String) - * @param "OptionsRemoveExistingFinalizers" (optional.Bool) - @return ApplicationsApplicationResponse */ @@ -217,6 +219,8 @@ type ApplicationsApiAgentApplicationServiceDeleteOpts struct { ProjectIdentifier optional.String RequestCascade optional.Bool RequestPropagationPolicy optional.String + RequestAppNamespace optional.String + RequestProject optional.String OptionsRemoveExistingFinalizers optional.Bool } @@ -254,6 +258,12 @@ func (a *ApplicationsApiService) AgentApplicationServiceDelete(ctx context.Conte if localVarOptionals != nil && localVarOptionals.RequestPropagationPolicy.IsSet() { localVarQueryParams.Add("request.propagationPolicy", parameterToString(localVarOptionals.RequestPropagationPolicy.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.RequestAppNamespace.IsSet() { + localVarQueryParams.Add("request.appNamespace", parameterToString(localVarOptionals.RequestAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.RequestProject.IsSet() { + localVarQueryParams.Add("request.project", parameterToString(localVarOptionals.RequestProject.Value(), "")) + } if localVarOptionals != nil && localVarOptionals.OptionsRemoveExistingFinalizers.IsSet() { localVarQueryParams.Add("options.removeExistingFinalizers", parameterToString(localVarOptionals.OptionsRemoveExistingFinalizers.Value(), "")) } @@ -371,6 +381,8 @@ DeleteResource deletes a single application resource. * @param "RequestKind" (optional.String) - * @param "RequestForce" (optional.Bool) - * @param "RequestOrphan" (optional.Bool) - + * @param "RequestAppNamespace" (optional.String) - + * @param "RequestProject" (optional.String) - @return ApplicationsApplicationResponse */ @@ -385,6 +397,8 @@ type ApplicationsApiAgentApplicationServiceDeleteResourceOpts struct { RequestKind optional.String RequestForce optional.Bool RequestOrphan optional.Bool + RequestAppNamespace optional.String + RequestProject optional.String } func (a *ApplicationsApiService) AgentApplicationServiceDeleteResource(ctx context.Context, agentIdentifier string, requestName string, localVarOptionals *ApplicationsApiAgentApplicationServiceDeleteResourceOpts) (ApplicationsApplicationResponse, *http.Response, error) { @@ -436,6 +450,12 @@ func (a *ApplicationsApiService) AgentApplicationServiceDeleteResource(ctx conte if localVarOptionals != nil && localVarOptionals.RequestOrphan.IsSet() { localVarQueryParams.Add("request.orphan", parameterToString(localVarOptionals.RequestOrphan.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.RequestAppNamespace.IsSet() { + localVarQueryParams.Add("request.appNamespace", parameterToString(localVarOptionals.RequestAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.RequestProject.IsSet() { + localVarQueryParams.Add("request.project", parameterToString(localVarOptionals.RequestProject.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -531,20 +551,28 @@ ApplicationsApiService Get returns an application by name * @param orgIdentifier Organization Identifier for the Entity. * @param projectIdentifier Project Identifier for the Entity. * @param optional nil or *ApplicationsApiAgentApplicationServiceGetOpts - Optional Parameters: + * @param "AccountIdentifier" (optional.String) - Account Identifier for the Entity. + * @param "OrgIdentifier" (optional.String) - Organization Identifier for the Entity. + * @param "ProjectIdentifier" (optional.String) - Project Identifier for the Entity. * @param "QueryRefresh" (optional.String) - forces application reconciliation if set to true. * @param "QueryProject" (optional.Interface of []string) - the project names to restrict returned list applications. * @param "QueryResourceVersion" (optional.String) - when specified with a watch call, shows changes that occur after that particular version of a resource. * @param "QuerySelector" (optional.String) - the selector to to restrict returned list to applications only with matched labels. * @param "QueryRepo" (optional.String) - the repoURL to restrict returned list applications. + * @param "QueryAppNamespace" (optional.String) - @return Servicev1Application */ type ApplicationsApiAgentApplicationServiceGetOpts struct { + AccountIdentifier optional.String + OrgIdentifier optional.String + ProjectIdentifier optional.String QueryRefresh optional.String QueryProject optional.Interface QueryResourceVersion optional.String QuerySelector optional.String QueryRepo optional.String + QueryAppNamespace optional.String } func (a *ApplicationsApiService) AgentApplicationServiceGet(ctx context.Context, agentIdentifier string, queryName string, accountIdentifier string, orgIdentifier string, projectIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServiceGetOpts) (Servicev1Application, *http.Response, error) { @@ -584,6 +612,9 @@ func (a *ApplicationsApiService) AgentApplicationServiceGet(ctx context.Context, if localVarOptionals != nil && localVarOptionals.QueryRepo.IsSet() { localVarQueryParams.Add("query.repo", parameterToString(localVarOptionals.QueryRepo.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QueryAppNamespace.IsSet() { + localVarQueryParams.Add("query.appNamespace", parameterToString(localVarOptionals.QueryAppNamespace.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -943,6 +974,8 @@ GetResource returns single application resource. * @param "RequestVersion" (optional.String) - * @param "RequestGroup" (optional.String) - * @param "RequestKind" (optional.String) - + * @param "RequestAppNamespace" (optional.String) - + * @param "RequestProject" (optional.String) - @return ApplicationsApplicationResourceResponse */ @@ -955,6 +988,8 @@ type ApplicationsApiAgentApplicationServiceGetResourceOpts struct { RequestVersion optional.String RequestGroup optional.String RequestKind optional.String + RequestAppNamespace optional.String + RequestProject optional.String } func (a *ApplicationsApiService) AgentApplicationServiceGetResource(ctx context.Context, agentIdentifier string, requestName string, localVarOptionals *ApplicationsApiAgentApplicationServiceGetResourceOpts) (ApplicationsApplicationResourceResponse, *http.Response, error) { @@ -1000,6 +1035,12 @@ func (a *ApplicationsApiService) AgentApplicationServiceGetResource(ctx context. if localVarOptionals != nil && localVarOptionals.RequestKind.IsSet() { localVarQueryParams.Add("request.kind", parameterToString(localVarOptionals.RequestKind.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.RequestAppNamespace.IsSet() { + localVarQueryParams.Add("request.appNamespace", parameterToString(localVarOptionals.RequestAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.RequestProject.IsSet() { + localVarQueryParams.Add("request.project", parameterToString(localVarOptionals.RequestProject.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1100,6 +1141,7 @@ List returns list of applications for a specific agent. * @param "QueryResourceVersion" (optional.String) - when specified with a watch call, shows changes that occur after that particular version of a resource. * @param "QuerySelector" (optional.String) - the selector to to restrict returned list to applications only with matched labels. * @param "QueryRepo" (optional.String) - the repoURL to restrict returned list applications. + * @param "QueryAppNamespace" (optional.String) - @return ApplicationsApplicationList */ @@ -1110,6 +1152,7 @@ type ApplicationsApiAgentApplicationServiceListOpts struct { QueryResourceVersion optional.String QuerySelector optional.String QueryRepo optional.String + QueryAppNamespace optional.String } func (a *ApplicationsApiService) AgentApplicationServiceList(ctx context.Context, agentIdentifier string, accountIdentifier string, orgIdentifier string, projectIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServiceListOpts) (ApplicationsApplicationList, *http.Response, error) { @@ -1151,6 +1194,9 @@ func (a *ApplicationsApiService) AgentApplicationServiceList(ctx context.Context if localVarOptionals != nil && localVarOptionals.QueryRepo.IsSet() { localVarQueryParams.Add("query.repo", parameterToString(localVarOptionals.QueryRepo.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QueryAppNamespace.IsSet() { + localVarQueryParams.Add("query.appNamespace", parameterToString(localVarOptionals.QueryAppNamespace.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1251,6 +1297,8 @@ ListResourceActions returns list of resource actions. * @param "RequestVersion" (optional.String) - * @param "RequestGroup" (optional.String) - * @param "RequestKind" (optional.String) - + * @param "RequestAppNamespace" (optional.String) - + * @param "RequestProject" (optional.String) - @return ApplicationsResourceActionsListResponse */ @@ -1260,6 +1308,8 @@ type ApplicationsApiAgentApplicationServiceListResourceActionsOpts struct { RequestVersion optional.String RequestGroup optional.String RequestKind optional.String + RequestAppNamespace optional.String + RequestProject optional.String } func (a *ApplicationsApiService) AgentApplicationServiceListResourceActions(ctx context.Context, agentIdentifier string, requestName string, accountIdentifier string, orgIdentifier string, projectIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServiceListResourceActionsOpts) (ApplicationsResourceActionsListResponse, *http.Response, error) { @@ -1299,6 +1349,12 @@ func (a *ApplicationsApiService) AgentApplicationServiceListResourceActions(ctx if localVarOptionals != nil && localVarOptionals.RequestKind.IsSet() { localVarQueryParams.Add("request.kind", parameterToString(localVarOptionals.RequestKind.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.RequestAppNamespace.IsSet() { + localVarQueryParams.Add("request.appNamespace", parameterToString(localVarOptionals.RequestAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.RequestProject.IsSet() { + localVarQueryParams.Add("request.project", parameterToString(localVarOptionals.RequestProject.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1397,6 +1453,8 @@ ListResourceEvents returns list of event resources. * @param "QueryResourceNamespace" (optional.String) - * @param "QueryResourceName" (optional.String) - * @param "QueryResourceUID" (optional.String) - + * @param "QueryAppNamespace" (optional.String) - + * @param "QueryProject" (optional.String) - @return V1EventList */ @@ -1404,6 +1462,8 @@ type ApplicationsApiAgentApplicationServiceListResourceEventsOpts struct { QueryResourceNamespace optional.String QueryResourceName optional.String QueryResourceUID optional.String + QueryAppNamespace optional.String + QueryProject optional.String } func (a *ApplicationsApiService) AgentApplicationServiceListResourceEvents(ctx context.Context, agentIdentifier string, queryName string, accountIdentifier string, orgIdentifier string, projectIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServiceListResourceEventsOpts) (V1EventList, *http.Response, error) { @@ -1437,6 +1497,12 @@ func (a *ApplicationsApiService) AgentApplicationServiceListResourceEvents(ctx c if localVarOptionals != nil && localVarOptionals.QueryResourceUID.IsSet() { localVarQueryParams.Add("query.resourceUID", parameterToString(localVarOptionals.QueryResourceUID.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QueryAppNamespace.IsSet() { + localVarQueryParams.Add("query.appNamespace", parameterToString(localVarOptionals.QueryAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QueryProject.IsSet() { + localVarQueryParams.Add("query.project", parameterToString(localVarOptionals.QueryProject.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1537,6 +1603,8 @@ ManagedResources returns list of managed resources. * @param "QueryVersion" (optional.String) - * @param "QueryGroup" (optional.String) - * @param "QueryKind" (optional.String) - + * @param "QueryAppNamespace" (optional.String) - + * @param "QueryProject" (optional.String) - @return ApplicationsManagedResourcesResponse */ @@ -1944,6 +2012,8 @@ PodLogs returns stream of log entries for the specified pod(s). * @param "QueryGroup" (optional.String) - * @param "QueryResourceName" (optional.String) - * @param "QueryPrevious" (optional.Bool) - + * @param "QueryAppNamespace" (optional.String) - + * @param "QueryProject" (optional.String) - @return StreamResultOfApplicationsLogEntry */ @@ -1961,6 +2031,8 @@ type ApplicationsApiAgentApplicationServicePodLogsOpts struct { QueryGroup optional.String QueryResourceName optional.String QueryPrevious optional.Bool + QueryAppNamespace optional.String + QueryProject optional.String } func (a *ApplicationsApiService) AgentApplicationServicePodLogs(ctx context.Context, agentIdentifier string, queryName string, queryPodName string, accountIdentifier string, orgIdentifier string, projectIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServicePodLogsOpts) (StreamResultOfApplicationsLogEntry, *http.Response, error) { @@ -2025,6 +2097,12 @@ func (a *ApplicationsApiService) AgentApplicationServicePodLogs(ctx context.Cont if localVarOptionals != nil && localVarOptionals.QueryPrevious.IsSet() { localVarQueryParams.Add("query.previous", parameterToString(localVarOptionals.QueryPrevious.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QueryAppNamespace.IsSet() { + localVarQueryParams.Add("query.appNamespace", parameterToString(localVarOptionals.QueryAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QueryProject.IsSet() { + localVarQueryParams.Add("query.project", parameterToString(localVarOptionals.QueryProject.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -2134,6 +2212,8 @@ PodLogs returns stream of log entries for the specified pod(s). * @param "QueryGroup" (optional.String) - * @param "QueryResourceName" (optional.String) - * @param "QueryPrevious" (optional.Bool) - + * @param "QueryAppNamespace" (optional.String) - + * @param "QueryProject" (optional.String) - @return StreamResultOfApplicationsLogEntry */ @@ -2152,6 +2232,8 @@ type ApplicationsApiAgentApplicationServicePodLogs2Opts struct { QueryGroup optional.String QueryResourceName optional.String QueryPrevious optional.Bool + QueryAppNamespace optional.String + QueryProject optional.String } func (a *ApplicationsApiService) AgentApplicationServicePodLogs2(ctx context.Context, agentIdentifier string, queryName string, accountIdentifier string, orgIdentifier string, projectIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServicePodLogs2Opts) (StreamResultOfApplicationsLogEntry, *http.Response, error) { @@ -2218,6 +2300,12 @@ func (a *ApplicationsApiService) AgentApplicationServicePodLogs2(ctx context.Con if localVarOptionals != nil && localVarOptionals.QueryPrevious.IsSet() { localVarQueryParams.Add("query.previous", parameterToString(localVarOptionals.QueryPrevious.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QueryAppNamespace.IsSet() { + localVarQueryParams.Add("query.appNamespace", parameterToString(localVarOptionals.QueryAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QueryProject.IsSet() { + localVarQueryParams.Add("query.project", parameterToString(localVarOptionals.QueryProject.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -2318,6 +2406,8 @@ ResourceTree returns resource tree. * @param "QueryVersion" (optional.String) - * @param "QueryGroup" (optional.String) - * @param "QueryKind" (optional.String) - + * @param "QueryAppNamespace" (optional.String) - + * @param "QueryProject" (optional.String) - @return ApplicationsApplicationTree */ @@ -3084,18 +3174,17 @@ Update updates an application. * @param "ClusterIdentifier" (optional.String) - * @param "RepoIdentifier" (optional.String) - * @param "SkipRepoValidation" (optional.Bool) - - * @param "RepoIdentifiers" (optional.Interface of []string) - + * @param "RepoIdentifiers" (optional.Interface of []string) - @return Servicev1Application */ type ApplicationsApiAgentApplicationServiceUpdateOpts struct { - ClusterIdentifier optional.String - RepoIdentifier optional.String - SkipRepoValidation optional.Bool - RepoIdentifiers optional.Interface + ClusterIdentifier optional.String + RepoIdentifier optional.String + SkipRepoValidation optional.Bool + RepoIdentifiers optional.Interface } - 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) { var ( localVarHttpMethod = strings.ToUpper("Put") @@ -3370,6 +3459,7 @@ Watch returns stream of application change events. * @param "QueryResourceVersion" (optional.String) - when specified with a watch call, shows changes that occur after that particular version of a resource. * @param "QuerySelector" (optional.String) - the selector to to restrict returned list to applications only with matched labels. * @param "QueryRepo" (optional.String) - the repoURL to restrict returned list applications. + * @param "QueryAppNamespace" (optional.String) - @return StreamResultOfApplicationsApplicationWatchEvent */ @@ -3379,6 +3469,7 @@ type ApplicationsApiAgentApplicationServiceWatchOpts struct { QueryResourceVersion optional.String QuerySelector optional.String QueryRepo optional.String + QueryAppNamespace optional.String } func (a *ApplicationsApiService) AgentApplicationServiceWatch(ctx context.Context, agentIdentifier string, accountIdentifier string, orgIdentifier string, projectIdentifier string, queryName string, localVarOptionals *ApplicationsApiAgentApplicationServiceWatchOpts) (StreamResultOfApplicationsApplicationWatchEvent, *http.Response, error) { @@ -3418,6 +3509,9 @@ func (a *ApplicationsApiService) AgentApplicationServiceWatch(ctx context.Contex if localVarOptionals != nil && localVarOptionals.QueryRepo.IsSet() { localVarQueryParams.Add("query.repo", parameterToString(localVarOptionals.QueryRepo.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QueryAppNamespace.IsSet() { + localVarQueryParams.Add("query.appNamespace", parameterToString(localVarOptionals.QueryAppNamespace.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -3518,15 +3612,19 @@ WatchResourceTree returns stream of application resource tree. * @param "QueryVersion" (optional.String) - * @param "QueryGroup" (optional.String) - * @param "QueryKind" (optional.String) - + * @param "QueryAppNamespace" (optional.String) - + * @param "QueryProject" (optional.String) - @return StreamResultOfApplicationsApplicationTree */ type ApplicationsApiAgentApplicationServiceWatchResourceTreeOpts struct { - QueryNamespace optional.String - QueryName optional.String - QueryVersion optional.String - QueryGroup optional.String - QueryKind optional.String + QueryNamespace optional.String + QueryName optional.String + QueryVersion optional.String + QueryGroup optional.String + QueryKind optional.String + QueryAppNamespace optional.String + QueryProject optional.String } func (a *ApplicationsApiService) AgentApplicationServiceWatchResourceTree(ctx context.Context, agentIdentifier string, queryApplicationName string, accountIdentifier string, orgIdentifier string, projectIdentifier string, localVarOptionals *ApplicationsApiAgentApplicationServiceWatchResourceTreeOpts) (StreamResultOfApplicationsApplicationTree, *http.Response, error) { @@ -3566,6 +3664,12 @@ func (a *ApplicationsApiService) AgentApplicationServiceWatchResourceTree(ctx co if localVarOptionals != nil && localVarOptionals.QueryKind.IsSet() { localVarQueryParams.Add("query.kind", parameterToString(localVarOptionals.QueryKind.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QueryAppNamespace.IsSet() { + localVarQueryParams.Add("query.appNamespace", parameterToString(localVarOptionals.QueryAppNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QueryProject.IsSet() { + localVarQueryParams.Add("query.project", parameterToString(localVarOptionals.QueryProject.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} diff --git a/harness/nextgen/api_repositories.go b/harness/nextgen/api_repositories.go index 3b785a92..24b610dd 100644 --- a/harness/nextgen/api_repositories.go +++ b/harness/nextgen/api_repositories.go @@ -194,7 +194,7 @@ DeleteRepository deletes a repository from the configuration. * @param "QueryRepo" (optional.String) - Repo URL for query. * @param "QueryForceRefresh" (optional.Bool) - Whether to force a cache refresh on repo's connection state. * @param "QueryProject" (optional.String) - The associated project project. - * @param "ForceDelete" (optional.Bool) - + * @param "ForceDelete" (optional.Bool) - @return RepositoriesRepoResponse */ @@ -205,7 +205,7 @@ type RepositoriesApiAgentRepositoryServiceDeleteRepositoryOpts struct { QueryRepo optional.String QueryForceRefresh optional.Bool QueryProject optional.String - ForceDelete optional.Bool + ForceDelete optional.Bool } func (a *RepositoriesApiService) AgentRepositoryServiceDeleteRepository(ctx context.Context, agentIdentifier string, identifier string, localVarOptionals *RepositoriesApiAgentRepositoryServiceDeleteRepositoryOpts) (RepositoriesRepoResponse, *http.Response, error) { @@ -520,12 +520,25 @@ GetAppDetails returns application details by given path. * @param "QuerySourceHelmValues" (optional.String) - Values specifies Helm values to be passed to helm template, typically defined as a block. * @param "QuerySourceHelmVersion" (optional.String) - Version is the Helm version to use for templating (either \"2\" or \"3\"). * @param "QuerySourceHelmPassCredentials" (optional.Bool) - PassCredentials pass credentials to all domains (Helm's --pass-credentials). + * @param "QuerySourceHelmIgnoreMissingValueFiles" (optional.Bool) - IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values. + * @param "QuerySourceHelmSkipCrds" (optional.Bool) - SkipCrds skips custom resource definition installation step (Helm's --skip-crds). + * @param "QuerySourceHelmValuesObjectRaw" (optional.String) - Raw is the underlying serialization of this object. TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. + * @param "QuerySourceHelmNamespace" (optional.String) - Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + * @param "QuerySourceHelmKubeVersion" (optional.String) - KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. + * @param "QuerySourceHelmApiVersions" (optional.Interface of []string) - APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + * @param "QuerySourceHelmSkipTests" (optional.Bool) - SkipTests skips test manifest installation step (Helm's --skip-tests). + * @param "QuerySourceHelmSkipSchemaValidation" (optional.Bool) - SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation). * @param "QuerySourceKustomizeNamePrefix" (optional.String) - NamePrefix is a prefix appended to resources for Kustomize apps. * @param "QuerySourceKustomizeNameSuffix" (optional.String) - NameSuffix is a suffix appended to resources for Kustomize apps. * @param "QuerySourceKustomizeImages" (optional.Interface of []string) - Images is a list of Kustomize image override specifications. * @param "QuerySourceKustomizeVersion" (optional.String) - Version controls which version of Kustomize to use for rendering manifests. * @param "QuerySourceKustomizeForceCommonLabels" (optional.Bool) - ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps. * @param "QuerySourceKustomizeForceCommonAnnotations" (optional.Bool) - ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps. + * @param "QuerySourceKustomizeNamespace" (optional.String) - Namespace sets the namespace that Kustomize adds to all resources. + * @param "QuerySourceKustomizeComponents" (optional.Interface of []string) - Components specifies a list of kustomize components to add to the kustomization before building. + * @param "QuerySourceKustomizeLabelWithoutSelector" (optional.Bool) - LabelWithoutSelector specifies whether to apply common labels to resource selectors or not. + * @param "QuerySourceKustomizeKubeVersion" (optional.String) - KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. + * @param "QuerySourceKustomizeApiVersions" (optional.Interface of []string) - APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. * @param "QuerySourceKsonnetEnvironment" (optional.String) - Environment is a ksonnet application environment name. * @param "QuerySourceDirectoryRecurse" (optional.Bool) - Recurse specifies whether to scan a directory recursively for manifests. * @param "QuerySourceDirectoryJsonnetLibs" (optional.Interface of []string) - Additional library search dirs. @@ -533,8 +546,12 @@ GetAppDetails returns application details by given path. * @param "QuerySourceDirectoryInclude" (optional.String) - Include contains a glob pattern to match paths against that should be explicitly included during manifest generation. * @param "QuerySourcePluginName" (optional.String) - * @param "QuerySourceChart" (optional.String) - Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + * @param "QuerySourceRef" (optional.String) - Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + * @param "QuerySourceName" (optional.String) - Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. * @param "QueryAppName" (optional.String) - * @param "QueryAppProject" (optional.String) - + * @param "QuerySourceIndex" (optional.Int32) - source index (for multi source apps). + * @param "QueryVersionId" (optional.Int32) - versionId from historical data (for multi source apps). @return RepositoriesRepoAppDetailsResponse */ @@ -549,12 +566,25 @@ type RepositoriesApiAgentRepositoryServiceGetAppDetailsOpts struct { QuerySourceHelmValues optional.String QuerySourceHelmVersion optional.String QuerySourceHelmPassCredentials optional.Bool + QuerySourceHelmIgnoreMissingValueFiles optional.Bool + QuerySourceHelmSkipCrds optional.Bool + QuerySourceHelmValuesObjectRaw optional.String + QuerySourceHelmNamespace optional.String + QuerySourceHelmKubeVersion optional.String + QuerySourceHelmApiVersions optional.Interface + QuerySourceHelmSkipTests optional.Bool + QuerySourceHelmSkipSchemaValidation optional.Bool QuerySourceKustomizeNamePrefix optional.String QuerySourceKustomizeNameSuffix optional.String QuerySourceKustomizeImages optional.Interface QuerySourceKustomizeVersion optional.String QuerySourceKustomizeForceCommonLabels optional.Bool QuerySourceKustomizeForceCommonAnnotations optional.Bool + QuerySourceKustomizeNamespace optional.String + QuerySourceKustomizeComponents optional.Interface + QuerySourceKustomizeLabelWithoutSelector optional.Bool + QuerySourceKustomizeKubeVersion optional.String + QuerySourceKustomizeApiVersions optional.Interface QuerySourceKsonnetEnvironment optional.String QuerySourceDirectoryRecurse optional.Bool QuerySourceDirectoryJsonnetLibs optional.Interface @@ -562,8 +592,12 @@ type RepositoriesApiAgentRepositoryServiceGetAppDetailsOpts struct { QuerySourceDirectoryInclude optional.String QuerySourcePluginName optional.String QuerySourceChart optional.String + QuerySourceRef optional.String + QuerySourceName optional.String QueryAppName optional.String QueryAppProject optional.String + QuerySourceIndex optional.Int32 + QueryVersionId optional.Int32 } func (a *RepositoriesApiService) AgentRepositoryServiceGetAppDetails(ctx context.Context, agentIdentifier string, identifier string, accountIdentifier string, localVarOptionals *RepositoriesApiAgentRepositoryServiceGetAppDetailsOpts) (RepositoriesRepoAppDetailsResponse, *http.Response, error) { @@ -616,6 +650,30 @@ func (a *RepositoriesApiService) AgentRepositoryServiceGetAppDetails(ctx context if localVarOptionals != nil && localVarOptionals.QuerySourceHelmPassCredentials.IsSet() { localVarQueryParams.Add("query.source.helm.passCredentials", parameterToString(localVarOptionals.QuerySourceHelmPassCredentials.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmIgnoreMissingValueFiles.IsSet() { + localVarQueryParams.Add("query.source.helm.ignoreMissingValueFiles", parameterToString(localVarOptionals.QuerySourceHelmIgnoreMissingValueFiles.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmSkipCrds.IsSet() { + localVarQueryParams.Add("query.source.helm.skipCrds", parameterToString(localVarOptionals.QuerySourceHelmSkipCrds.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmValuesObjectRaw.IsSet() { + localVarQueryParams.Add("query.source.helm.valuesObject.raw", parameterToString(localVarOptionals.QuerySourceHelmValuesObjectRaw.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmNamespace.IsSet() { + localVarQueryParams.Add("query.source.helm.namespace", parameterToString(localVarOptionals.QuerySourceHelmNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmKubeVersion.IsSet() { + localVarQueryParams.Add("query.source.helm.kubeVersion", parameterToString(localVarOptionals.QuerySourceHelmKubeVersion.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmApiVersions.IsSet() { + localVarQueryParams.Add("query.source.helm.apiVersions", parameterToString(localVarOptionals.QuerySourceHelmApiVersions.Value(), "multi")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmSkipTests.IsSet() { + localVarQueryParams.Add("query.source.helm.skipTests", parameterToString(localVarOptionals.QuerySourceHelmSkipTests.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceHelmSkipSchemaValidation.IsSet() { + localVarQueryParams.Add("query.source.helm.skipSchemaValidation", parameterToString(localVarOptionals.QuerySourceHelmSkipSchemaValidation.Value(), "")) + } if localVarOptionals != nil && localVarOptionals.QuerySourceKustomizeNamePrefix.IsSet() { localVarQueryParams.Add("query.source.kustomize.namePrefix", parameterToString(localVarOptionals.QuerySourceKustomizeNamePrefix.Value(), "")) } @@ -634,6 +692,21 @@ func (a *RepositoriesApiService) AgentRepositoryServiceGetAppDetails(ctx context if localVarOptionals != nil && localVarOptionals.QuerySourceKustomizeForceCommonAnnotations.IsSet() { localVarQueryParams.Add("query.source.kustomize.forceCommonAnnotations", parameterToString(localVarOptionals.QuerySourceKustomizeForceCommonAnnotations.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QuerySourceKustomizeNamespace.IsSet() { + localVarQueryParams.Add("query.source.kustomize.namespace", parameterToString(localVarOptionals.QuerySourceKustomizeNamespace.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceKustomizeComponents.IsSet() { + localVarQueryParams.Add("query.source.kustomize.components", parameterToString(localVarOptionals.QuerySourceKustomizeComponents.Value(), "multi")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceKustomizeLabelWithoutSelector.IsSet() { + localVarQueryParams.Add("query.source.kustomize.labelWithoutSelector", parameterToString(localVarOptionals.QuerySourceKustomizeLabelWithoutSelector.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceKustomizeKubeVersion.IsSet() { + localVarQueryParams.Add("query.source.kustomize.kubeVersion", parameterToString(localVarOptionals.QuerySourceKustomizeKubeVersion.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceKustomizeApiVersions.IsSet() { + localVarQueryParams.Add("query.source.kustomize.apiVersions", parameterToString(localVarOptionals.QuerySourceKustomizeApiVersions.Value(), "multi")) + } if localVarOptionals != nil && localVarOptionals.QuerySourceKsonnetEnvironment.IsSet() { localVarQueryParams.Add("query.source.ksonnet.environment", parameterToString(localVarOptionals.QuerySourceKsonnetEnvironment.Value(), "")) } @@ -655,12 +728,24 @@ func (a *RepositoriesApiService) AgentRepositoryServiceGetAppDetails(ctx context if localVarOptionals != nil && localVarOptionals.QuerySourceChart.IsSet() { localVarQueryParams.Add("query.source.chart", parameterToString(localVarOptionals.QuerySourceChart.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QuerySourceRef.IsSet() { + localVarQueryParams.Add("query.source.ref", parameterToString(localVarOptionals.QuerySourceRef.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QuerySourceName.IsSet() { + localVarQueryParams.Add("query.source.name", parameterToString(localVarOptionals.QuerySourceName.Value(), "")) + } if localVarOptionals != nil && localVarOptionals.QueryAppName.IsSet() { localVarQueryParams.Add("query.appName", parameterToString(localVarOptionals.QueryAppName.Value(), "")) } if localVarOptionals != nil && localVarOptionals.QueryAppProject.IsSet() { localVarQueryParams.Add("query.appProject", parameterToString(localVarOptionals.QueryAppProject.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.QuerySourceIndex.IsSet() { + localVarQueryParams.Add("query.sourceIndex", parameterToString(localVarOptionals.QuerySourceIndex.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.QueryVersionId.IsSet() { + localVarQueryParams.Add("query.versionId", parameterToString(localVarOptionals.QueryVersionId.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} diff --git a/harness/nextgen/docs/ApplicationsApi.md b/harness/nextgen/docs/ApplicationsApi.md index 22b8cbb1..d379b49f 100644 --- a/harness/nextgen/docs/ApplicationsApi.md +++ b/harness/nextgen/docs/ApplicationsApi.md @@ -4,36 +4,38 @@ All URIs are relative to *https://app.harness.io/gateway* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AgentApplicationServiceCreate**](ApplicationsApi.md#AgentApplicationServiceCreate) | **Post** /api/v1/agents/{agentIdentifier}/applications | Create creates an application -[**AgentApplicationServiceDelete**](ApplicationsApi.md#AgentApplicationServiceDelete) | **Delete** /api/v1/agents/{agentIdentifier}/applications/{request.name} | Delete deletes an application -[**AgentApplicationServiceDeleteResource**](ApplicationsApi.md#AgentApplicationServiceDeleteResource) | **Delete** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource | DeleteResource deletes a single application resource -[**AgentApplicationServiceGet**](ApplicationsApi.md#AgentApplicationServiceGet) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name} | Get returns an application by name -[**AgentApplicationServiceGetApplicationSyncWindows**](ApplicationsApi.md#AgentApplicationServiceGetApplicationSyncWindows) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/syncwindows | Get returns sync windows of the application -[**AgentApplicationServiceGetManifests**](ApplicationsApi.md#AgentApplicationServiceGetManifests) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/manifests | GetManifests returns application manifests -[**AgentApplicationServiceGetResource**](ApplicationsApi.md#AgentApplicationServiceGetResource) | **Get** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource | GetResource returns single application resource -[**AgentApplicationServiceList**](ApplicationsApi.md#AgentApplicationServiceList) | **Get** /api/v1/agents/{agentIdentifier}/applications | List returns list of applications for a specific agent -[**AgentApplicationServiceListResourceActions**](ApplicationsApi.md#AgentApplicationServiceListResourceActions) | **Get** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource/actions | ListResourceActions returns list of resource actions -[**AgentApplicationServiceListResourceEvents**](ApplicationsApi.md#AgentApplicationServiceListResourceEvents) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/events | ListResourceEvents returns a list of event resources -[**AgentApplicationServiceManagedResources**](ApplicationsApi.md#AgentApplicationServiceManagedResources) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.applicationName}/managed-resources | ManagedResources returns list of managed resources -[**AgentApplicationServiceParent**](ApplicationsApi.md#AgentApplicationServiceParent) | **Get** /api/v1/agents/{agentIdentifier}/applications/parent/{query.name} | Get returns an application by name -[**AgentApplicationServicePatch**](ApplicationsApi.md#AgentApplicationServicePatch) | **Patch** /api/v1/agents/{agentIdentifier}/applications/{request.name} | Patch patch an application -[**AgentApplicationServicePatchResource**](ApplicationsApi.md#AgentApplicationServicePatchResource) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource | PatchResource patch single application resource +[**AgentApplicationServiceCreate**](ApplicationsApi.md#AgentApplicationServiceCreate) | **Post** /api/v1/agents/{agentIdentifier}/applications | Create an application +[**AgentApplicationServiceDelete**](ApplicationsApi.md#AgentApplicationServiceDelete) | **Delete** /api/v1/agents/{agentIdentifier}/applications/{request.name} | Delete an application +[**AgentApplicationServiceDeleteResource**](ApplicationsApi.md#AgentApplicationServiceDeleteResource) | **Delete** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource | Delete resource +[**AgentApplicationServiceGet**](ApplicationsApi.md#AgentApplicationServiceGet) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name} | Get application +[**AgentApplicationServiceGetApplicationSyncWindows**](ApplicationsApi.md#AgentApplicationServiceGetApplicationSyncWindows) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/syncwindows | Get sync windows of the application +[**AgentApplicationServiceGetManifests**](ApplicationsApi.md#AgentApplicationServiceGetManifests) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/manifests | Get application manifest +[**AgentApplicationServiceGetResource**](ApplicationsApi.md#AgentApplicationServiceGetResource) | **Get** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource | Get an application resource +[**AgentApplicationServiceList**](ApplicationsApi.md#AgentApplicationServiceList) | **Get** /api/v1/agents/{agentIdentifier}/applications | List applications for a specific agent +[**AgentApplicationServiceListResourceActions**](ApplicationsApi.md#AgentApplicationServiceListResourceActions) | **Get** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource/actions | List resource actions +[**AgentApplicationServiceListResourceEvents**](ApplicationsApi.md#AgentApplicationServiceListResourceEvents) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/events | List resource events +[**AgentApplicationServiceManagedResources**](ApplicationsApi.md#AgentApplicationServiceManagedResources) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.applicationName}/managed-resources | Get ManagedResources +[**AgentApplicationServiceParent**](ApplicationsApi.md#AgentApplicationServiceParent) | **Get** /api/v1/agents/{agentIdentifier}/applications/parent/{query.name} | Get parent application +[**AgentApplicationServicePatch**](ApplicationsApi.md#AgentApplicationServicePatch) | **Patch** /api/v1/agents/{agentIdentifier}/applications/{request.name} | Patch an application +[**AgentApplicationServicePatchResource**](ApplicationsApi.md#AgentApplicationServicePatchResource) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource | Patch an application resource [**AgentApplicationServicePodLogs**](ApplicationsApi.md#AgentApplicationServicePodLogs) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/pods/{query.podName}/logs | PodLogs returns stream of log entries for the specified pod(s). [**AgentApplicationServicePodLogs2**](ApplicationsApi.md#AgentApplicationServicePodLogs2) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/logs | PodLogs returns stream of log entries for the specified pod(s). -[**AgentApplicationServiceResourceTree**](ApplicationsApi.md#AgentApplicationServiceResourceTree) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/resource-tree | ResourceTree returns resource tree -[**AgentApplicationServiceRevisionMetadata**](ApplicationsApi.md#AgentApplicationServiceRevisionMetadata) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/revisions/{query.revision}/metadata | Get the meta-data (author, date, tags, message) for a specific revision of the application -[**AgentApplicationServiceRollback**](ApplicationsApi.md#AgentApplicationServiceRollback) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/rollback | Rollback syncs an application to its target state Harness Event type (rollback) -[**AgentApplicationServiceRunResourceAction**](ApplicationsApi.md#AgentApplicationServiceRunResourceAction) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource/actions | RunResourceAction run resource action -[**AgentApplicationServiceSync**](ApplicationsApi.md#AgentApplicationServiceSync) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/sync | Sync syncs an application to its target state Harness Event type (deploy) -[**AgentApplicationServiceTerminateOperation**](ApplicationsApi.md#AgentApplicationServiceTerminateOperation) | **Delete** /api/v1/agents/{agentIdentifier}/applications/{request.name}/operation | TerminateOperation terminates the currently running operation -[**AgentApplicationServiceUpdate**](ApplicationsApi.md#AgentApplicationServiceUpdate) | **Put** /api/v1/agents/{agentIdentifier}/applications/{request.application.metadata.name} | Update updates an application -[**AgentApplicationServiceUpdateSpec**](ApplicationsApi.md#AgentApplicationServiceUpdateSpec) | **Put** /api/v1/agents/{agentIdentifier}/applications/{request.name}/spec | UpdateSpec updates an application spec +[**AgentApplicationServiceResourceTree**](ApplicationsApi.md#AgentApplicationServiceResourceTree) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.applicationName}/resource-tree | Get resource tree +[**AgentApplicationServiceRevisionMetadata**](ApplicationsApi.md#AgentApplicationServiceRevisionMetadata) | **Get** /api/v1/agents/{agentIdentifier}/applications/{query.name}/revisions/{query.revision}/metadata | Get revision metadata +[**AgentApplicationServiceRollback**](ApplicationsApi.md#AgentApplicationServiceRollback) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/rollback | Rollback syncs an application to its target state +[**AgentApplicationServiceRunResourceAction**](ApplicationsApi.md#AgentApplicationServiceRunResourceAction) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/resource/actions | Run resource action +[**AgentApplicationServiceSync**](ApplicationsApi.md#AgentApplicationServiceSync) | **Post** /api/v1/agents/{agentIdentifier}/applications/{request.name}/sync | Sync an application +[**AgentApplicationServiceTerminateOperation**](ApplicationsApi.md#AgentApplicationServiceTerminateOperation) | **Delete** /api/v1/agents/{agentIdentifier}/applications/{request.name}/operation | Terminate operation +[**AgentApplicationServiceUpdate**](ApplicationsApi.md#AgentApplicationServiceUpdate) | **Put** /api/v1/agents/{agentIdentifier}/applications/{request.application.metadata.name} | Update an application +[**AgentApplicationServiceUpdateSpec**](ApplicationsApi.md#AgentApplicationServiceUpdateSpec) | **Put** /api/v1/agents/{agentIdentifier}/applications/{request.name}/spec | Update application spec [**AgentApplicationServiceWatch**](ApplicationsApi.md#AgentApplicationServiceWatch) | **Get** /api/v1/agents/{agentIdentifier}/stream/applications | Watch returns stream of application change events [**AgentApplicationServiceWatchResourceTree**](ApplicationsApi.md#AgentApplicationServiceWatchResourceTree) | **Get** /api/v1/agents/{agentIdentifier}/stream/applications/{query.applicationName}/resource-tree | WatchResourceTree returns stream of application resource tree -[**ApplicationServiceExists**](ApplicationsApi.md#ApplicationServiceExists) | **Get** /api/v1/applications/{name}/exists | Checks whether an app with the given name exists -[**ApplicationServiceListAppSync**](ApplicationsApi.md#ApplicationServiceListAppSync) | **Post** /api/v1/applications/sync | List returns list of application sync status -[**ApplicationServiceListAttributes**](ApplicationsApi.md#ApplicationServiceListAttributes) | **Get** /api/v1/applications/attributes | -[**ApplicationServiceListNs**](ApplicationsApi.md#ApplicationServiceListNs) | **Post** /api/v1/applications/ns | ListNs returns list of namespaces for a query. +[**ApplicationServiceExists**](ApplicationsApi.md#ApplicationServiceExists) | **Get** /api/v1/applications/{name}/exists | Check if an application exists +[**ApplicationServiceIsMultiSourceEnabled**](ApplicationsApi.md#ApplicationServiceIsMultiSourceEnabled) | **Get** /api/v1/applications/multisource | Check if multisource feature is enabled +[**ApplicationServiceListAppSets**](ApplicationsApi.md#ApplicationServiceListAppSets) | **Get** /api/v1/applications/sets | List ApplicationSets +[**ApplicationServiceListAppSync**](ApplicationsApi.md#ApplicationServiceListAppSync) | **Post** /api/v1/applications/sync | List application sync status +[**ApplicationServiceListAttributes**](ApplicationsApi.md#ApplicationServiceListAttributes) | **Get** /api/v1/applications/attributes | List attributes for applications +[**ApplicationServiceListNs**](ApplicationsApi.md#ApplicationServiceListNs) | **Post** /api/v1/applications/ns | List namespaces for a specific query # **AgentApplicationServiceCreate** > Servicev1Application AgentApplicationServiceCreate(ctx, body, agentIdentifier, accountIdentifier, optional) @@ -109,6 +111,8 @@ Name | Type | Description | Notes **requestCascade** | **optional.Bool**| | **requestPropagationPolicy** | **optional.String**| | + **requestAppNamespace** | **optional.String**| | + **requestProject** | **optional.String**| | **optionsRemoveExistingFinalizers** | **optional.Bool**| | ### Return type @@ -160,6 +164,8 @@ Name | Type | Description | Notes **requestKind** | **optional.String**| | **requestForce** | **optional.Bool**| | **requestOrphan** | **optional.Bool**| | + **requestAppNamespace** | **optional.String**| | + **requestProject** | **optional.String**| | ### Return type @@ -208,6 +214,7 @@ Name | Type | Description | Notes **queryResourceVersion** | **optional.String**| when specified with a watch call, shows changes that occur after that particular version of a resource. | **querySelector** | **optional.String**| the selector to to restrict returned list to applications only with matched labels. | **queryRepo** | **optional.String**| the repoURL to restrict returned list applications. | + **queryAppNamespace** | **optional.String**| | ### Return type @@ -284,6 +291,10 @@ Name | Type | Description | Notes **queryRevision** | **optional.String**| | + **queryAppNamespace** | **optional.String**| | + **queryProject** | **optional.String**| | + **querySourcePositions** | [**optional.Interface of []string**](string.md)| | + **queryRevisions** | [**optional.Interface of []string**](string.md)| | ### Return type @@ -332,6 +343,8 @@ Name | Type | Description | Notes **requestVersion** | **optional.String**| | **requestGroup** | **optional.String**| | **requestKind** | **optional.String**| | + **requestAppNamespace** | **optional.String**| | + **requestProject** | **optional.String**| | ### Return type @@ -379,6 +392,7 @@ Name | Type | Description | Notes **queryResourceVersion** | **optional.String**| when specified with a watch call, shows changes that occur after that particular version of a resource. | **querySelector** | **optional.String**| the selector to to restrict returned list to applications only with matched labels. | **queryRepo** | **optional.String**| the repoURL to restrict returned list applications. | + **queryAppNamespace** | **optional.String**| | ### Return type @@ -427,6 +441,8 @@ Name | Type | Description | Notes **requestVersion** | **optional.String**| | **requestGroup** | **optional.String**| | **requestKind** | **optional.String**| | + **requestAppNamespace** | **optional.String**| | + **requestProject** | **optional.String**| | ### Return type @@ -473,6 +489,8 @@ Name | Type | Description | Notes **queryResourceNamespace** | **optional.String**| | **queryResourceName** | **optional.String**| | **queryResourceUID** | **optional.String**| | + **queryAppNamespace** | **optional.String**| | + **queryProject** | **optional.String**| | ### Return type @@ -521,6 +539,8 @@ Name | Type | Description | Notes **queryVersion** | **optional.String**| | **queryGroup** | **optional.String**| | **queryKind** | **optional.String**| | + **queryAppNamespace** | **optional.String**| | + **queryProject** | **optional.String**| | ### Return type @@ -566,6 +586,7 @@ Name | Type | Description | Notes **queryResourceVersion** | **optional.String**| when specified with a watch call, shows changes that occur after that particular version of a resource. | **querySelector** | **optional.String**| the selector to to restrict returned list to applications only with matched labels. | **queryRepo** | **optional.String**| the repoURL to restrict returned list applications. | + **queryAppNamespace** | **optional.String**| | ### Return type @@ -687,6 +708,8 @@ Name | Type | Description | Notes **queryGroup** | **optional.String**| | **queryResourceName** | **optional.String**| | **queryPrevious** | **optional.Bool**| | + **queryAppNamespace** | **optional.String**| | + **queryProject** | **optional.String**| | ### Return type @@ -744,6 +767,8 @@ Name | Type | Description | Notes **queryGroup** | **optional.String**| | **queryResourceName** | **optional.String**| | **queryPrevious** | **optional.Bool**| | + **queryAppNamespace** | **optional.String**| | + **queryProject** | **optional.String**| | ### Return type @@ -789,9 +814,12 @@ Name | Type | Description | Notes **queryApplicationName** | **optional.String**| | **queryNamespace** | **optional.String**| | + **queryName** | **optional.String**| | **queryVersion** | **optional.String**| | **queryGroup** | **optional.String**| | **queryKind** | **optional.String**| | + **queryAppNamespace** | **optional.String**| | + **queryProject** | **optional.String**| | ### Return type @@ -1085,6 +1113,7 @@ Name | Type | Description | Notes **queryResourceVersion** | **optional.String**| when specified with a watch call, shows changes that occur after that particular version of a resource. | **querySelector** | **optional.String**| the selector to to restrict returned list to applications only with matched labels. | **queryRepo** | **optional.String**| the repoURL to restrict returned list applications. | + **queryAppNamespace** | **optional.String**| | ### Return type @@ -1133,6 +1162,8 @@ Name | Type | Description | Notes **queryVersion** | **optional.String**| | **queryGroup** | **optional.String**| | **queryKind** | **optional.String**| | + **queryAppNamespace** | **optional.String**| | + **queryProject** | **optional.String**| | ### Return type diff --git a/harness/nextgen/docs/ApplicationsApplicationCondition.md b/harness/nextgen/docs/ApplicationsApplicationCondition.md index 3f7707ee..5b88f443 100644 --- a/harness/nextgen/docs/ApplicationsApplicationCondition.md +++ b/harness/nextgen/docs/ApplicationsApplicationCondition.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **Type_** | **string** | | [optional] [default to null] **Message** | **string** | | [optional] [default to null] **LastTransitionTime** | [***V1Time**](v1Time.md) | | [optional] [default to null] +**LastTransitionTimeTs** | [**time.Time**](time.Time.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationPatchRequest.md b/harness/nextgen/docs/ApplicationsApplicationPatchRequest.md index a2c0cf4d..f0e734cc 100644 --- a/harness/nextgen/docs/ApplicationsApplicationPatchRequest.md +++ b/harness/nextgen/docs/ApplicationsApplicationPatchRequest.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **Name** | **string** | | [optional] [default to null] **Patch** | **string** | | [optional] [default to null] **PatchType** | **string** | | [optional] [default to null] +**AppNamespace** | **string** | | [optional] [default to null] +**Project** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationResourcePatchRequest.md b/harness/nextgen/docs/ApplicationsApplicationResourcePatchRequest.md index 77b2083b..7ed6dca6 100644 --- a/harness/nextgen/docs/ApplicationsApplicationResourcePatchRequest.md +++ b/harness/nextgen/docs/ApplicationsApplicationResourcePatchRequest.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **Kind** | **string** | | [optional] [default to null] **Patch** | **string** | | [optional] [default to null] **PatchType** | **string** | | [optional] [default to null] +**AppNamespace** | **string** | | [optional] [default to null] +**Project** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationRollbackRequest.md b/harness/nextgen/docs/ApplicationsApplicationRollbackRequest.md index 0110f32d..252db050 100644 --- a/harness/nextgen/docs/ApplicationsApplicationRollbackRequest.md +++ b/harness/nextgen/docs/ApplicationsApplicationRollbackRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Id** | **string** | | [optional] [default to null] **DryRun** | **bool** | | [optional] [default to null] **Prune** | **bool** | | [optional] [default to null] +**AppNamespace** | **string** | | [optional] [default to null] +**Project** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationSource.md b/harness/nextgen/docs/ApplicationsApplicationSource.md index 915d4cf8..b9c61237 100644 --- a/harness/nextgen/docs/ApplicationsApplicationSource.md +++ b/harness/nextgen/docs/ApplicationsApplicationSource.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **Plugin** | [***ApplicationsApplicationSourcePlugin**](applicationsApplicationSourcePlugin.md) | | [optional] [default to null] **Chart** | **string** | Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. | [optional] [default to null] **Ref** | **string** | Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. | [optional] [default to null] +**Name** | **string** | Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationSourceHelm.md b/harness/nextgen/docs/ApplicationsApplicationSourceHelm.md index f3db2239..432b2ffe 100644 --- a/harness/nextgen/docs/ApplicationsApplicationSourceHelm.md +++ b/harness/nextgen/docs/ApplicationsApplicationSourceHelm.md @@ -10,6 +10,14 @@ Name | Type | Description | Notes **FileParameters** | [**[]ApplicationsHelmFileParameter**](applicationsHelmFileParameter.md) | | [optional] [default to null] **Version** | **string** | | [optional] [default to null] **PassCredentials** | **bool** | | [optional] [default to null] +**IgnoreMissingValueFiles** | **bool** | | [optional] [default to null] +**SkipCrds** | **bool** | | [optional] [default to null] +**ValuesObject** | [***RuntimeRawExtension**](runtimeRawExtension.md) | | [optional] [default to null] +**Namespace** | **string** | Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. | [optional] [default to null] +**KubeVersion** | **string** | KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. | [optional] [default to null] +**ApiVersions** | **[]string** | APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. | [optional] [default to null] +**SkipTests** | **bool** | SkipTests skips test manifest installation step (Helm's --skip-tests). | [optional] [default to null] +**SkipSchemaValidation** | **bool** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationSourceKustomize.md b/harness/nextgen/docs/ApplicationsApplicationSourceKustomize.md index 95921261..bed027eb 100644 --- a/harness/nextgen/docs/ApplicationsApplicationSourceKustomize.md +++ b/harness/nextgen/docs/ApplicationsApplicationSourceKustomize.md @@ -13,6 +13,11 @@ Name | Type | Description | Notes **ForceCommonAnnotations** | **bool** | | [optional] [default to null] **Namespace** | **string** | | [optional] [default to null] **Replicas** | [**[]ApplicationsKustomizeReplicas**](applicationsKustomizeReplicas.md) | | [optional] [default to null] +**Patches** | [**[]ApplicationsKustomizePatch**](applicationsKustomizePatch.md) | | [optional] [default to null] +**Components** | **[]string** | | [optional] [default to null] +**LabelWithoutSelector** | **bool** | | [optional] [default to null] +**KubeVersion** | **string** | KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. | [optional] [default to null] +**ApiVersions** | **[]string** | APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationSourcePlugin.md b/harness/nextgen/docs/ApplicationsApplicationSourcePlugin.md index d2f914fe..409291bb 100644 --- a/harness/nextgen/docs/ApplicationsApplicationSourcePlugin.md +++ b/harness/nextgen/docs/ApplicationsApplicationSourcePlugin.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | [optional] [default to null] **Env** | [**[]ApplicationsEnvEntry**](applicationsEnvEntry.md) | | [optional] [default to null] +**Parameters** | [**[]ApplicationsApplicationSourcePluginParameter**](applicationsApplicationSourcePluginParameter.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationSyncRequest.md b/harness/nextgen/docs/ApplicationsApplicationSyncRequest.md index 8e728fb1..705e8a7b 100644 --- a/harness/nextgen/docs/ApplicationsApplicationSyncRequest.md +++ b/harness/nextgen/docs/ApplicationsApplicationSyncRequest.md @@ -13,6 +13,10 @@ Name | Type | Description | Notes **Infos** | [**[]ApplicationsInfo**](applicationsInfo.md) | | [optional] [default to null] **RetryStrategy** | [***ApplicationsRetryStrategy**](applicationsRetryStrategy.md) | | [optional] [default to null] **SyncOptions** | [***ApplicationsSyncOptions**](applicationsSyncOptions.md) | | [optional] [default to null] +**AppNamespace** | **string** | | [optional] [default to null] +**Project** | **string** | | [optional] [default to null] +**SourcePositions** | **[]string** | | [optional] [default to null] +**Revisions** | **[]string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationUpdateRequest.md b/harness/nextgen/docs/ApplicationsApplicationUpdateRequest.md index 99ce1b94..4fdc4579 100644 --- a/harness/nextgen/docs/ApplicationsApplicationUpdateRequest.md +++ b/harness/nextgen/docs/ApplicationsApplicationUpdateRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Application** | [***ApplicationsApplication**](applicationsApplication.md) | | [optional] [default to null] **Validate** | **bool** | | [optional] [default to null] +**Project** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsApplicationUpdateSpecRequest.md b/harness/nextgen/docs/ApplicationsApplicationUpdateSpecRequest.md index 7ac8ff4a..1b9cf7f4 100644 --- a/harness/nextgen/docs/ApplicationsApplicationUpdateSpecRequest.md +++ b/harness/nextgen/docs/ApplicationsApplicationUpdateSpecRequest.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **Name** | **string** | | [optional] [default to null] **Spec** | [***ApplicationsApplicationSpec**](applicationsApplicationSpec.md) | | [optional] [default to null] **Validate** | **bool** | | [optional] [default to null] +**AppNamespace** | **string** | | [optional] [default to null] +**Project** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsHealthStatus.md b/harness/nextgen/docs/ApplicationsHealthStatus.md index 248a7e81..5fc0dab3 100644 --- a/harness/nextgen/docs/ApplicationsHealthStatus.md +++ b/harness/nextgen/docs/ApplicationsHealthStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | **string** | | [optional] [default to null] **Message** | **string** | | [optional] [default to null] +**LastTransitionTime** | [***V1Time**](v1Time.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsOperationState.md b/harness/nextgen/docs/ApplicationsOperationState.md index eef53259..a9aef748 100644 --- a/harness/nextgen/docs/ApplicationsOperationState.md +++ b/harness/nextgen/docs/ApplicationsOperationState.md @@ -10,6 +10,8 @@ Name | Type | Description | Notes **StartedAt** | [***V1Time**](v1Time.md) | | [optional] [default to null] **FinishedAt** | [***V1Time**](v1Time.md) | | [optional] [default to null] **RetryCount** | **string** | | [optional] [default to null] +**StartedAtTs** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**FinishedAtTs** | [**time.Time**](time.Time.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsResourceActionRunRequest.md b/harness/nextgen/docs/ApplicationsResourceActionRunRequest.md index 80e27902..718333ae 100644 --- a/harness/nextgen/docs/ApplicationsResourceActionRunRequest.md +++ b/harness/nextgen/docs/ApplicationsResourceActionRunRequest.md @@ -10,6 +10,8 @@ Name | Type | Description | Notes **Group** | **string** | | [optional] [default to null] **Kind** | **string** | | [optional] [default to null] **Action** | **string** | | [optional] [default to null] +**AppNamespace** | **string** | | [optional] [default to null] +**Project** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsResourceStatus.md b/harness/nextgen/docs/ApplicationsResourceStatus.md index 197d6c43..8e4bfd8a 100644 --- a/harness/nextgen/docs/ApplicationsResourceStatus.md +++ b/harness/nextgen/docs/ApplicationsResourceStatus.md @@ -12,6 +12,8 @@ Name | Type | Description | Notes **Health** | [***ApplicationsHealthStatus**](applicationsHealthStatus.md) | | [optional] [default to null] **Hook** | **bool** | | [optional] [default to null] **RequiresPruning** | **bool** | | [optional] [default to null] +**SyncWave** | **string** | | [optional] [default to null] +**RequiresDeletionConfirmation** | **bool** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsRevisionHistory.md b/harness/nextgen/docs/ApplicationsRevisionHistory.md index c1f3dca3..25573420 100644 --- a/harness/nextgen/docs/ApplicationsRevisionHistory.md +++ b/harness/nextgen/docs/ApplicationsRevisionHistory.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **Id** | **string** | | [optional] [default to null] **Source** | [***ApplicationsApplicationSource**](applicationsApplicationSource.md) | | [optional] [default to null] **DeployStartedAt** | [***V1Time**](v1Time.md) | | [optional] [default to null] +**DeployedAtTs** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**DeployStartedAtTs** | [**time.Time**](time.Time.md) | | [optional] [default to null] **Sources** | [**[]ApplicationsApplicationSource**](applicationsApplicationSource.md) | | [optional] [default to null] **Revisions** | **[]string** | | [optional] [default to null] **InitiatedBy** | [***ApplicationsOperationInitiator**](applicationsOperationInitiator.md) | | [optional] [default to null] diff --git a/harness/nextgen/docs/ApplicationsSyncOperation.md b/harness/nextgen/docs/ApplicationsSyncOperation.md index dfd8c6d6..e425b013 100644 --- a/harness/nextgen/docs/ApplicationsSyncOperation.md +++ b/harness/nextgen/docs/ApplicationsSyncOperation.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **SyncOptions** | **[]string** | | [optional] [default to null] **Sources** | [**[]ApplicationsApplicationSource**](applicationsApplicationSource.md) | | [optional] [default to null] **Revisions** | **[]string** | Revisions is the list of revision (Git) or chart version (Helm) which to sync each source in sources field for the application to If omitted, will use the revision specified in app spec. | [optional] [default to null] +**AutoHealAttemptsCount** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsSyncOperationResult.md b/harness/nextgen/docs/ApplicationsSyncOperationResult.md index 48e64523..78a659ca 100644 --- a/harness/nextgen/docs/ApplicationsSyncOperationResult.md +++ b/harness/nextgen/docs/ApplicationsSyncOperationResult.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Source** | [***ApplicationsApplicationSource**](applicationsApplicationSource.md) | | [optional] [default to null] **Sources** | [**[]ApplicationsApplicationSource**](applicationsApplicationSource.md) | | [optional] [default to null] **Revisions** | **[]string** | | [optional] [default to null] +**ManagedNamespaceMetadata** | [***ApplicationsManagedNamespaceMetadata**](applicationsManagedNamespaceMetadata.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsSyncPolicy.md b/harness/nextgen/docs/ApplicationsSyncPolicy.md index 7e290c42..5fe9a50d 100644 --- a/harness/nextgen/docs/ApplicationsSyncPolicy.md +++ b/harness/nextgen/docs/ApplicationsSyncPolicy.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **Automated** | [***ApplicationsSyncPolicyAutomated**](applicationsSyncPolicyAutomated.md) | | [optional] [default to null] **SyncOptions** | **[]string** | | [optional] [default to null] **Retry** | [***ApplicationsRetryStrategy**](applicationsRetryStrategy.md) | | [optional] [default to null] +**ManagedNamespaceMetadata** | [***ApplicationsManagedNamespaceMetadata**](applicationsManagedNamespaceMetadata.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ApplicationsSyncStatus.md b/harness/nextgen/docs/ApplicationsSyncStatus.md index 4d1eb3af..eb120013 100644 --- a/harness/nextgen/docs/ApplicationsSyncStatus.md +++ b/harness/nextgen/docs/ApplicationsSyncStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **Status** | **string** | | [optional] [default to null] **ComparedTo** | [***ApplicationsComparedTo**](applicationsComparedTo.md) | | [optional] [default to null] **Revision** | **string** | | [optional] [default to null] +**Revisions** | **[]string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/AppprojectsAppProjectSpec.md b/harness/nextgen/docs/AppprojectsAppProjectSpec.md index b43103d1..a651093f 100644 --- a/harness/nextgen/docs/AppprojectsAppProjectSpec.md +++ b/harness/nextgen/docs/AppprojectsAppProjectSpec.md @@ -14,6 +14,9 @@ Name | Type | Description | Notes **NamespaceResourceWhitelist** | [**[]V1GroupKind**](v1GroupKind.md) | | [optional] [default to null] **SignatureKeys** | [**[]AppprojectsSignatureKey**](appprojectsSignatureKey.md) | | [optional] [default to null] **ClusterResourceBlacklist** | [**[]V1GroupKind**](v1GroupKind.md) | | [optional] [default to null] +**SourceNamespaces** | **[]string** | | [optional] [default to null] +**PermitOnlyProjectScopedClusters** | **bool** | | [optional] [default to null] +**DestinationServiceAccounts** | [**[]AppprojectsApplicationDestinationServiceAccount**](appprojectsApplicationDestinationServiceAccount.md) | DestinationServiceAccounts holds information about the service accounts to be impersonated for the application sync operation for each destination. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/ClustersClusterConfig.md b/harness/nextgen/docs/ClustersClusterConfig.md index e798a73d..56f0fa49 100644 --- a/harness/nextgen/docs/ClustersClusterConfig.md +++ b/harness/nextgen/docs/ClustersClusterConfig.md @@ -12,6 +12,8 @@ Name | Type | Description | Notes **AwsClusterName** | **string** | AWS Cluster name. If set then AWS CLI EKS token command will be used to access cluster. | [optional] [default to null] **ExecProviderConfig** | [***ClustersExecProviderConfig**](clustersExecProviderConfig.md) | | [optional] [default to null] **ClusterConnectionType** | **string** | | [optional] [default to null] +**DisableCompression** | **bool** | DisableCompression bypasses automatic GZip compression requests to the server. | [optional] [default to null] +**ProxyUrl** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/docs/RepositoriesApi.md b/harness/nextgen/docs/RepositoriesApi.md index ccaa5de2..0f53e15f 100644 --- a/harness/nextgen/docs/RepositoriesApi.md +++ b/harness/nextgen/docs/RepositoriesApi.md @@ -271,6 +271,14 @@ Name | Type | Description | Notes **querySourceHelmValues** | **optional.String**| Values specifies Helm values to be passed to helm template, typically defined as a block. | **querySourceHelmVersion** | **optional.String**| Version is the Helm version to use for templating (either \"2\" or \"3\"). | **querySourceHelmPassCredentials** | **optional.Bool**| PassCredentials pass credentials to all domains (Helm's --pass-credentials). | + **querySourceHelmIgnoreMissingValueFiles** | **optional.Bool**| IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values. | + **querySourceHelmSkipCrds** | **optional.Bool**| SkipCrds skips custom resource definition installation step (Helm's --skip-crds). | + **querySourceHelmValuesObjectRaw** | **optional.String**| Raw is the underlying serialization of this object. TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. | + **querySourceHelmNamespace** | **optional.String**| Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. | + **querySourceHelmKubeVersion** | **optional.String**| KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. | + **querySourceHelmApiVersions** | [**optional.Interface of []string**](string.md)| APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. | + **querySourceHelmSkipTests** | **optional.Bool**| SkipTests skips test manifest installation step (Helm's --skip-tests). | + **querySourceHelmSkipSchemaValidation** | **optional.Bool**| SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation). | **querySourceKustomizeNamePrefix** | **optional.String**| NamePrefix is a prefix appended to resources for Kustomize apps. | **querySourceKustomizeNameSuffix** | **optional.String**| NameSuffix is a suffix appended to resources for Kustomize apps. | **querySourceKustomizeImages** | [**optional.Interface of []string**](string.md)| Images is a list of Kustomize image override specifications. | @@ -278,6 +286,10 @@ Name | Type | Description | Notes **querySourceKustomizeForceCommonLabels** | **optional.Bool**| ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps. | **querySourceKustomizeForceCommonAnnotations** | **optional.Bool**| ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps. | **querySourceKustomizeNamespace** | **optional.String**| Namespace sets the namespace that Kustomize adds to all resources. | + **querySourceKustomizeComponents** | [**optional.Interface of []string**](string.md)| Components specifies a list of kustomize components to add to the kustomization before building. | + **querySourceKustomizeLabelWithoutSelector** | **optional.Bool**| LabelWithoutSelector specifies whether to apply common labels to resource selectors or not. | + **querySourceKustomizeKubeVersion** | **optional.String**| KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. | + **querySourceKustomizeApiVersions** | [**optional.Interface of []string**](string.md)| APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. | **querySourceKsonnetEnvironment** | **optional.String**| Environment is a ksonnet application environment name. | **querySourceDirectoryRecurse** | **optional.Bool**| Recurse specifies whether to scan a directory recursively for manifests. | **querySourceDirectoryJsonnetLibs** | [**optional.Interface of []string**](string.md)| Additional library search dirs. | @@ -286,8 +298,11 @@ Name | Type | Description | Notes **querySourcePluginName** | **optional.String**| | **querySourceChart** | **optional.String**| Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. | **querySourceRef** | **optional.String**| Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. | + **querySourceName** | **optional.String**| Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. | **queryAppName** | **optional.String**| | **queryAppProject** | **optional.String**| | + **querySourceIndex** | **optional.Int32**| source index (for multi source apps). | + **queryVersionId** | **optional.Int32**| versionId from historical data (for multi source apps). | ### Return type @@ -332,6 +347,7 @@ Name | Type | Description | Notes **identifier** | **optional.String**| | + **querySourceRepoURL** | **optional.String**| RepoURL is the URL to the repository (Git or Helm) that contains the application manifests. | **querySourcePath** | **optional.String**| Path is a directory path within the Git repository, and is only valid for applications sourced from Git. | **querySourceTargetRevision** | **optional.String**| TargetRevision defines the revision of the source to sync the application to. In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. | **querySourceHelmValueFiles** | [**optional.Interface of []string**](string.md)| ValuesFiles is a list of Helm value files to use when generating a template. | @@ -339,6 +355,14 @@ Name | Type | Description | Notes **querySourceHelmValues** | **optional.String**| Values specifies Helm values to be passed to helm template, typically defined as a block. | **querySourceHelmVersion** | **optional.String**| Version is the Helm version to use for templating (either \"2\" or \"3\"). | **querySourceHelmPassCredentials** | **optional.Bool**| PassCredentials pass credentials to all domains (Helm's --pass-credentials). | + **querySourceHelmIgnoreMissingValueFiles** | **optional.Bool**| IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values. | + **querySourceHelmSkipCrds** | **optional.Bool**| SkipCrds skips custom resource definition installation step (Helm's --skip-crds). | + **querySourceHelmValuesObjectRaw** | **optional.String**| Raw is the underlying serialization of this object. TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. | + **querySourceHelmNamespace** | **optional.String**| Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. | + **querySourceHelmKubeVersion** | **optional.String**| KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. | + **querySourceHelmApiVersions** | [**optional.Interface of []string**](string.md)| APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. | + **querySourceHelmSkipTests** | **optional.Bool**| SkipTests skips test manifest installation step (Helm's --skip-tests). | + **querySourceHelmSkipSchemaValidation** | **optional.Bool**| SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation). | **querySourceKustomizeNamePrefix** | **optional.String**| NamePrefix is a prefix appended to resources for Kustomize apps. | **querySourceKustomizeNameSuffix** | **optional.String**| NameSuffix is a suffix appended to resources for Kustomize apps. | **querySourceKustomizeImages** | [**optional.Interface of []string**](string.md)| Images is a list of Kustomize image override specifications. | @@ -346,6 +370,10 @@ Name | Type | Description | Notes **querySourceKustomizeForceCommonLabels** | **optional.Bool**| ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps. | **querySourceKustomizeForceCommonAnnotations** | **optional.Bool**| ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps. | **querySourceKustomizeNamespace** | **optional.String**| Namespace sets the namespace that Kustomize adds to all resources. | + **querySourceKustomizeComponents** | [**optional.Interface of []string**](string.md)| Components specifies a list of kustomize components to add to the kustomization before building. | + **querySourceKustomizeLabelWithoutSelector** | **optional.Bool**| LabelWithoutSelector specifies whether to apply common labels to resource selectors or not. | + **querySourceKustomizeKubeVersion** | **optional.String**| KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. | + **querySourceKustomizeApiVersions** | [**optional.Interface of []string**](string.md)| APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. | **querySourceKsonnetEnvironment** | **optional.String**| Environment is a ksonnet application environment name. | **querySourceDirectoryRecurse** | **optional.Bool**| Recurse specifies whether to scan a directory recursively for manifests. | **querySourceDirectoryJsonnetLibs** | [**optional.Interface of []string**](string.md)| Additional library search dirs. | @@ -354,8 +382,11 @@ Name | Type | Description | Notes **querySourcePluginName** | **optional.String**| | **querySourceChart** | **optional.String**| Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. | **querySourceRef** | **optional.String**| Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. | + **querySourceName** | **optional.String**| Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. | **queryAppName** | **optional.String**| | **queryAppProject** | **optional.String**| | + **querySourceIndex** | **optional.Int32**| source index (for multi source apps). | + **queryVersionId** | **optional.Int32**| versionId from historical data (for multi source apps). | ### Return type @@ -484,6 +515,7 @@ Name | Type | Description | Notes **identifier** | **optional.String**| | + **queryRepo** | **optional.String**| Repo URL for query. | **queryForceRefresh** | **optional.Bool**| Whether to force a cache refresh on repo's connection state. | **queryProject** | **optional.String**| The associated project project. | diff --git a/harness/nextgen/docs/RepositoriesRepository.md b/harness/nextgen/docs/RepositoriesRepository.md index 1270cb00..112fd3d0 100644 --- a/harness/nextgen/docs/RepositoriesRepository.md +++ b/harness/nextgen/docs/RepositoriesRepository.md @@ -24,6 +24,8 @@ Name | Type | Description | Notes **Proxy** | **string** | | [optional] [default to null] **Project** | **string** | | [optional] [default to null] **ConnectionType** | **string** | | [optional] [default to null] +**ForceHttpBasicAuth** | **bool** | | [optional] [default to null] +**NoProxy** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/harness/nextgen/model_applications_application_condition.go b/harness/nextgen/model_applications_application_condition.go index a03ea3ee..aa70d93c 100644 --- a/harness/nextgen/model_applications_application_condition.go +++ b/harness/nextgen/model_applications_application_condition.go @@ -13,5 +13,4 @@ type ApplicationsApplicationCondition struct { Type_ string `json:"type,omitempty"` Message string `json:"message,omitempty"` LastTransitionTime *V1Time `json:"lastTransitionTime,omitempty"` - } diff --git a/harness/nextgen/model_applications_application_delete_request.go b/harness/nextgen/model_applications_application_delete_request.go index 6a32707f..207cf867 100644 --- a/harness/nextgen/model_applications_application_delete_request.go +++ b/harness/nextgen/model_applications_application_delete_request.go @@ -10,7 +10,9 @@ package nextgen type ApplicationsApplicationDeleteRequest struct { - Name string `json:"name,omitempty"` - Cascade bool `json:"cascade,omitempty"` + Name string `json:"name,omitempty"` + Cascade bool `json:"cascade,omitempty"` PropagationPolicy string `json:"propagationPolicy,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` } diff --git a/harness/nextgen/model_applications_application_patch_request.go b/harness/nextgen/model_applications_application_patch_request.go index a1f48bb2..bd888c81 100644 --- a/harness/nextgen/model_applications_application_patch_request.go +++ b/harness/nextgen/model_applications_application_patch_request.go @@ -10,7 +10,9 @@ package nextgen type ApplicationsApplicationPatchRequest struct { - Name string `json:"name,omitempty"` - Patch string `json:"patch,omitempty"` - PatchType string `json:"patchType,omitempty"` + Name string `json:"name,omitempty"` + Patch string `json:"patch,omitempty"` + PatchType string `json:"patchType,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` } diff --git a/harness/nextgen/model_applications_application_resource_patch_request.go b/harness/nextgen/model_applications_application_resource_patch_request.go index b0ad066e..e85a4be9 100644 --- a/harness/nextgen/model_applications_application_resource_patch_request.go +++ b/harness/nextgen/model_applications_application_resource_patch_request.go @@ -18,4 +18,6 @@ type ApplicationsApplicationResourcePatchRequest struct { Kind string `json:"kind,omitempty"` Patch string `json:"patch,omitempty"` PatchType string `json:"patchType,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` } diff --git a/harness/nextgen/model_applications_application_rollback_request.go b/harness/nextgen/model_applications_application_rollback_request.go index ad00fff2..a4f9337a 100644 --- a/harness/nextgen/model_applications_application_rollback_request.go +++ b/harness/nextgen/model_applications_application_rollback_request.go @@ -10,8 +10,10 @@ package nextgen type ApplicationsApplicationRollbackRequest struct { - Name string `json:"name,omitempty"` - Id string `json:"id,omitempty"` - DryRun bool `json:"dryRun,omitempty"` - Prune bool `json:"prune,omitempty"` + Name string `json:"name,omitempty"` + Id string `json:"id,omitempty"` + DryRun bool `json:"dryRun,omitempty"` + Prune bool `json:"prune,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` } diff --git a/harness/nextgen/model_applications_application_source.go b/harness/nextgen/model_applications_application_source.go index 579a6dfc..600dc4d0 100644 --- a/harness/nextgen/model_applications_application_source.go +++ b/harness/nextgen/model_applications_application_source.go @@ -24,4 +24,6 @@ type ApplicationsApplicationSource struct { Chart string `json:"chart,omitempty"` // Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. Ref string `json:"ref,omitempty"` + // Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + Name string `json:"name,omitempty"` } diff --git a/harness/nextgen/model_applications_application_source_helm.go b/harness/nextgen/model_applications_application_source_helm.go index 41081278..775b5920 100644 --- a/harness/nextgen/model_applications_application_source_helm.go +++ b/harness/nextgen/model_applications_application_source_helm.go @@ -10,11 +10,23 @@ package nextgen type ApplicationsApplicationSourceHelm struct { - ValueFiles []string `json:"valueFiles,omitempty"` - Parameters []ApplicationsHelmParameter `json:"parameters,omitempty"` - ReleaseName string `json:"releaseName,omitempty"` - Values string `json:"values,omitempty"` - FileParameters []ApplicationsHelmFileParameter `json:"fileParameters,omitempty"` - Version string `json:"version,omitempty"` - PassCredentials bool `json:"passCredentials,omitempty"` + ValueFiles []string `json:"valueFiles,omitempty"` + Parameters []ApplicationsHelmParameter `json:"parameters,omitempty"` + ReleaseName string `json:"releaseName,omitempty"` + Values string `json:"values,omitempty"` + FileParameters []ApplicationsHelmFileParameter `json:"fileParameters,omitempty"` + Version string `json:"version,omitempty"` + PassCredentials bool `json:"passCredentials,omitempty"` + IgnoreMissingValueFiles bool `json:"ignoreMissingValueFiles,omitempty"` + SkipCrds bool `json:"skipCrds,omitempty"` + ValuesObject *RuntimeRawExtension `json:"valuesObject,omitempty"` + // Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + Namespace string `json:"namespace,omitempty"` + // KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. + KubeVersion string `json:"kubeVersion,omitempty"` + // APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + ApiVersions []string `json:"apiVersions,omitempty"` + // SkipTests skips test manifest installation step (Helm's --skip-tests). + SkipTests bool `json:"skipTests,omitempty"` + SkipSchemaValidation bool `json:"skipSchemaValidation,omitempty"` } diff --git a/harness/nextgen/model_applications_application_source_kustomize.go b/harness/nextgen/model_applications_application_source_kustomize.go index f0572a23..48bcff10 100644 --- a/harness/nextgen/model_applications_application_source_kustomize.go +++ b/harness/nextgen/model_applications_application_source_kustomize.go @@ -10,14 +10,21 @@ package nextgen type ApplicationsApplicationSourceKustomize struct { - NamePrefix string `json:"namePrefix,omitempty"` - NameSuffix string `json:"nameSuffix,omitempty"` - Images []string `json:"images,omitempty"` - CommonLabels map[string]string `json:"commonLabels,omitempty"` - Version string `json:"version,omitempty"` - CommonAnnotations map[string]string `json:"commonAnnotations,omitempty"` - ForceCommonLabels bool `json:"forceCommonLabels,omitempty"` - ForceCommonAnnotations bool `json:"forceCommonAnnotations,omitempty"` - Namespace string `json:"namespace,omitempty"` - Replicas []ApplicationsKustomizeReplicas `json:"replicas,omitempty"` + NamePrefix string `json:"namePrefix,omitempty"` + NameSuffix string `json:"nameSuffix,omitempty"` + Images []string `json:"images,omitempty"` + CommonLabels map[string]string `json:"commonLabels,omitempty"` + Version string `json:"version,omitempty"` + CommonAnnotations map[string]string `json:"commonAnnotations,omitempty"` + ForceCommonLabels bool `json:"forceCommonLabels,omitempty"` + ForceCommonAnnotations bool `json:"forceCommonAnnotations,omitempty"` + Namespace string `json:"namespace,omitempty"` + Replicas []ApplicationsKustomizeReplicas `json:"replicas,omitempty"` + Patches []ApplicationsKustomizePatch `json:"patches,omitempty"` + Components []string `json:"components,omitempty"` + LabelWithoutSelector bool `json:"labelWithoutSelector,omitempty"` + // KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses the Kubernetes version of the target cluster. + KubeVersion string `json:"kubeVersion,omitempty"` + // APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + ApiVersions []string `json:"apiVersions,omitempty"` } diff --git a/harness/nextgen/model_applications_application_source_plugin.go b/harness/nextgen/model_applications_application_source_plugin.go index 7edf85fa..dab1deee 100644 --- a/harness/nextgen/model_applications_application_source_plugin.go +++ b/harness/nextgen/model_applications_application_source_plugin.go @@ -10,6 +10,7 @@ package nextgen type ApplicationsApplicationSourcePlugin struct { - Name string `json:"name,omitempty"` - Env []ApplicationsEnvEntry `json:"env,omitempty"` + Name string `json:"name,omitempty"` + Env []ApplicationsEnvEntry `json:"env,omitempty"` + Parameters []ApplicationsApplicationSourcePluginParameter `json:"parameters,omitempty"` } diff --git a/harness/nextgen/model_applications_application_source_plugin_parameter.go b/harness/nextgen/model_applications_application_source_plugin_parameter.go new file mode 100644 index 00000000..6749317d --- /dev/null +++ b/harness/nextgen/model_applications_application_source_plugin_parameter.go @@ -0,0 +1,19 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsApplicationSourcePluginParameter struct { + // Name is the name identifying a parameter. + Name string `json:"name,omitempty"` + // String_ is the value of a string type parameter. + String_ string `json:"string,omitempty"` + Map_ *ApplicationsOptionalMap `json:"map,omitempty"` + Array *ApplicationsOptionalArray `json:"array,omitempty"` +} diff --git a/harness/nextgen/model_applications_application_status.go b/harness/nextgen/model_applications_application_status.go index ce4817c2..91e0c4c5 100644 --- a/harness/nextgen/model_applications_application_status.go +++ b/harness/nextgen/model_applications_application_status.go @@ -10,17 +10,17 @@ package nextgen type ApplicationsApplicationStatus struct { - Resources []ApplicationsResourceStatus `json:"resources,omitempty"` - Sync *ApplicationsSyncStatus `json:"sync,omitempty"` - Health *ApplicationsHealthStatus `json:"health,omitempty"` - History []ApplicationsRevisionHistory `json:"history,omitempty"` - Conditions []ApplicationsApplicationCondition `json:"conditions,omitempty"` - ReconciledAt *V1Time `json:"reconciledAt,omitempty"` - OperationState *ApplicationsOperationState `json:"operationState,omitempty"` - ObservedAt *V1Time `json:"observedAt,omitempty"` - SourceType string `json:"sourceType,omitempty"` - Summary *ApplicationsApplicationSummary `json:"summary,omitempty"` - ResourceHealthSource string `json:"resourceHealthSource,omitempty"` - SourceTypes []string `json:"sourceTypes,omitempty"` - ControllerNamespace string `json:"controllerNamespace,omitempty"` + Resources []ApplicationsResourceStatus `json:"resources,omitempty"` + Sync *ApplicationsSyncStatus `json:"sync,omitempty"` + Health *ApplicationsHealthStatus `json:"health,omitempty"` + History []ApplicationsRevisionHistory `json:"history,omitempty"` + Conditions []ApplicationsApplicationCondition `json:"conditions,omitempty"` + ReconciledAt *V1Time `json:"reconciledAt,omitempty"` + OperationState *ApplicationsOperationState `json:"operationState,omitempty"` + ObservedAt *V1Time `json:"observedAt,omitempty"` + SourceType string `json:"sourceType,omitempty"` + Summary *ApplicationsApplicationSummary `json:"summary,omitempty"` + ResourceHealthSource string `json:"resourceHealthSource,omitempty"` + SourceTypes []string `json:"sourceTypes,omitempty"` + ControllerNamespace string `json:"controllerNamespace,omitempty"` } diff --git a/harness/nextgen/model_applications_application_sync_request.go b/harness/nextgen/model_applications_application_sync_request.go index 233341b2..38b65579 100644 --- a/harness/nextgen/model_applications_application_sync_request.go +++ b/harness/nextgen/model_applications_application_sync_request.go @@ -10,14 +10,18 @@ package nextgen type ApplicationsApplicationSyncRequest struct { - Name string `json:"name,omitempty"` - Revision string `json:"revision,omitempty"` - DryRun bool `json:"dryRun,omitempty"` - Prune bool `json:"prune,omitempty"` - Strategy *ApplicationsSyncStrategy `json:"strategy,omitempty"` - Resources []ApplicationsSyncOperationResource `json:"resources,omitempty"` - Manifests []string `json:"manifests,omitempty"` - Infos []ApplicationsInfo `json:"infos,omitempty"` - RetryStrategy *ApplicationsRetryStrategy `json:"retryStrategy,omitempty"` - SyncOptions *ApplicationsSyncOptions `json:"syncOptions,omitempty"` + Name string `json:"name,omitempty"` + Revision string `json:"revision,omitempty"` + DryRun bool `json:"dryRun,omitempty"` + Prune bool `json:"prune,omitempty"` + Strategy *ApplicationsSyncStrategy `json:"strategy,omitempty"` + Resources []ApplicationsSyncOperationResource `json:"resources,omitempty"` + Manifests []string `json:"manifests,omitempty"` + Infos []ApplicationsInfo `json:"infos,omitempty"` + RetryStrategy *ApplicationsRetryStrategy `json:"retryStrategy,omitempty"` + SyncOptions *ApplicationsSyncOptions `json:"syncOptions,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` + SourcePositions []string `json:"sourcePositions,omitempty"` + Revisions []string `json:"revisions,omitempty"` } diff --git a/harness/nextgen/model_applications_compared_to.go b/harness/nextgen/model_applications_compared_to.go index 56e86bf6..439aa93b 100644 --- a/harness/nextgen/model_applications_compared_to.go +++ b/harness/nextgen/model_applications_compared_to.go @@ -10,8 +10,8 @@ package nextgen type ApplicationsComparedTo struct { - Source *ApplicationsApplicationSource `json:"source,omitempty"` - Destination *ApplicationsApplicationDestination `json:"destination,omitempty"` - Sources []ApplicationsApplicationSource `json:"sources,omitempty"` + Source *ApplicationsApplicationSource `json:"source,omitempty"` + Destination *ApplicationsApplicationDestination `json:"destination,omitempty"` + Sources []ApplicationsApplicationSource `json:"sources,omitempty"` IgnoreDifferences []ApplicationsResourceIgnoreDifferences `json:"ignoreDifferences,omitempty"` } diff --git a/harness/nextgen/model_applications_kustomize_gvk.go b/harness/nextgen/model_applications_kustomize_gvk.go new file mode 100644 index 00000000..13ca67bb --- /dev/null +++ b/harness/nextgen/model_applications_kustomize_gvk.go @@ -0,0 +1,16 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsKustomizeGvk struct { + Group string `json:"group,omitempty"` + Version string `json:"version,omitempty"` + Kind string `json:"kind,omitempty"` +} diff --git a/harness/nextgen/model_applications_kustomize_patch.go b/harness/nextgen/model_applications_kustomize_patch.go new file mode 100644 index 00000000..aa8bd494 --- /dev/null +++ b/harness/nextgen/model_applications_kustomize_patch.go @@ -0,0 +1,17 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsKustomizePatch struct { + Path string `json:"path,omitempty"` + Patch string `json:"patch,omitempty"` + Target *ApplicationsKustomizeSelector `json:"target,omitempty"` + Options map[string]bool `json:"options,omitempty"` +} diff --git a/harness/nextgen/model_applications_kustomize_replicas.go b/harness/nextgen/model_applications_kustomize_replicas.go index f11d9976..6d6ef204 100644 --- a/harness/nextgen/model_applications_kustomize_replicas.go +++ b/harness/nextgen/model_applications_kustomize_replicas.go @@ -9,8 +9,7 @@ */ package nextgen - type ApplicationsKustomizeReplicas struct { Count string `json:"count,omitempty"` - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` } diff --git a/harness/nextgen/model_applications_kustomize_res_id.go b/harness/nextgen/model_applications_kustomize_res_id.go new file mode 100644 index 00000000..bea6dd2b --- /dev/null +++ b/harness/nextgen/model_applications_kustomize_res_id.go @@ -0,0 +1,16 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsKustomizeResId struct { + Gvk *ApplicationsKustomizeGvk `json:"gvk,omitempty"` + Name string `json:"name,omitempty"` + Namespace string `json:"namespace,omitempty"` +} diff --git a/harness/nextgen/model_applications_kustomize_selector.go b/harness/nextgen/model_applications_kustomize_selector.go new file mode 100644 index 00000000..26024f5f --- /dev/null +++ b/harness/nextgen/model_applications_kustomize_selector.go @@ -0,0 +1,16 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsKustomizeSelector struct { + ResId *ApplicationsKustomizeResId `json:"resId,omitempty"` + AnnotationSelector string `json:"annotationSelector,omitempty"` + LabelSelector string `json:"labelSelector,omitempty"` +} diff --git a/harness/nextgen/model_applications_managed_namespace_metadata.go b/harness/nextgen/model_applications_managed_namespace_metadata.go new file mode 100644 index 00000000..34fb42ae --- /dev/null +++ b/harness/nextgen/model_applications_managed_namespace_metadata.go @@ -0,0 +1,15 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsManagedNamespaceMetadata struct { + Labels map[string]string `json:"labels,omitempty"` + Annotations map[string]string `json:"annotations,omitempty"` +} diff --git a/harness/nextgen/model_applications_optional_array.go b/harness/nextgen/model_applications_optional_array.go new file mode 100644 index 00000000..1c6aa340 --- /dev/null +++ b/harness/nextgen/model_applications_optional_array.go @@ -0,0 +1,14 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsOptionalArray struct { + Array []string `json:"array,omitempty"` +} diff --git a/harness/nextgen/model_applications_optional_map.go b/harness/nextgen/model_applications_optional_map.go new file mode 100644 index 00000000..d05b268e --- /dev/null +++ b/harness/nextgen/model_applications_optional_map.go @@ -0,0 +1,14 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +type ApplicationsOptionalMap struct { + Map_ map[string]string `json:"map,omitempty"` +} diff --git a/harness/nextgen/model_applications_resource_action_run_request.go b/harness/nextgen/model_applications_resource_action_run_request.go index 71790f29..2bec8776 100644 --- a/harness/nextgen/model_applications_resource_action_run_request.go +++ b/harness/nextgen/model_applications_resource_action_run_request.go @@ -17,4 +17,6 @@ type ApplicationsResourceActionRunRequest struct { Group string `json:"group,omitempty"` Kind string `json:"kind,omitempty"` Action string `json:"action,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` } diff --git a/harness/nextgen/model_applications_resource_status.go b/harness/nextgen/model_applications_resource_status.go index 31b3dc77..f982b6e6 100644 --- a/harness/nextgen/model_applications_resource_status.go +++ b/harness/nextgen/model_applications_resource_status.go @@ -10,13 +10,15 @@ package nextgen type ApplicationsResourceStatus struct { - Group string `json:"group,omitempty"` - Version string `json:"version,omitempty"` - Kind string `json:"kind,omitempty"` - Namespace string `json:"namespace,omitempty"` - Name string `json:"name,omitempty"` - Status string `json:"status,omitempty"` - Health *ApplicationsHealthStatus `json:"health,omitempty"` - Hook bool `json:"hook,omitempty"` - RequiresPruning bool `json:"requiresPruning,omitempty"` + Group string `json:"group,omitempty"` + Version string `json:"version,omitempty"` + Kind string `json:"kind,omitempty"` + Namespace string `json:"namespace,omitempty"` + Name string `json:"name,omitempty"` + Status string `json:"status,omitempty"` + Health *ApplicationsHealthStatus `json:"health,omitempty"` + Hook bool `json:"hook,omitempty"` + RequiresPruning bool `json:"requiresPruning,omitempty"` + SyncWave string `json:"syncWave,omitempty"` + RequiresDeletionConfirmation bool `json:"requiresDeletionConfirmation,omitempty"` } diff --git a/harness/nextgen/model_applications_resources_query.go b/harness/nextgen/model_applications_resources_query.go index 8bc3c5b2..d0d44c95 100644 --- a/harness/nextgen/model_applications_resources_query.go +++ b/harness/nextgen/model_applications_resources_query.go @@ -8,11 +8,14 @@ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package nextgen + type ApplicationsResourcesQuery struct { ApplicationName string `json:"applicationName,omitempty"` - Namespace string `json:"namespace,omitempty"` - Name string `json:"name,omitempty"` - Version string `json:"version,omitempty"` - Group string `json:"group,omitempty"` - Kind string `json:"kind,omitempty"` + Namespace string `json:"namespace,omitempty"` + Name string `json:"name,omitempty"` + Version string `json:"version,omitempty"` + Group string `json:"group,omitempty"` + Kind string `json:"kind,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` } diff --git a/harness/nextgen/model_applications_revision_history.go b/harness/nextgen/model_applications_revision_history.go index c10c994d..08266b46 100644 --- a/harness/nextgen/model_applications_revision_history.go +++ b/harness/nextgen/model_applications_revision_history.go @@ -9,13 +9,19 @@ */ package nextgen +import ( + "time" +) + type ApplicationsRevisionHistory struct { - Revision string `json:"revision,omitempty"` - DeployedAt *V1Time `json:"deployedAt,omitempty"` - Id string `json:"id,omitempty"` - Source *ApplicationsApplicationSource `json:"source,omitempty"` - DeployStartedAt *V1Time `json:"deployStartedAt,omitempty"` - Sources []ApplicationsApplicationSource `json:"sources,omitempty"` - Revisions []string `json:"revisions,omitempty"` - InitiatedBy *ApplicationsOperationInitiator `json:"initiatedBy,omitempty"` + Revision string `json:"revision,omitempty"` + DeployedAt *V1Time `json:"deployedAt,omitempty"` + Id string `json:"id,omitempty"` + Source *ApplicationsApplicationSource `json:"source,omitempty"` + DeployStartedAt *V1Time `json:"deployStartedAt,omitempty"` + DeployedAtTs time.Time `json:"deployedAtTs,omitempty"` + DeployStartedAtTs time.Time `json:"deployStartedAtTs,omitempty"` + Sources []ApplicationsApplicationSource `json:"sources,omitempty"` + Revisions []string `json:"revisions,omitempty"` + InitiatedBy *ApplicationsOperationInitiator `json:"initiatedBy,omitempty"` } diff --git a/harness/nextgen/model_applications_revision_metadata_query.go b/harness/nextgen/model_applications_revision_metadata_query.go index 141ec849..7e5bdcb4 100644 --- a/harness/nextgen/model_applications_revision_metadata_query.go +++ b/harness/nextgen/model_applications_revision_metadata_query.go @@ -10,6 +10,10 @@ package nextgen type ApplicationsRevisionMetadataQuery struct { - Name string `json:"name,omitempty"` - Revision string `json:"revision,omitempty"` + Name string `json:"name,omitempty"` + Revision string `json:"revision,omitempty"` + AppNamespace string `json:"appNamespace,omitempty"` + Project string `json:"project,omitempty"` + SourceIndex int32 `json:"sourceIndex,omitempty"` + VersionId int32 `json:"versionId,omitempty"` } diff --git a/harness/nextgen/model_applications_sync_operation.go b/harness/nextgen/model_applications_sync_operation.go index 1147e2ee..c467e020 100644 --- a/harness/nextgen/model_applications_sync_operation.go +++ b/harness/nextgen/model_applications_sync_operation.go @@ -20,7 +20,8 @@ type ApplicationsSyncOperation struct { Source *ApplicationsApplicationSource `json:"source,omitempty"` Manifests []string `json:"manifests,omitempty"` SyncOptions []string `json:"syncOptions,omitempty"` - Sources []ApplicationsApplicationSource `json:"sources,omitempty"` + Sources []ApplicationsApplicationSource `json:"sources,omitempty"` // Revisions is the list of revision (Git) or chart version (Helm) which to sync each source in sources field for the application to If omitted, will use the revision specified in app spec. - Revisions []string `json:"revisions,omitempty"` + Revisions []string `json:"revisions,omitempty"` + AutoHealAttemptsCount string `json:"autoHealAttemptsCount,omitempty"` } diff --git a/harness/nextgen/model_applications_sync_operation_result.go b/harness/nextgen/model_applications_sync_operation_result.go index 794a2075..76d41ed2 100644 --- a/harness/nextgen/model_applications_sync_operation_result.go +++ b/harness/nextgen/model_applications_sync_operation_result.go @@ -10,9 +10,10 @@ package nextgen type ApplicationsSyncOperationResult struct { - Resources []ApplicationsResourceResult `json:"resources,omitempty"` - Revision string `json:"revision,omitempty"` - Source *ApplicationsApplicationSource `json:"source,omitempty"` - Sources []ApplicationsApplicationSource `json:"sources,omitempty"` - Revisions []string `json:"revisions,omitempty"` + Resources []ApplicationsResourceResult `json:"resources,omitempty"` + Revision string `json:"revision,omitempty"` + Source *ApplicationsApplicationSource `json:"source,omitempty"` + Sources []ApplicationsApplicationSource `json:"sources,omitempty"` + Revisions []string `json:"revisions,omitempty"` + ManagedNamespaceMetadata *ApplicationsManagedNamespaceMetadata `json:"managedNamespaceMetadata,omitempty"` } diff --git a/harness/nextgen/model_applications_sync_policy.go b/harness/nextgen/model_applications_sync_policy.go index 9d99bfde..86289f67 100644 --- a/harness/nextgen/model_applications_sync_policy.go +++ b/harness/nextgen/model_applications_sync_policy.go @@ -10,7 +10,8 @@ package nextgen type ApplicationsSyncPolicy struct { - Automated *ApplicationsSyncPolicyAutomated `json:"automated,omitempty"` - SyncOptions []string `json:"syncOptions,omitempty"` - Retry *ApplicationsRetryStrategy `json:"retry,omitempty"` + Automated *ApplicationsSyncPolicyAutomated `json:"automated,omitempty"` + SyncOptions []string `json:"syncOptions,omitempty"` + Retry *ApplicationsRetryStrategy `json:"retry,omitempty"` + ManagedNamespaceMetadata *ApplicationsManagedNamespaceMetadata `json:"managedNamespaceMetadata,omitempty"` } diff --git a/harness/nextgen/model_applications_sync_status.go b/harness/nextgen/model_applications_sync_status.go index efe6f5b5..25415c99 100644 --- a/harness/nextgen/model_applications_sync_status.go +++ b/harness/nextgen/model_applications_sync_status.go @@ -13,4 +13,5 @@ type ApplicationsSyncStatus struct { Status string `json:"status,omitempty"` ComparedTo *ApplicationsComparedTo `json:"comparedTo,omitempty"` Revision string `json:"revision,omitempty"` + Revisions []string `json:"revisions,omitempty"` } diff --git a/harness/nextgen/model_applicationv1alpha1_repository_certificate.go b/harness/nextgen/model_applicationv1alpha1_repository_certificate.go index c35bf484..5e04eb2d 100644 --- a/harness/nextgen/model_applicationv1alpha1_repository_certificate.go +++ b/harness/nextgen/model_applicationv1alpha1_repository_certificate.go @@ -10,9 +10,9 @@ package nextgen type Applicationv1alpha1RepositoryCertificate struct { - ServerName string `json:"serverName,omitempty"` - CertType string `json:"certType,omitempty"` + ServerName string `json:"serverName,omitempty"` + CertType string `json:"certType,omitempty"` CertSubType string `json:"certSubType,omitempty"` - CertData string `json:"certData,omitempty"` - CertInfo string `json:"certInfo,omitempty"` + CertData string `json:"certData,omitempty"` + CertInfo string `json:"certInfo,omitempty"` } diff --git a/harness/nextgen/model_applicationv1alpha1_repository_certificate_list.go b/harness/nextgen/model_applicationv1alpha1_repository_certificate_list.go index af7a81aa..a55b8840 100644 --- a/harness/nextgen/model_applicationv1alpha1_repository_certificate_list.go +++ b/harness/nextgen/model_applicationv1alpha1_repository_certificate_list.go @@ -10,6 +10,6 @@ package nextgen type Applicationv1alpha1RepositoryCertificateList struct { - Metadata *V1ListMeta `json:"metadata,omitempty"` - Items []Applicationv1alpha1RepositoryCertificate `json:"items,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` + Items []Applicationv1alpha1RepositoryCertificate `json:"items,omitempty"` } diff --git a/harness/nextgen/model_appprojects_app_project_spec.go b/harness/nextgen/model_appprojects_app_project_spec.go index 76c88ffd..bb52cbc6 100644 --- a/harness/nextgen/model_appprojects_app_project_spec.go +++ b/harness/nextgen/model_appprojects_app_project_spec.go @@ -1,24 +1,28 @@ /* * Harness NextGen Software Delivery Platform API Reference * - * The Harness Software Delivery Platform uses OpenAPI Specification v3.0. Harness constantly improves these APIs. Please be aware that some improvements could cause breaking changes. # Introduction The Harness API allows you to integrate and use all the services and modules we provide on the Harness Platform. If you use client-side SDKs, Harness functionality can be integrated with your client-side automation, helping you reduce manual efforts and deploy code faster. For more information about how Harness works, read our [documentation](https://developer.harness.io/docs/getting-started) or visit the [Harness Developer Hub](https://developer.harness.io/). ## How it works The Harness API is a RESTful API that uses standard HTTP verbs. You can send requests in JSON, YAML, or form-data format. The format of the response matches the format of your request. You must send a single request at a time and ensure that you include your authentication key. For more information about this, go to [Authentication](#section/Introduction/Authentication). ## Get started Before you start integrating, get to know our API better by reading the following topics: * [Harness key concepts](https://developer.harness.io/docs/getting-started/learn-harness-key-concepts/) * [Authentication](#section/Introduction/Authentication) * [Requests and responses](#section/Introduction/Requests-and-Responses) * [Common Parameters](#section/Introduction/Common-Parameters-Beta) * [Status Codes](#section/Introduction/Status-Codes) * [Errors](#tag/Error-Response) * [Versioning](#section/Introduction/Versioning-Beta) * [Pagination](/#section/Introduction/Pagination-Beta) The methods you need to integrate with depend on the functionality you want to use. Work with your Harness Solutions Engineer to determine which methods you need. ## Authentication To authenticate with the Harness API, you need to: 1. Generate an API token on the Harness Platform. 2. Send the API token you generate in the `x-api-key` header in each request. ### Generate an API token To generate an API token, complete the following steps: 1. Go to the [Harness Platform](https://app.harness.io/). 2. On the left-hand navigation, click **My Profile**. 3. Click **+API Key**, enter a name for your key and then click **Save**. 4. Within the API Key tile, click **+Token**. 5. Enter a name for your token and click **Generate Token**. **Important**: Make sure to save your token securely. Harness does not store the API token for future reference, so make sure to save your token securely before you leave the page. ### Send the API token in your requests Send the token you created in the Harness Platform in the x-api-key header. For example: `x-api-key: YOUR_API_KEY_HERE` ## Requests and Responses The structure for each request and response is outlined in the API documentation. We have examples in JSON and YAML for every request and response. You can use our online editor to test the examples. ## Common Parameters [Beta] | Field Name | Type | Default | Description | |------------|---------|---------|----------------| | identifier | string | none | URL-friendly version of the name, used to identify a resource within it's scope and so needs to be unique within the scope. | | name | string | none | Human-friendly name for the resource. | | org | string | none | Limit to provided org identifiers. | | project | string | none | Limit to provided project identifiers. | | description| string | none | More information about the specific resource. | | tags | map[string]string | none | List of labels applied to the resource. | | order | string | desc | Order to use when sorting the specified fields. Type: enum(asc,desc). | | sort | string | none | Fields on which to sort. Note: Specify the fields that you want to use for sorting. When doing so, consider the operational overhead of sorting fields. | | limit | int | 30 | Pagination: Number of items to return. | | page | int | 1 | Pagination page number strategy: Specify the page number within the paginated collection related to the number of items in each page. | | created | int64 | none | Unix timestamp that shows when the resource was created (in milliseconds). | | updated | int64 | none | Unix timestamp that shows when the resource was last edited (in milliseconds). | ## Status Codes Harness uses conventional HTTP status codes to indicate the status of an API request. Generally, 2xx responses are reserved for success and 4xx status codes are reserved for failures. A 5xx response code indicates an error on the Harness server. | Error Code | Description | |-------------|-------------| | 200 | OK | | 201 | Created | | 202 | Accepted | | 204 | No Content | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 412 | Precondition Failed | | 415 | Unsupported Media Type | | 500 | Server Error | To view our error response structures, go [here](#tag/Error-Response). ## Versioning [Beta] ### Harness Version The current version of our Beta APIs is yet to be announced. The version number will use the date-header format and will be valid only for our Beta APIs. ### Generation All our beta APIs are versioned as a Generation, and this version is included in the path to every API resource. For example, v1 beta APIs begin with `app.harness.io/v1/`, where v1 is the API Generation. The version number represents the core API and does not change frequently. The version number changes only if there is a significant departure from the basic underpinnings of the existing API. For example, when Harness performs a system-wide refactoring of core concepts or resources. ## Pagination [Beta] We use pagination to place limits on the number of responses associated with list endpoints. Pagination is achieved by the use of limit query parameters. The limit defaults to 30. Its maximum value is 100. Following are the pagination headers supported in the response bodies of paginated APIs: 1. X-Total-Elements : Indicates the total number of entries in a paginated response. 2. X-Page-Number : Indicates the page number currently returned for a paginated response. 3. X-Page-Size : Indicates the number of entries per page for a paginated response. For example: ``` X-Total-Elements : 30 X-Page-Number : 0 X-Page-Size : 10 ``` + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub * - * API version: 1.0 + * API version: 3.0 * Contact: contact@harness.io * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package nextgen type AppprojectsAppProjectSpec struct { - SourceRepos []string `json:"sourceRepos,omitempty"` - Destinations []AppprojectsApplicationDestination `json:"destinations,omitempty"` - Description string `json:"description,omitempty"` - Roles []AppprojectsProjectRole `json:"roles,omitempty"` - ClusterResourceWhitelist []V1GroupKind `json:"clusterResourceWhitelist,omitempty"` - NamespaceResourceBlacklist []V1GroupKind `json:"namespaceResourceBlacklist,omitempty"` - OrphanedResources *AppprojectsOrphanedResourcesMonitorSettings `json:"orphanedResources,omitempty"` - SyncWindows []AppprojectsSyncWindow `json:"syncWindows,omitempty"` - NamespaceResourceWhitelist []V1GroupKind `json:"namespaceResourceWhitelist,omitempty"` - SignatureKeys []AppprojectsSignatureKey `json:"signatureKeys,omitempty"` - ClusterResourceBlacklist []V1GroupKind `json:"clusterResourceBlacklist,omitempty"` + SourceRepos []string `json:"sourceRepos,omitempty"` + Destinations []AppprojectsApplicationDestination `json:"destinations,omitempty"` + Description string `json:"description,omitempty"` + Roles []AppprojectsProjectRole `json:"roles,omitempty"` + ClusterResourceWhitelist []V1GroupKind `json:"clusterResourceWhitelist,omitempty"` + NamespaceResourceBlacklist []V1GroupKind `json:"namespaceResourceBlacklist,omitempty"` + OrphanedResources *AppprojectsOrphanedResourcesMonitorSettings `json:"orphanedResources,omitempty"` + SyncWindows []AppprojectsSyncWindow `json:"syncWindows,omitempty"` + NamespaceResourceWhitelist []V1GroupKind `json:"namespaceResourceWhitelist,omitempty"` + SignatureKeys []AppprojectsSignatureKey `json:"signatureKeys,omitempty"` + ClusterResourceBlacklist []V1GroupKind `json:"clusterResourceBlacklist,omitempty"` + SourceNamespaces []string `json:"sourceNamespaces,omitempty"` + PermitOnlyProjectScopedClusters bool `json:"permitOnlyProjectScopedClusters,omitempty"` + // DestinationServiceAccounts holds information about the service accounts to be impersonated for the application sync operation for each destination. + DestinationServiceAccounts []AppprojectsApplicationDestinationServiceAccount `json:"destinationServiceAccounts,omitempty"` } diff --git a/harness/nextgen/model_appprojects_application_destination_service_account.go b/harness/nextgen/model_appprojects_application_destination_service_account.go new file mode 100644 index 00000000..7852e0d6 --- /dev/null +++ b/harness/nextgen/model_appprojects_application_destination_service_account.go @@ -0,0 +1,19 @@ +/* + * Harness NextGen Software Delivery Platform API Reference + * + * This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub + * + * API version: 3.0 + * Contact: contact@harness.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package nextgen + +// ApplicationDestinationServiceAccount holds information about the service account to be impersonated for the application sync operation. +type AppprojectsApplicationDestinationServiceAccount struct { + // Server specifies the URL of the target cluster's Kubernetes control plane API. + Server string `json:"server,omitempty"` + // Namespace specifies the target namespace for the application's resources. + Namespace string `json:"namespace,omitempty"` + DefaultServiceAccount string `json:"defaultServiceAccount,omitempty"` +} diff --git a/harness/nextgen/model_clusters_cluster_config.go b/harness/nextgen/model_clusters_cluster_config.go index a83b62f2..7f243e08 100644 --- a/harness/nextgen/model_clusters_cluster_config.go +++ b/harness/nextgen/model_clusters_cluster_config.go @@ -21,4 +21,6 @@ type ClustersClusterConfig struct { RoleARN string `json:"roleARN,omitempty"` ExecProviderConfig *ClustersExecProviderConfig `json:"execProviderConfig,omitempty"` ClusterConnectionType string `json:"clusterConnectionType,omitempty"` + DisableCompression bool `json:"disableCompression,omitempty"` + ProxyUrl string `json:"proxyUrl,omitempty"` }