Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Deletes a branch from a repository, unless that branch is the default branch for the repository.
Synopsis
- data DeleteBranch = DeleteBranch' {
- repositoryName :: Text
- branchName :: Text
- newDeleteBranch :: Text -> Text -> DeleteBranch
- deleteBranch_repositoryName :: Lens' DeleteBranch Text
- deleteBranch_branchName :: Lens' DeleteBranch Text
- data DeleteBranchResponse = DeleteBranchResponse' {}
- newDeleteBranchResponse :: Int -> DeleteBranchResponse
- deleteBranchResponse_deletedBranch :: Lens' DeleteBranchResponse (Maybe BranchInfo)
- deleteBranchResponse_httpStatus :: Lens' DeleteBranchResponse Int
Creating a Request
data DeleteBranch Source #
Represents the input of a delete branch operation.
See: newDeleteBranch
smart constructor.
DeleteBranch' | |
|
Instances
Create a value of DeleteBranch
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteBranch
, deleteBranch_repositoryName
- The name of the repository that contains the branch to be deleted.
DeleteBranch
, deleteBranch_branchName
- The name of the branch to delete.
Request Lenses
deleteBranch_repositoryName :: Lens' DeleteBranch Text Source #
The name of the repository that contains the branch to be deleted.
deleteBranch_branchName :: Lens' DeleteBranch Text Source #
The name of the branch to delete.
Destructuring the Response
data DeleteBranchResponse Source #
Represents the output of a delete branch operation.
See: newDeleteBranchResponse
smart constructor.
DeleteBranchResponse' | |
|
Instances
newDeleteBranchResponse Source #
Create a value of DeleteBranchResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:deletedBranch:DeleteBranchResponse'
, deleteBranchResponse_deletedBranch
- Information about the branch deleted by the operation, including the
branch name and the commit ID that was the tip of the branch.
$sel:httpStatus:DeleteBranchResponse'
, deleteBranchResponse_httpStatus
- The response's http status code.
Response Lenses
deleteBranchResponse_deletedBranch :: Lens' DeleteBranchResponse (Maybe BranchInfo) Source #
Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
deleteBranchResponse_httpStatus :: Lens' DeleteBranchResponse Int Source #
The response's http status code.