Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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:
$sel:repositoryName:DeleteBranch'
, deleteBranch_repositoryName
- The name of the repository that contains the branch to be deleted.
$sel:branchName: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.