All URIs are relative to /gateway/code/api/v1
Method | HTTP request | Description |
---|---|---|
CalculateCommitDivergence | Post /repos/{repo_identifier}/commits/calculate-divergence | Get commit divergence |
CodeOwnersValidate | Get /repos/{repo_identifier}/codeowners/validate | Validate code owners file |
CommitFiles | Post /repos/{repo_identifier}/commits | Commit files |
CreateBranch | Post /repos/{repo_identifier}/branches | Create branch |
CreateRepository | Post /repos | Create repository |
CreateTag | Post /repos/{repo_identifier}/tags | Create tag |
DeleteBranch | Delete /repos/{repo_identifier}/branches/{branch_name} | Delete branch |
DeleteRepository | Delete /repos/{repo_identifier} | Soft delete repository |
DeleteTag | Delete /repos/{repo_identifier}/tags/{tag_name} | Delete tag |
DiffStats | Get /repos/{repo_identifier}/diff-stats/{range} | Get diff stats |
GetBlame | Get /repos/{repo_identifier}/blame/{path} | Get git blame |
GetBranch | Get /repos/{repo_identifier}/branches/{branch_name} | Get branch |
GetCommit | Get /repos/{repo_identifier}/commits/{commit_sha} | Get commit |
GetCommitDiff | Get /repos/{repo_identifier}/commits/{commit_sha}/diff | Get raw git diff of a commit |
GetContent | Get /repos/{repo_identifier}/content/{path} | Get content of a file |
GetRaw | Get /repos/{repo_identifier}/raw/{path} | Get raw file content |
GetRepository | Get /repos/{repo_identifier} | Get repository |
ImportRepository | Post /repos/import | Import repository |
ListBranches | Get /repos/{repo_identifier}/branches | List branches |
ListCommits | Get /repos/{repo_identifier}/commits | List commits |
ListRepos | Get /repos | List repositories |
ListTags | Get /repos/{repo_identifier}/tags | List tags |
MergeCheck | Post /repos/{repo_identifier}/merge-check/{range} | Check mergeability |
MoveRepository | Post /repos/{repo_identifier}/move | Move repository |
PathDetails | Post /repos/{repo_identifier}/path-details | Get commit details |
PurgeRepository | Post /repos/{repo_identifier}/purge | Purge repository |
RawDiff | Get /repos/{repo_identifier}/diff/{range} | Get raw diff |
RawDiffPost | Post /repos/{repo_identifier}/diff/{range} | Get raw diff |
RestoreRepository | Post /repos/{repo_identifier}/restore | Restore repository |
RuleAdd | Post /repos/{repo_identifier}/rules | Add protection rule |
RuleDelete | Delete /repos/{repo_identifier}/rules/{rule_uid} | Delete protection rule |
RuleGet | Get /repos/{repo_identifier}/rules/{rule_uid} | Get protection rule |
RuleList | Get /repos/{repo_identifier}/rules | List protection rules |
RuleUpdate | Patch /repos/{repo_identifier}/rules/{rule_uid} | Update protection rule |
UpdateRepository | Patch /repos/{repo_identifier} | Update repository |
[]RepoCommitDivergence CalculateCommitDivergence(ctx, accountIdentifier, repoIdentifier, optional) Get commit divergence
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiCalculateCommitDivergenceOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiCalculateCommitDivergenceOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiCalculateCommitDivergenceRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CodeOwnersValidate(ctx, accountIdentifier, repoIdentifier, optional) Validate code owners file
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiCodeOwnersValidateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiCodeOwnersValidateOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | gitRef | optional.String| The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used. | [default to {Repository Default Branch}]
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesCommitFilesResponse CommitFiles(ctx, accountIdentifier, repoIdentifier, optional) Commit files
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiCommitFilesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiCommitFilesOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiCommitFilesRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RepoBranch CreateBranch(ctx, accountIdentifier, repoIdentifier, optional) Create branch
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiCreateBranchOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiCreateBranchOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiCreateBranchRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesRepository CreateRepository(ctx, accountIdentifier, optional) Create repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
optional | *RepositoryApiCreateRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiCreateRepositoryOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiCreateRepositoryRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RepoCommitTag CreateTag(ctx, accountIdentifier, repoIdentifier, optional) Create tag
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiCreateTagOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiCreateTagOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiCreateTagRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteBranch(ctx, accountIdentifier, repoIdentifier, branchName, optional) Delete branch
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
branchName | string | ||
optional | *RepositoryApiDeleteBranchOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiDeleteBranchOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | bypassRules | optional.Bool| Bypass rule violations if possible. | [default to false]
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RepoSoftDeleteResponse DeleteRepository(ctx, accountIdentifier, repoIdentifier, optional) Soft delete repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiDeleteRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiDeleteRepositoryOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteTag(ctx, accountIdentifier, repoIdentifier, tagName, optional) Delete tag
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
tagName | string | ||
optional | *RepositoryApiDeleteTagOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiDeleteTagOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | bypassRules | optional.Bool| Bypass rule violations if possible. | [default to false]
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesDiffStats DiffStats(ctx, accountIdentifier, repoIdentifier, range_, optional) Get diff stats
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
range_ | string | ||
optional | *RepositoryApiDiffStatsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiDiffStatsOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | path | optional.Interface of []string| provide path for diff operation |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GitBlamePart GetBlame(ctx, accountIdentifier, repoIdentifier, path, optional) Get git blame
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
path | string | ||
optional | *RepositoryApiGetBlameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiGetBlameOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | gitRef | optional.String| The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used. | [default to {Repository Default Branch}] lineFrom | optional.Int32| Line number from which the file data is considered | [default to 0] lineTo | optional.Int32| Line number to which the file data is considered | [default to 0]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RepoBranch GetBranch(ctx, accountIdentifier, repoIdentifier, branchName, optional) Get branch
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
branchName | string | ||
optional | *RepositoryApiGetBranchOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiGetBranchOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesCommit GetCommit(ctx, accountIdentifier, repoIdentifier, commitSha, optional) Get commit
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
commitSha | string | ||
optional | *RepositoryApiGetCommitOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiGetCommitOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string GetCommitDiff(ctx, accountIdentifier, repoIdentifier, commitSha, optional) Get raw git diff of a commit
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
commitSha | string | ||
optional | *RepositoryApiGetCommitDiffOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiGetCommitDiffOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
string
- Content-Type: Not defined
- Accept: text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenapiGetContentOutput GetContent(ctx, accountIdentifier, repoIdentifier, path, optional) Get content of a file
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
path | string | ||
optional | *RepositoryApiGetContentOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiGetContentOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetRaw(ctx, accountIdentifier, repoIdentifier, path, optional) Get raw file content
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
path | string | ||
optional | *RepositoryApiGetRawOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiGetRawOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | gitRef | optional.String| The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used. | [default to {Repository Default Branch}]
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesRepository GetRepository(ctx, accountIdentifier, repoIdentifier, optional) Get repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiGetRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiGetRepositoryOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesRepository ImportRepository(ctx, accountIdentifier, optional) Import repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
optional | *RepositoryApiImportRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiImportRepositoryOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of ReposImportBody| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]RepoBranch ListBranches(ctx, accountIdentifier, repoIdentifier, optional) List branches
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiListBranchesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiListBranchesOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | includeCommit | optional.Bool| Indicates whether optional commit information should be included in the response. | [default to false] query | optional.String| The substring by which the branches are filtered. | order | optional.String| The order of the output. | [default to asc] sort | optional.String| The data by which the branches are sorted. | [default to name] page | optional.Int32| The page to return. | [default to 1] limit | optional.Int32| The maximum number of results to return. | [default to 30]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]TypesListCommitResponse ListCommits(ctx, accountIdentifier, repoIdentifier, optional) List commits
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiListCommitsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiListCommitsOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | gitRef | optional.String| The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used. | [default to {Repository Default Branch}] after | optional.String| The result should only contain commits that occurred after the provided reference. | path | optional.String| Path for which commit information should be retrieved | since | optional.Int32| Epoch since when commit information should be retrieved. | until | optional.Int32| Epoch until when commit information should be retrieved. | committer | optional.String| Committer pattern for which commit information should be retrieved. | page | optional.Int32| The page to return. | [default to 1] limit | optional.Int32| The maximum number of results to return. | [default to 30]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]TypesRepository ListRepos(ctx, accountIdentifier, optional) List repositories
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
optional | *RepositoryApiListReposOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiListReposOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | query | optional.String| The substring which is used to filter the repositories by their path name. | sort | optional.String| The data by which the repositories are sorted. | [default to identifier] order | optional.String| The order of the output. | [default to asc] page | optional.Int32| The page to return. | [default to 1] limit | optional.Int32| The maximum number of results to return. | [default to 30]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]RepoCommitTag ListTags(ctx, accountIdentifier, repoIdentifier, optional) List tags
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiListTagsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiListTagsOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | includeCommit | optional.Bool| Indicates whether optional commit information should be included in the response. | [default to false] query | optional.String| The substring by which the tags are filtered. | order | optional.String| The order of the output. | [default to asc] sort | optional.String| The data by which the tags are sorted. | [default to name] page | optional.Int32| The page to return. | [default to 1] limit | optional.Int32| The maximum number of results to return. | [default to 30]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RepoMergeCheck MergeCheck(ctx, accountIdentifier, repoIdentifier, range_, optional) Check mergeability
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
range_ | string | ||
optional | *RepositoryApiMergeCheckOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiMergeCheckOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | path | optional.Interface of []string| provide path for diff operation |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesRepository MoveRepository(ctx, accountIdentifier, repoIdentifier, optional) Move repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiMoveRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiMoveRepositoryOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiMoveRepoRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RepoPathsDetailsOutput PathDetails(ctx, accountIdentifier, repoIdentifier, optional) Get commit details
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiPathDetailsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiPathDetailsOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiPathsDetailsRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. | gitRef | optional.| The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used. | [default to {Repository Default Branch}]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PurgeRepository(ctx, accountIdentifier, deletedAt, repoIdentifier, optional) Purge repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
deletedAt | int32 | The exact time the resource was delete at in epoch format. | |
repoIdentifier | string | ||
optional | *RepositoryApiPurgeRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiPurgeRepositoryOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GitFileDiff RawDiff(ctx, accountIdentifier, repoIdentifier, range_, optional) Get raw diff
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
range_ | string | ||
optional | *RepositoryApiRawDiffOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRawDiffOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | path | optional.Interface of []string| provide path for diff operation |
- Content-Type: Not defined
- Accept: application/json, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GitFileDiff RawDiffPost(ctx, accountIdentifier, repoIdentifier, range_, optional) Get raw diff
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
range_ | string | ||
optional | *RepositoryApiRawDiffPostOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRawDiffPostOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of []TypesFileDiffRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesRepository RestoreRepository(ctx, accountIdentifier, deletedAt, repoIdentifier, optional) Restore repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
deletedAt | int32 | The exact time the resource was delete at in epoch format. | |
repoIdentifier | string | ||
optional | *RepositoryApiRestoreRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRestoreRepositoryOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiRestoreRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenapiRule RuleAdd(ctx, accountIdentifier, repoIdentifier, optional) Add protection rule
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiRuleAddOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRuleAddOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of RepoIdentifierRulesBody| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RuleDelete(ctx, accountIdentifier, repoIdentifier, ruleUid, optional) Delete protection rule
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
ruleUid | string | ||
optional | *RepositoryApiRuleDeleteOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRuleDeleteOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenapiRule RuleGet(ctx, accountIdentifier, repoIdentifier, ruleUid, optional) Get protection rule
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
ruleUid | string | ||
optional | *RepositoryApiRuleGetOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRuleGetOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]OpenapiRule RuleList(ctx, accountIdentifier, repoIdentifier, optional) List protection rules
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiRuleListOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRuleListOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity.. | projectIdentifier | optional.String| Project Identifier for the Entity.. | query | optional.String| The substring by which the repository protection rules are filtered. | order | optional.String| The order of the output. | [default to asc] sort | optional.String| The field by which the protection rules are sorted. | [default to created_at] page | optional.Int32| The page to return. | [default to 1] limit | optional.Int32| The maximum number of results to return. | [default to 30]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenapiRule RuleUpdate(ctx, accountIdentifier, repoIdentifier, ruleUid, optional) Update protection rule
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
ruleUid | string | ||
optional | *RepositoryApiRuleUpdateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiRuleUpdateOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of RulesRuleUidBody| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypesRepository UpdateRepository(ctx, accountIdentifier, repoIdentifier, optional) Update repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity.. | |
repoIdentifier | string | ||
optional | *RepositoryApiUpdateRepositoryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RepositoryApiUpdateRepositoryOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of OpenapiUpdateRepoRequest| | orgIdentifier | optional.| Organization Identifier for the Entity.. | projectIdentifier | optional.| Project Identifier for the Entity.. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]