Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [CODE-2634]: add support for harness code #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions nextgen/api_pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ type PipelinesApiListPipelinesOpts struct {
EnvNames optional.Interface
DeploymentType optional.String
Repository optional.String
IsHarnessCodeRepo optional.Bool
}

func (a *PipelinesApiService) ListPipelines(ctx context.Context, org string, project string, localVarOptionals *PipelinesApiListPipelinesOpts) ([]PipelineListResponseBody, *http.Response, error) {
Expand Down Expand Up @@ -749,6 +750,9 @@ func (a *PipelinesApiService) ListPipelines(ctx context.Context, org string, pro
if localVarOptionals != nil && localVarOptionals.Repository.IsSet() {
localVarQueryParams.Add("repository", parameterToString(localVarOptionals.Repository.Value(), ""))
}
if localVarOptionals != nil && localVarOptionals.IsHarnessCodeRepo.IsSet() {
localVarQueryParams.Add("isHarnessCodeRepo", parameterToString(localVarOptionals.IsHarnessCodeRepo.Value(), ""))
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{}

Expand Down Expand Up @@ -962,6 +966,7 @@ Starts a Pipeline Validation Event and returns the UUID of the Event created
* @param "RepoName" (optional.String) - Name of the repository (for Git Experience).
* @param "LoadFromCache" (optional.Bool) - Flag to enable loading the remote pipeline from git or git cache
* @param "LoadFromFallbackBranch" (optional.Bool) - Flag to load the pipeline from the created non default branch
* @param "IsHarnessCodeRepo" (optional.Bool) - Is Harness code repo enabled
@return PipelineValidationUuidResponseBody
*/

Expand All @@ -972,6 +977,7 @@ type PipelinesApiStartPipelineValidationEventOpts struct {
RepoName optional.String
LoadFromCache optional.Bool
LoadFromFallbackBranch optional.Bool
IsHarnessCodeRepo optional.Bool
}

func (a *PipelinesApiService) StartPipelineValidationEvent(ctx context.Context, org string, project string, pipeline string, localVarOptionals *PipelinesApiStartPipelineValidationEventOpts) (PipelineValidationUuidResponseBody, *http.Response, error) {
Expand Down Expand Up @@ -1005,6 +1011,9 @@ func (a *PipelinesApiService) StartPipelineValidationEvent(ctx context.Context,
if localVarOptionals != nil && localVarOptionals.LoadFromFallbackBranch.IsSet() {
localVarQueryParams.Add("load_from_fallback_branch", parameterToString(localVarOptionals.LoadFromFallbackBranch.Value(), ""))
}
if localVarOptionals != nil && localVarOptionals.IsHarnessCodeRepo.IsSet() {
localVarQueryParams.Add("isHarnessCodeRepo", parameterToString(localVarOptionals.IsHarnessCodeRepo.Value(), ""))
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{}

Expand Down
2 changes: 2 additions & 0 deletions nextgen/model_git_create_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ type GitCreateDetails struct {
StoreType string `json:"store_type,omitempty"`
// Name of the repository.
RepoName string `json:"repo_name,omitempty"`
// Is harness code repo enabled
IsHarnessCodeRepo bool `json:"is_harness_code_repo,omitempty"`
}
2 changes: 2 additions & 0 deletions nextgen/model_git_create_details1.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ type GitCreateDetails1 struct {
StoreType string `json:"store_type,omitempty"`
// Name of the repository.
RepoName string `json:"repo_name,omitempty"`
// Is harness code repo enabled
IsHarnessCodeRepo bool `json:"is_harness_code_repo,omitempty"`
}
52 changes: 26 additions & 26 deletions nextgen/model_git_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@
* Contact: [email protected]
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package nextgen
package nextgen

// Git Experience related details of the Entity.
type GitDetails struct {
// Object identifier / blob id
ObjectId string `json:"object_id,omitempty"`
// Name of the branch.
BranchName string `json:"branch_name,omitempty"`
// File path of the Entity in the repository.
FilePath string `json:"file_path,omitempty"`
// Name of the repository.
RepoName string `json:"repo_name,omitempty"`
// Latest commit identifier.
CommitId string `json:"commit_id,omitempty"`
// File URL of the Entity.
FileUrl string `json:"file_url,omitempty"`
// Repository URL of the Entity.
RepoUrl string `json:"repo_url,omitempty"`
// Base branch name.
BaseBranch string `json:"base_branch,omitempty"`
// Connector reference.
ConnectorRef string `json:"connector_ref,omitempty"`
// Commit message
CommitMessage string `json:"commit_message"`
// Repository name of the Entity.
RepoName string `json:"repo_name"`
}
// Git Experience related details of the Entity.
type GitDetails struct {
// Object identifier / blob id
ObjectId string `json:"object_id,omitempty"`
// Name of the branch.
BranchName string `json:"branch_name,omitempty"`
// File path of the Entity in the repository.
FilePath string `json:"file_path,omitempty"`
// Name of the repository.
RepoName string `json:"repo_name,omitempty"`
// Latest commit identifier.
CommitId string `json:"commit_id,omitempty"`
// File URL of the Entity.
FileUrl string `json:"file_url,omitempty"`
// Repository URL of the Entity.
RepoUrl string `json:"repo_url,omitempty"`
// Base branch name.
BaseBranch string `json:"base_branch,omitempty"`
// Connector reference.
ConnectorRef string `json:"connector_ref,omitempty"`
// Commit message
CommitMessage string `json:"commit_message"`
// Is harness code repo enabled
IsHarnessCodeRepo bool `json:"is_harness_code_repo,omitempty"`
}
4 changes: 3 additions & 1 deletion nextgen/model_git_find_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type GitFindDetails struct {
ParentEntityOrgId string `json:"parent_entity_org_id,omitempty"`
// Project name of parent entity if its remote
ParentEntityProjectId string `json:"parent_entity_project_id,omitempty"`
// Specify comment with respect to changes
// Specify comment with respect to changes
Comments string `json:"comments,omitempty"`
// Is harness code repo enabled
IsHarnessCodeRepo bool `json:"is_harness_code_repo,omitempty"`
}
2 changes: 2 additions & 0 deletions nextgen/model_git_update_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ type GitUpdateDetails struct {
StoreType string `json:"store_type,omitempty"`
// Name of the repository.
RepoName string `json:"repo_name,omitempty"`
// Is harness code repo enabled
IsHarnessCodeRepo bool `json:"is_harness_code_repo,omitempty"`
}
2 changes: 2 additions & 0 deletions nextgen/model_git_update_details1.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ type GitUpdateDetails1 struct {
RepoName string `json:"repo_name,omitempty"`
// Specifies whether the Entity is to be stored in Git or not.
StoreType string `json:"store_type,omitempty"`
// Is harness code repo enabled
IsHarnessCodeRepo bool `json:"is_harness_code_repo,omitempty"`
}
2 changes: 2 additions & 0 deletions nextgen/model_input_set_git_update_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ type InputSetGitUpdateDetails struct {
ParentEntityConnectorRef string `json:"parent_entity_connector_ref,omitempty"`
// Repository name for Parent Entity (Pipeline).
ParentEntityRepoName string `json:"parent_entity_repo_name,omitempty"`
// Is harness code repo enabled.
IsHarnessCodeRepo bool `json:"isHarnessCodeRepo,omitempty"`
}
Loading