Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets information about one or more branches in a repository.
This operation returns paginated results.
- listBranches :: Text -> ListBranches
- data ListBranches
- lbNextToken :: Lens' ListBranches (Maybe Text)
- lbRepositoryName :: Lens' ListBranches Text
- listBranchesResponse :: Int -> ListBranchesResponse
- data ListBranchesResponse
- lbrsBranches :: Lens' ListBranchesResponse [Text]
- lbrsNextToken :: Lens' ListBranchesResponse (Maybe Text)
- lbrsResponseStatus :: Lens' ListBranchesResponse Int
Creating a Request
Creates a value of ListBranches
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lbNextToken
- An enumeration token that allows the operation to batch the results.lbRepositoryName
- The name of the repository that contains the branches.
data ListBranches Source #
Represents the input of a list branches operation.
See: listBranches
smart constructor.
Request Lenses
lbNextToken :: Lens' ListBranches (Maybe Text) Source #
An enumeration token that allows the operation to batch the results.
lbRepositoryName :: Lens' ListBranches Text Source #
The name of the repository that contains the branches.
Destructuring the Response
Creates a value of ListBranchesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lbrsBranches
- The list of branch names.lbrsNextToken
- An enumeration token that returns the batch of the results.lbrsResponseStatus
- -- | The response status code.
data ListBranchesResponse Source #
Represents the output of a list branches operation.
See: listBranchesResponse
smart constructor.
Response Lenses
lbrsBranches :: Lens' ListBranchesResponse [Text] Source #
The list of branch names.
lbrsNextToken :: Lens' ListBranchesResponse (Maybe Text) Source #
An enumeration token that returns the batch of the results.
lbrsResponseStatus :: Lens' ListBranchesResponse Int Source #
- - | The response status code.