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 |
Gets information about one or more branches in a repository.
This operation returns paginated results.
Synopsis
- data ListBranches = ListBranches' {
- nextToken :: Maybe Text
- repositoryName :: Text
- newListBranches :: Text -> ListBranches
- listBranches_nextToken :: Lens' ListBranches (Maybe Text)
- listBranches_repositoryName :: Lens' ListBranches Text
- data ListBranchesResponse = ListBranchesResponse' {}
- newListBranchesResponse :: Int -> ListBranchesResponse
- listBranchesResponse_branches :: Lens' ListBranchesResponse (Maybe [Text])
- listBranchesResponse_nextToken :: Lens' ListBranchesResponse (Maybe Text)
- listBranchesResponse_httpStatus :: Lens' ListBranchesResponse Int
Creating a Request
data ListBranches Source #
Represents the input of a list branches operation.
See: newListBranches
smart constructor.
ListBranches' | |
|
Instances
Create a value of ListBranches
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:nextToken:ListBranches'
, listBranches_nextToken
- An enumeration token that allows the operation to batch the results.
$sel:repositoryName:ListBranches'
, listBranches_repositoryName
- The name of the repository that contains the branches.
Request Lenses
listBranches_nextToken :: Lens' ListBranches (Maybe Text) Source #
An enumeration token that allows the operation to batch the results.
listBranches_repositoryName :: Lens' ListBranches Text Source #
The name of the repository that contains the branches.
Destructuring the Response
data ListBranchesResponse Source #
Represents the output of a list branches operation.
See: newListBranchesResponse
smart constructor.
Instances
newListBranchesResponse Source #
Create a value of ListBranchesResponse
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:branches:ListBranchesResponse'
, listBranchesResponse_branches
- The list of branch names.
$sel:nextToken:ListBranches'
, listBranchesResponse_nextToken
- An enumeration token that returns the batch of the results.
$sel:httpStatus:ListBranchesResponse'
, listBranchesResponse_httpStatus
- The response's http status code.
Response Lenses
listBranchesResponse_branches :: Lens' ListBranchesResponse (Maybe [Text]) Source #
The list of branch names.
listBranchesResponse_nextToken :: Lens' ListBranchesResponse (Maybe Text) Source #
An enumeration token that returns the batch of the results.
listBranchesResponse_httpStatus :: Lens' ListBranchesResponse Int Source #
The response's http status code.