Skip to content

Commit 8b28e06

Browse files
authored
feat: [CDS-107148]: Add entity git details in api response (#650)
1 parent 104a0a7 commit 8b28e06

6 files changed

+63
-12
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Harness NextGen Software Delivery Platform API Reference
3+
*
4+
* 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 # Authentication <!-- ReDoc-Inject: <security-definitions> -->
5+
*
6+
* API version: 3.0
7+
* Contact: [email protected]
8+
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
9+
*/
10+
package nextgen
11+
12+
// EntityGitInfo contains git info of the entity
13+
type EntityGitInfo struct {
14+
ObjectId string `json:"objectId,omitempty"` // Object Id of the Entity
15+
Branch string `json:"branch,omitempty"` // Branch Name
16+
FilePath string `json:"filePath,omitempty"` // File Path of the Entity
17+
RepoName string `json:"repoName,omitempty"` // Name of the repo
18+
CommitId string `json:"commitId,omitempty"` // Commit Id of the Entity
19+
FileUrl string `json:"fileUrl,omitempty"` // File Url of the entity
20+
RepoUrl string `json:"repoUrl,omitempty"` // Repo url of the entity
21+
}

harness/nextgen/model_environment_response_details.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ type EnvironmentResponseDetails struct {
2323
Tags map[string]string `json:"tags,omitempty"`
2424
Version int64 `json:"version,omitempty"`
2525
Yaml string `json:"yaml,omitempty"`
26+
EntityGitDetails *GitEntityDetails `json:"entityGitDetails,omitempty"`
2627
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Harness NextGen Software Delivery Platform API Reference
3+
*
4+
* 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 # Authentication <!-- ReDoc-Inject: <security-definitions> -->
5+
*
6+
* API version: 3.0
7+
* Contact: [email protected]
8+
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
9+
*/
10+
package nextgen
11+
12+
// GitEntityDetails contains Git Details of the Entity
13+
type GitEntityDetails struct {
14+
ObjectId string `json:"objectId,omitempty"` // Object Id of the Entity
15+
Branch string `json:"branch,omitempty"` // Branch Name
16+
RepoIdentifier string `json:"repoIdentifier,omitempty"` // Git Sync Config Id
17+
RootFolder string `json:"rootFolder,omitempty"` // Root Folder Path of the Entity
18+
FilePath string `json:"filePath,omitempty"` // File Path of the Entity
19+
RepoName string `json:"repoName,omitempty"` // Name of the repo
20+
CommitId string `json:"commitId,omitempty"` // Latest Commit ID
21+
FileUrl string `json:"fileUrl,omitempty"` // File Url of the entity
22+
RepoUrl string `json:"repoUrl,omitempty"` // Repo url of the entity
23+
ParentEntityConnectorRef string `json:"parentEntityConnectorRef,omitempty"` // Connector Reference of parent entity
24+
ParentEntityRepoName string `json:"parentEntityRepoName,omitempty"` // Repo name of parent entity
25+
IsHarnessCodeRepo bool `json:"isHarnessCodeRepo,omitempty"` // Is harness code repo entity
26+
}

harness/nextgen/model_infrastructure_response_dto.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ type InfrastructureResponseDto struct {
2222
Type_ string `json:"type,omitempty"`
2323
DeploymentType string `json:"deploymentType,omitempty"`
2424
Yaml string `json:"yaml,omitempty"`
25+
EntityGitDetails *GitEntityDetails `json:"entityGitDetails,omitempty"`
2526
}

harness/nextgen/model_service_overrides_response_dtov2.go

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ the breaking change with respect to the generated code stub # Authentication <
1414
package nextgen
1515

1616
type ServiceOverridesResponseDtov2 struct {
17-
Identifier string `json:"identifier,omitempty"`
18-
AccountId string `json:"accountId,omitempty"`
19-
OrgIdentifier string `json:"orgIdentifier,omitempty"`
20-
ProjectIdentifier string `json:"projectIdentifier,omitempty"`
21-
EnvironmentRef string `json:"environmentRef,omitempty"`
22-
ServiceRef string `json:"serviceRef,omitempty"`
23-
InfraIdentifier string `json:"infraIdentifier,omitempty"`
24-
ClusterIdentifier string `json:"clusterIdentifier,omitempty"`
25-
Type_ string `json:"type,omitempty"`
26-
YamlInternal string `json:"yamlInternal,omitempty"`
27-
NewlyCreated bool `json:"newlyCreated,omitempty"`
28-
Yaml string `json:"yaml,omitempty"`
17+
Identifier string `json:"identifier,omitempty"`
18+
AccountId string `json:"accountId,omitempty"`
19+
OrgIdentifier string `json:"orgIdentifier,omitempty"`
20+
ProjectIdentifier string `json:"projectIdentifier,omitempty"`
21+
EnvironmentRef string `json:"environmentRef,omitempty"`
22+
ServiceRef string `json:"serviceRef,omitempty"`
23+
InfraIdentifier string `json:"infraIdentifier,omitempty"`
24+
ClusterIdentifier string `json:"clusterIdentifier,omitempty"`
25+
Type_ string `json:"type,omitempty"`
26+
YamlInternal string `json:"yamlInternal,omitempty"`
27+
NewlyCreated bool `json:"newlyCreated,omitempty"`
28+
Yaml string `json:"yaml,omitempty"`
29+
EntityGitInfo *EntityGitInfo `json:"entityGitInfo,omitempty"`
2930
}

harness/nextgen/model_service_response_details.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ type ServiceResponseDetails struct {
2020
Deleted bool `json:"deleted,omitempty"`
2121
Tags map[string]string `json:"tags,omitempty"`
2222
Yaml string `json:"yaml,omitempty"`
23+
EntityGitDetails *GitEntityDetails `json:"entityGitDetails,omitempty"`
2324
}

0 commit comments

Comments
 (0)