Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Deletes a branch from a repository, unless that branch is the default branch for the repository.
Synopsis
- deleteBranch :: Text -> Text -> DeleteBranch
- data DeleteBranch
- dbRepositoryName :: Lens' DeleteBranch Text
- dbBranchName :: Lens' DeleteBranch Text
- deleteBranchResponse :: Int -> DeleteBranchResponse
- data DeleteBranchResponse
- dbrsDeletedBranch :: Lens' DeleteBranchResponse (Maybe BranchInfo)
- dbrsResponseStatus :: Lens' DeleteBranchResponse Int
Creating a Request
Creates a value of DeleteBranch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbRepositoryName
- The name of the repository that contains the branch to be deleted.dbBranchName
- The name of the branch to delete.
data DeleteBranch Source #
Represents the input of a delete branch operation.
See: deleteBranch
smart constructor.
Instances
Request Lenses
dbRepositoryName :: Lens' DeleteBranch Text Source #
The name of the repository that contains the branch to be deleted.
dbBranchName :: Lens' DeleteBranch Text Source #
The name of the branch to delete.
Destructuring the Response
Creates a value of DeleteBranchResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbrsDeletedBranch
- Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.dbrsResponseStatus
- -- | The response status code.
data DeleteBranchResponse Source #
Represents the output of a delete branch operation.
See: deleteBranchResponse
smart constructor.
Instances
Response Lenses
dbrsDeletedBranch :: 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.
dbrsResponseStatus :: Lens' DeleteBranchResponse Int Source #
- - | The response status code.