Skip to content

Commit

Permalink
Merge pull request #196 from harness/CDS-44308-gitops-applications-api
Browse files Browse the repository at this point in the history
CDS-44308 GitOps Applications api
  • Loading branch information
manavjot-harness authored Oct 25, 2022
2 parents bb4173a + dcb615f commit d41c788
Show file tree
Hide file tree
Showing 185 changed files with 7,804 additions and 0 deletions.
3,812 changes: 3,812 additions & 0 deletions harness/nextgen/api_applications.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions harness/nextgen/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ type APIClient struct {

ApiKeyApi *ApiKeyApiService

ApplicationsApiService *ApplicationsApiService

AuditApi *AuditApiService

AuditFiltersApi *AuditFiltersApiService
Expand Down Expand Up @@ -212,6 +214,7 @@ func NewAPIClient(cfg *Configuration) *APIClient {
c.AccountsApi = (*AccountsApiService)(&c.common)
c.AgentApi = (*AgentsApiService)(&c.common)
c.ApiKeyApi = (*ApiKeyApiService)(&c.common)
c.ApplicationsApiService = (*ApplicationsApiService)(&c.common)
c.AuditApi = (*AuditApiService)(&c.common)
c.AuditFiltersApi = (*AuditFiltersApiService)(&c.common)
c.AuthenticationSettingsApi = (*AuthenticationSettingsApiService)(&c.common)
Expand Down
23 changes: 23 additions & 0 deletions harness/nextgen/docs/Apicorev1Event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Apicorev1Event

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Metadata** | [***V1ObjectMeta**](v1ObjectMeta.md) | | [optional] [default to null]
**InvolvedObject** | [***V1ObjectReference**](v1ObjectReference.md) | | [optional] [default to null]
**Reason** | **string** | | [optional] [default to null]
**Message** | **string** | | [optional] [default to null]
**Source** | [***V1EventSource**](v1EventSource.md) | | [optional] [default to null]
**FirstTimestamp** | [***V1Time**](v1Time.md) | | [optional] [default to null]
**LastTimestamp** | [***V1Time**](v1Time.md) | | [optional] [default to null]
**Count** | **int32** | | [optional] [default to null]
**Type_** | **string** | | [optional] [default to null]
**EventTime** | [***V1MicroTime**](v1MicroTime.md) | | [optional] [default to null]
**Series** | [***V1EventSeries**](v1EventSeries.md) | | [optional] [default to null]
**Action** | **string** | | [optional] [default to null]
**Related** | [***V1ObjectReference**](v1ObjectReference.md) | | [optional] [default to null]
**ReportingComponent** | **string** | | [optional] [default to null]
**ReportingInstance** | **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)

1,178 changes: 1,178 additions & 0 deletions harness/nextgen/docs/ApplicationsApi.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions harness/nextgen/docs/ApplicationsApplication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ApplicationsApplication

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Metadata** | [***V1ObjectMeta**](v1ObjectMeta.md) | | [optional] [default to null]
**Spec** | [***ApplicationsApplicationSpec**](applicationsApplicationSpec.md) | | [optional] [default to null]
**Status** | [***ApplicationsApplicationStatus**](applicationsApplicationStatus.md) | | [optional] [default to null]
**Operation** | [***ApplicationsOperation**](applicationsOperation.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)

11 changes: 11 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationCondition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApplicationsApplicationCondition

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type_** | **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)

12 changes: 12 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationCreateRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ApplicationsApplicationCreateRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Application** | [***ApplicationsApplication**](applicationsApplication.md) | | [optional] [default to null]
**Upsert** | **bool** | | [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)

11 changes: 11 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationDestination.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApplicationsApplicationDestination

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Server** | **string** | | [optional] [default to null]
**Namespace** | **string** | | [optional] [default to null]
**Name** | **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)

10 changes: 10 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationList.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ApplicationsApplicationList

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Metadata** | [***V1ListMeta**](v1ListMeta.md) | | [optional] [default to null]
**Items** | [**[]ApplicationsApplication**](applicationsApplication.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)

11 changes: 11 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationPatchRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApplicationsApplicationPatchRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional] [default to null]
**Patch** | **string** | | [optional] [default to null]
**PatchType** | **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)

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ApplicationsApplicationResourcePatchRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional] [default to null]
**Namespace** | **string** | | [optional] [default to null]
**ResourceName** | **string** | | [optional] [default to null]
**Version** | **string** | | [optional] [default to null]
**Group** | **string** | | [optional] [default to null]
**Kind** | **string** | | [optional] [default to null]
**Patch** | **string** | | [optional] [default to null]
**PatchType** | **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)

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ApplicationsApplicationResourceResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Manifest** | **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)

8 changes: 8 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ApplicationsApplicationResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 12 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationRollbackRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ApplicationsApplicationRollbackRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional] [default to null]
**Id** | **string** | | [optional] [default to null]
**DryRun** | **bool** | | [optional] [default to null]
**Prune** | **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)

17 changes: 17 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ApplicationsApplicationSource

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RepoURL** | **string** | | [optional] [default to null]
**Path** | **string** | Path is a directory path within the Git repository, and is only valid for applications sourced from Git. | [optional] [default to null]
**TargetRevision** | **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. | [optional] [default to null]
**Helm** | [***ApplicationsApplicationSourceHelm**](applicationsApplicationSourceHelm.md) | | [optional] [default to null]
**Kustomize** | [***ApplicationsApplicationSourceKustomize**](applicationsApplicationSourceKustomize.md) | | [optional] [default to null]
**Ksonnet** | [***ApplicationsApplicationSourceKsonnet**](applicationsApplicationSourceKsonnet.md) | | [optional] [default to null]
**Directory** | [***ApplicationsApplicationSourceDirectory**](applicationsApplicationSourceDirectory.md) | | [optional] [default to null]
**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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 12 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSourceDirectory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ApplicationsApplicationSourceDirectory

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Recurse** | **bool** | | [optional] [default to null]
**Jsonnet** | [***ApplicationsApplicationSourceJsonnet**](applicationsApplicationSourceJsonnet.md) | | [optional] [default to null]
**Exclude** | **string** | | [optional] [default to null]
**Include** | **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)

15 changes: 15 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSourceHelm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ApplicationsApplicationSourceHelm

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ValueFiles** | **[]string** | | [optional] [default to null]
**Parameters** | [**[]ApplicationsHelmParameter**](applicationsHelmParameter.md) | | [optional] [default to null]
**ReleaseName** | **string** | | [optional] [default to null]
**Values** | **string** | | [optional] [default to null]
**FileParameters** | [**[]ApplicationsHelmFileParameter**](applicationsHelmFileParameter.md) | | [optional] [default to null]
**Version** | **string** | | [optional] [default to null]
**PassCredentials** | **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)

11 changes: 11 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSourceJsonnet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApplicationsApplicationSourceJsonnet

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ExtVars** | [**[]ApplicationsJsonnetVar**](applicationsJsonnetVar.md) | | [optional] [default to null]
**Tlas** | [**[]ApplicationsJsonnetVar**](applicationsJsonnetVar.md) | | [optional] [default to null]
**Libs** | **[]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)

10 changes: 10 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSourceKsonnet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ApplicationsApplicationSourceKsonnet

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Environment** | **string** | | [optional] [default to null]
**Parameters** | [**[]ApplicationsKsonnetParameter**](applicationsKsonnetParameter.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)

16 changes: 16 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSourceKustomize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ApplicationsApplicationSourceKustomize

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**NamePrefix** | **string** | | [optional] [default to null]
**NameSuffix** | **string** | | [optional] [default to null]
**Images** | **[]string** | | [optional] [default to null]
**CommonLabels** | **map[string]string** | | [optional] [default to null]
**Version** | **string** | | [optional] [default to null]
**CommonAnnotations** | **map[string]string** | | [optional] [default to null]
**ForceCommonLabels** | **bool** | | [optional] [default to null]
**ForceCommonAnnotations** | **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)

10 changes: 10 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSourcePlugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ApplicationsApplicationSourcePlugin

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional] [default to null]
**Env** | [**[]ApplicationsEnvEntry**](applicationsEnvEntry.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)

15 changes: 15 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSpec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ApplicationsApplicationSpec

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Source** | [***ApplicationsApplicationSource**](applicationsApplicationSource.md) | | [optional] [default to null]
**Destination** | [***ApplicationsApplicationDestination**](applicationsApplicationDestination.md) | | [optional] [default to null]
**Project** | **string** | Project is a reference to the project this application belongs to. The empty string means that application belongs to the 'default' project. | [optional] [default to null]
**SyncPolicy** | [***ApplicationsSyncPolicy**](applicationsSyncPolicy.md) | | [optional] [default to null]
**IgnoreDifferences** | [**[]ApplicationsResourceIgnoreDifferences**](applicationsResourceIgnoreDifferences.md) | | [optional] [default to null]
**Info** | [**[]ApplicationsInfo**](applicationsInfo.md) | | [optional] [default to null]
**RevisionHistoryLimit** | **string** | RevisionHistoryLimit limits the number of items kept in the application's revision history, which is used for informational purposes as well as for rollbacks to previous versions. This should only be changed in exceptional circumstances. Setting to zero will store no history. This will reduce storage used. Increasing will increase the space used to store the history, so we do not recommend increasing it. Default is 10. | [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)

18 changes: 18 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ApplicationsApplicationStatus

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Resources** | [**[]ApplicationsResourceStatus**](applicationsResourceStatus.md) | | [optional] [default to null]
**Sync** | [***ApplicationsSyncStatus**](applicationsSyncStatus.md) | | [optional] [default to null]
**Health** | [***ApplicationsHealthStatus**](applicationsHealthStatus.md) | | [optional] [default to null]
**History** | [**[]ApplicationsRevisionHistory**](applicationsRevisionHistory.md) | | [optional] [default to null]
**Conditions** | [**[]ApplicationsApplicationCondition**](applicationsApplicationCondition.md) | | [optional] [default to null]
**ReconciledAt** | [***V1Time**](v1Time.md) | | [optional] [default to null]
**OperationState** | [***ApplicationsOperationState**](applicationsOperationState.md) | | [optional] [default to null]
**ObservedAt** | [***V1Time**](v1Time.md) | | [optional] [default to null]
**SourceType** | **string** | | [optional] [default to null]
**Summary** | [***ApplicationsApplicationSummary**](applicationsApplicationSummary.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)

10 changes: 10 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSummary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ApplicationsApplicationSummary

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ExternalURLs** | **[]string** | ExternalURLs holds all external URLs of application child resources. | [optional] [default to null]
**Images** | **[]string** | Images holds all images of application child resources. | [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)

18 changes: 18 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSyncRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ApplicationsApplicationSyncRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional] [default to null]
**Revision** | **string** | | [optional] [default to null]
**DryRun** | **bool** | | [optional] [default to null]
**Prune** | **bool** | | [optional] [default to null]
**Strategy** | [***ApplicationsSyncStrategy**](applicationsSyncStrategy.md) | | [optional] [default to null]
**Resources** | [**[]ApplicationsSyncOperationResource**](applicationsSyncOperationResource.md) | | [optional] [default to null]
**Manifests** | **[]string** | | [optional] [default to null]
**Infos** | [**[]ApplicationsInfo**](applicationsInfo.md) | | [optional] [default to null]
**RetryStrategy** | [***ApplicationsRetryStrategy**](applicationsRetryStrategy.md) | | [optional] [default to null]
**SyncOptions** | [***ApplicationsSyncOptions**](applicationsSyncOptions.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)

12 changes: 12 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSyncWindow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ApplicationsApplicationSyncWindow

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Kind** | **string** | | [optional] [default to null]
**Schedule** | **string** | | [optional] [default to null]
**Duration** | **string** | | [optional] [default to null]
**ManualSync** | **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)

11 changes: 11 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationSyncWindowsResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApplicationsApplicationSyncWindowsResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ActiveWindows** | [**[]ApplicationsApplicationSyncWindow**](applicationsApplicationSyncWindow.md) | | [optional] [default to null]
**AssignedWindows** | [**[]ApplicationsApplicationSyncWindow**](applicationsApplicationSyncWindow.md) | | [optional] [default to null]
**CanSync** | **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)

11 changes: 11 additions & 0 deletions harness/nextgen/docs/ApplicationsApplicationTree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApplicationsApplicationTree

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Nodes** | [**[]ApplicationsResourceNode**](applicationsResourceNode.md) | Nodes contains list of nodes which either directly managed by the application and children of directly managed nodes. | [optional] [default to null]
**OrphanedNodes** | [**[]ApplicationsResourceNode**](applicationsResourceNode.md) | OrphanedNodes contains if or orphaned nodes: nodes which are not managed by the app but in the same namespace. List is populated only if orphaned resources enabled in app project. | [optional] [default to null]
**Hosts** | [**[]ApplicationsHostInfo**](applicationsHostInfo.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)

Loading

0 comments on commit d41c788

Please sign in to comment.